SlideShare a Scribd company logo
1 of 17
Nam Gyu Jung
Intelligent Information Processing Lab
Dept. of Computer Engineering
Gachon University
E-mail: jng6017@gachon.ac.kr
2023.07.31
1
 멀티모달 데이터
 모듈화 및 모델 통합
2
1. 멀티모달 데이터
N24News Dataset
• 이미지와 텍스트 정보를 이용하여 해당 뉴스 기사의 테마를 예측하는 데이터세트
3
1. 멀티모달 데이터
N24News Dataset
• 이미지 : 뉴스 기사의 이미지
• 텍스트 : Headline, Caption, Abstract, Body
4
1. 멀티모달 데이터
멀티모달 기반 모델
• 각각 분석을 위한 모델 적용 후 feature 단계 혹은 prediction 단계에서 융합하여 사용함
ViT
features
prediction
Roberta
features
prediction
5
2. 모듈화 및 모델 통합
디렉토리 구조
• 실행은 main.py에서 진행하며, 각각의 활용요소들을 모듈화 시켜 필요할 때마다 사용
• 코드가 간소화되며, 타 모델 사용시 재활용이 가능하여 편리함
main.py
datasets dataset.py
models model.py
__init__.py
__init__.py
outputs
utils utlis.py
__init__.py
6
2. 모듈화 및 모델 통합
utils.py
• 모델을 실행함에 있어 필요로 하는 소스코드의 집합
• ex) 전처리 함수, 시드 고정 함수, 학습 및 평가 함수
7
2. 모듈화 및 모델 통합
utils.py
• RobertaTokenizer : 허깅페이스에서 제공하는 자연어 처리 라이브러리
8
2. 모듈화 및 모델 통합
utils.py
• Train, Test 함수
9
2. 모듈화 및 모델 통합
utils.py
• 저장 함수
• __init__.py에서 각 함수들 정의
10
2. 모듈화 및 모델 통합
dataset.py
• 데이터 생성
11
2. 모듈화 및 모델 통합
model.py
• Image 모델, text 모델 생성
12
2. 모듈화 및 모델 통합
model.py
• 모델 합성
13
2. 모듈화 및 모델 통합
main.py
14
2. 모듈화 및 모델 통합
main.py
15
2. 모듈화 및 모델 통합
main.py
5강 - 멀티모달 및 모듈화.pptx

More Related Content

Similar to 5강 - 멀티모달 및 모듈화.pptx

권기훈_포트폴리오
권기훈_포트폴리오권기훈_포트폴리오
권기훈_포트폴리오Kihoon4
 
Case Study를 통해 본 데이터사이언스 협업 플랫폼의 필요성 (옥주영 컨설턴트, Hancom MDS) :: AWS Techforum ...
Case Study를 통해 본 데이터사이언스 협업 플랫폼의 필요성 (옥주영 컨설턴트, Hancom MDS) :: AWS Techforum ...Case Study를 통해 본 데이터사이언스 협업 플랫폼의 필요성 (옥주영 컨설턴트, Hancom MDS) :: AWS Techforum ...
Case Study를 통해 본 데이터사이언스 협업 플랫폼의 필요성 (옥주영 컨설턴트, Hancom MDS) :: AWS Techforum ...Amazon Web Services Korea
 
2015 SINVAS USER CONFERENCE - MDD/MDA 개발방법론을 통한 정보시스템 개발방안
2015 SINVAS USER CONFERENCE - MDD/MDA 개발방법론을 통한 정보시스템 개발방안2015 SINVAS USER CONFERENCE - MDD/MDA 개발방법론을 통한 정보시스템 개발방안
2015 SINVAS USER CONFERENCE - MDD/MDA 개발방법론을 통한 정보시스템 개발방안Suji Lee
 
Private PaaS with Docker, spring cloud and mesos
Private PaaS with Docker, spring cloud and mesos Private PaaS with Docker, spring cloud and mesos
Private PaaS with Docker, spring cloud and mesos uEngine Solutions
 
제11회공개sw개발자대회 금상 TensorMSA(소개)
제11회공개sw개발자대회 금상 TensorMSA(소개)제11회공개sw개발자대회 금상 TensorMSA(소개)
제11회공개sw개발자대회 금상 TensorMSA(소개)Susang Kim
 
2017 주요 기술 흐름 및 개요
2017 주요 기술 흐름 및 개요2017 주요 기술 흐름 및 개요
2017 주요 기술 흐름 및 개요Hosung Lee
 
전달교육(분석설계모델링)
전달교육(분석설계모델링)전달교육(분석설계모델링)
전달교육(분석설계모델링)gimslide
 
비교논문 분석 - 디지털 IoT 도어락 DDiT
비교논문 분석 - 디지털 IoT 도어락 DDiT비교논문 분석 - 디지털 IoT 도어락 DDiT
비교논문 분석 - 디지털 IoT 도어락 DDiT우진 신
 
DB관점에서 본 빅데이터 (2019년 8월)
DB관점에서 본 빅데이터 (2019년 8월)DB관점에서 본 빅데이터 (2019년 8월)
DB관점에서 본 빅데이터 (2019년 8월)Kee Hoon Lee
 
A Modern Data Integration Approach to Transform and Amplify Your Business (데이...
A Modern Data Integration Approach to Transform and Amplify Your Business (데이...A Modern Data Integration Approach to Transform and Amplify Your Business (데이...
A Modern Data Integration Approach to Transform and Amplify Your Business (데이...Denodo
 
딥러닝 세계에 입문하기 위반 분투
딥러닝 세계에 입문하기 위반 분투딥러닝 세계에 입문하기 위반 분투
딥러닝 세계에 입문하기 위반 분투Ubuntu Korea Community
 
Unify data and model using Apache S2Graph and GraphQL.
Unify data and model using Apache S2Graph and GraphQL.Unify data and model using Apache S2Graph and GraphQL.
Unify data and model using Apache S2Graph and GraphQL.if kakao
 
스마트폰 위의 딥러닝
스마트폰 위의 딥러닝스마트폰 위의 딥러닝
스마트폰 위의 딥러닝NAVER Engineering
 
스마트 팩토리 표준화(RAMI 4.0 quick review)
스마트 팩토리 표준화(RAMI 4.0 quick review)스마트 팩토리 표준화(RAMI 4.0 quick review)
스마트 팩토리 표준화(RAMI 4.0 quick review)YOONSEOK JANG
 
06_게임엔진구성
06_게임엔진구성06_게임엔진구성
06_게임엔진구성noerror
 
201210 그루터 빅데이터_플랫폼_아키텍쳐_및_솔루션_소개
201210 그루터 빅데이터_플랫폼_아키텍쳐_및_솔루션_소개201210 그루터 빅데이터_플랫폼_아키텍쳐_및_솔루션_소개
201210 그루터 빅데이터_플랫폼_아키텍쳐_및_솔루션_소개Gruter
 
엔터프라이즈 환경의 데이터모델 관리 방안 By 엠바카데로 데브기어 2015.12.03
엔터프라이즈 환경의 데이터모델 관리 방안 By 엠바카데로 데브기어  2015.12.03엔터프라이즈 환경의 데이터모델 관리 방안 By 엠바카데로 데브기어  2015.12.03
엔터프라이즈 환경의 데이터모델 관리 방안 By 엠바카데로 데브기어 2015.12.03Devgear
 

Similar to 5강 - 멀티모달 및 모듈화.pptx (20)

권기훈_포트폴리오
권기훈_포트폴리오권기훈_포트폴리오
권기훈_포트폴리오
 
Case Study를 통해 본 데이터사이언스 협업 플랫폼의 필요성 (옥주영 컨설턴트, Hancom MDS) :: AWS Techforum ...
Case Study를 통해 본 데이터사이언스 협업 플랫폼의 필요성 (옥주영 컨설턴트, Hancom MDS) :: AWS Techforum ...Case Study를 통해 본 데이터사이언스 협업 플랫폼의 필요성 (옥주영 컨설턴트, Hancom MDS) :: AWS Techforum ...
Case Study를 통해 본 데이터사이언스 협업 플랫폼의 필요성 (옥주영 컨설턴트, Hancom MDS) :: AWS Techforum ...
 
2015 SINVAS USER CONFERENCE - MDD/MDA 개발방법론을 통한 정보시스템 개발방안
2015 SINVAS USER CONFERENCE - MDD/MDA 개발방법론을 통한 정보시스템 개발방안2015 SINVAS USER CONFERENCE - MDD/MDA 개발방법론을 통한 정보시스템 개발방안
2015 SINVAS USER CONFERENCE - MDD/MDA 개발방법론을 통한 정보시스템 개발방안
 
bsk_3_1_2
bsk_3_1_2bsk_3_1_2
bsk_3_1_2
 
Private PaaS with Docker, spring cloud and mesos
Private PaaS with Docker, spring cloud and mesos Private PaaS with Docker, spring cloud and mesos
Private PaaS with Docker, spring cloud and mesos
 
Big Data @Work_박종명_20140220
Big Data @Work_박종명_20140220Big Data @Work_박종명_20140220
Big Data @Work_박종명_20140220
 
제11회공개sw개발자대회 금상 TensorMSA(소개)
제11회공개sw개발자대회 금상 TensorMSA(소개)제11회공개sw개발자대회 금상 TensorMSA(소개)
제11회공개sw개발자대회 금상 TensorMSA(소개)
 
2017 주요 기술 흐름 및 개요
2017 주요 기술 흐름 및 개요2017 주요 기술 흐름 및 개요
2017 주요 기술 흐름 및 개요
 
전달교육(분석설계모델링)
전달교육(분석설계모델링)전달교육(분석설계모델링)
전달교육(분석설계모델링)
 
비교논문 분석 - 디지털 IoT 도어락 DDiT
비교논문 분석 - 디지털 IoT 도어락 DDiT비교논문 분석 - 디지털 IoT 도어락 DDiT
비교논문 분석 - 디지털 IoT 도어락 DDiT
 
DB관점에서 본 빅데이터 (2019년 8월)
DB관점에서 본 빅데이터 (2019년 8월)DB관점에서 본 빅데이터 (2019년 8월)
DB관점에서 본 빅데이터 (2019년 8월)
 
A Modern Data Integration Approach to Transform and Amplify Your Business (데이...
A Modern Data Integration Approach to Transform and Amplify Your Business (데이...A Modern Data Integration Approach to Transform and Amplify Your Business (데이...
A Modern Data Integration Approach to Transform and Amplify Your Business (데이...
 
딥러닝 세계에 입문하기 위반 분투
딥러닝 세계에 입문하기 위반 분투딥러닝 세계에 입문하기 위반 분투
딥러닝 세계에 입문하기 위반 분투
 
Unify data and model using Apache S2Graph and GraphQL.
Unify data and model using Apache S2Graph and GraphQL.Unify data and model using Apache S2Graph and GraphQL.
Unify data and model using Apache S2Graph and GraphQL.
 
스마트폰 위의 딥러닝
스마트폰 위의 딥러닝스마트폰 위의 딥러닝
스마트폰 위의 딥러닝
 
스마트 팩토리 표준화(RAMI 4.0 quick review)
스마트 팩토리 표준화(RAMI 4.0 quick review)스마트 팩토리 표준화(RAMI 4.0 quick review)
스마트 팩토리 표준화(RAMI 4.0 quick review)
 
06_게임엔진구성
06_게임엔진구성06_게임엔진구성
06_게임엔진구성
 
201210 그루터 빅데이터_플랫폼_아키텍쳐_및_솔루션_소개
201210 그루터 빅데이터_플랫폼_아키텍쳐_및_솔루션_소개201210 그루터 빅데이터_플랫폼_아키텍쳐_및_솔루션_소개
201210 그루터 빅데이터_플랫폼_아키텍쳐_및_솔루션_소개
 
엔터프라이즈 환경의 데이터모델 관리 방안 By 엠바카데로 데브기어 2015.12.03
엔터프라이즈 환경의 데이터모델 관리 방안 By 엠바카데로 데브기어  2015.12.03엔터프라이즈 환경의 데이터모델 관리 방안 By 엠바카데로 데브기어  2015.12.03
엔터프라이즈 환경의 데이터모델 관리 방안 By 엠바카데로 데브기어 2015.12.03
 
Memento
MementoMemento
Memento
 

More from Network Science Lab, The Catholic University of Korea

More from Network Science Lab, The Catholic University of Korea (20)

230727_HB_JointJournalClub.pptx
230727_HB_JointJournalClub.pptx230727_HB_JointJournalClub.pptx
230727_HB_JointJournalClub.pptx
 
S.M.Lee, Invited Talk on "Machine Learning-based Anomaly Detection"
S.M.Lee, Invited Talk on "Machine Learning-based Anomaly Detection"S.M.Lee, Invited Talk on "Machine Learning-based Anomaly Detection"
S.M.Lee, Invited Talk on "Machine Learning-based Anomaly Detection"
 
230724_Thuy_Labseminar.pptx
230724_Thuy_Labseminar.pptx230724_Thuy_Labseminar.pptx
230724_Thuy_Labseminar.pptx
 
230724-JH-Lab Seminar.pptx
230724-JH-Lab Seminar.pptx230724-JH-Lab Seminar.pptx
230724-JH-Lab Seminar.pptx
 
3강 - CNN 및 이미지 모델.pptx
3강 - CNN 및 이미지 모델.pptx3강 - CNN 및 이미지 모델.pptx
3강 - CNN 및 이미지 모델.pptx
 
4강 - RNN 및 시계열 모델.pptx
4강 - RNN 및 시계열 모델.pptx4강 - RNN 및 시계열 모델.pptx
4강 - RNN 및 시계열 모델.pptx
 
2강 - 실험 흐름과 멀티모달 개요.pptx
2강 - 실험 흐름과 멀티모달 개요.pptx2강 - 실험 흐름과 멀티모달 개요.pptx
2강 - 실험 흐름과 멀티모달 개요.pptx
 
1강 - pytorch와 tensor.pptx
1강 - pytorch와 tensor.pptx1강 - pytorch와 tensor.pptx
1강 - pytorch와 tensor.pptx
 
Technical Report on "Lecture Quality Prediction using Graph Neural Networks"
Technical Report on "Lecture Quality Prediction using Graph Neural Networks"Technical Report on "Lecture Quality Prediction using Graph Neural Networks"
Technical Report on "Lecture Quality Prediction using Graph Neural Networks"
 
Presentation for "Lecture Quality Prediction using Graph Neural Networks"
Presentation for "Lecture Quality Prediction using Graph Neural Networks"Presentation for "Lecture Quality Prediction using Graph Neural Networks"
Presentation for "Lecture Quality Prediction using Graph Neural Networks"
 
NS-CUK Seminar: J.H.Lee, Review on "Graph Neural Networks with convolutional ...
NS-CUK Seminar: J.H.Lee, Review on "Graph Neural Networks with convolutional ...NS-CUK Seminar: J.H.Lee, Review on "Graph Neural Networks with convolutional ...
NS-CUK Seminar: J.H.Lee, Review on "Graph Neural Networks with convolutional ...
 
NS-CUK Seminar: V.T.Hoang, Review on "Are More Layers Beneficial to Graph Tra...
NS-CUK Seminar: V.T.Hoang, Review on "Are More Layers Beneficial to Graph Tra...NS-CUK Seminar: V.T.Hoang, Review on "Are More Layers Beneficial to Graph Tra...
NS-CUK Seminar: V.T.Hoang, Review on "Are More Layers Beneficial to Graph Tra...
 
NS-CUK Seminar: S.T.Nguyen Review on "Accurate learning of graph representati...
NS-CUK Seminar: S.T.Nguyen Review on "Accurate learning of graph representati...NS-CUK Seminar: S.T.Nguyen Review on "Accurate learning of graph representati...
NS-CUK Seminar: S.T.Nguyen Review on "Accurate learning of graph representati...
 
Joo-Ho Lee: Topographic-aware wind forecasting system using multi-modal spati...
Joo-Ho Lee: Topographic-aware wind forecasting system using multi-modal spati...Joo-Ho Lee: Topographic-aware wind forecasting system using multi-modal spati...
Joo-Ho Lee: Topographic-aware wind forecasting system using multi-modal spati...
 
Ho-Beom Kim: Detection of Influential Unethical Expressions through Construct...
Ho-Beom Kim: Detection of Influential Unethical Expressions through Construct...Ho-Beom Kim: Detection of Influential Unethical Expressions through Construct...
Ho-Beom Kim: Detection of Influential Unethical Expressions through Construct...
 
NS-CUK Seminar: J.H.Lee, Review on "Hyperbolic graph convolutional neural net...
NS-CUK Seminar: J.H.Lee, Review on "Hyperbolic graph convolutional neural net...NS-CUK Seminar: J.H.Lee, Review on "Hyperbolic graph convolutional neural net...
NS-CUK Seminar: J.H.Lee, Review on "Hyperbolic graph convolutional neural net...
 
Sang_Graphormer.pdf
Sang_Graphormer.pdfSang_Graphormer.pdf
Sang_Graphormer.pdf
 
NS-CUK Seminar: S.T.Nguyen, Review on "Do Transformers Really Perform Bad for...
NS-CUK Seminar: S.T.Nguyen, Review on "Do Transformers Really Perform Bad for...NS-CUK Seminar: S.T.Nguyen, Review on "Do Transformers Really Perform Bad for...
NS-CUK Seminar: S.T.Nguyen, Review on "Do Transformers Really Perform Bad for...
 
NS-CUK Seminar: S.T.Nguyen, Review on "DeeperGCN: All You Need to Train Deepe...
NS-CUK Seminar: S.T.Nguyen, Review on "DeeperGCN: All You Need to Train Deepe...NS-CUK Seminar: S.T.Nguyen, Review on "DeeperGCN: All You Need to Train Deepe...
NS-CUK Seminar: S.T.Nguyen, Review on "DeeperGCN: All You Need to Train Deepe...
 
NS-CUK Seminar: V.T.Hoang, Review on "Everything is Connected: Graph Neural N...
NS-CUK Seminar: V.T.Hoang, Review on "Everything is Connected: Graph Neural N...NS-CUK Seminar: V.T.Hoang, Review on "Everything is Connected: Graph Neural N...
NS-CUK Seminar: V.T.Hoang, Review on "Everything is Connected: Graph Neural N...
 

5강 - 멀티모달 및 모듈화.pptx

  • 1. Nam Gyu Jung Intelligent Information Processing Lab Dept. of Computer Engineering Gachon University E-mail: jng6017@gachon.ac.kr 2023.07.31
  • 2. 1  멀티모달 데이터  모듈화 및 모델 통합
  • 3. 2 1. 멀티모달 데이터 N24News Dataset • 이미지와 텍스트 정보를 이용하여 해당 뉴스 기사의 테마를 예측하는 데이터세트
  • 4. 3 1. 멀티모달 데이터 N24News Dataset • 이미지 : 뉴스 기사의 이미지 • 텍스트 : Headline, Caption, Abstract, Body
  • 5. 4 1. 멀티모달 데이터 멀티모달 기반 모델 • 각각 분석을 위한 모델 적용 후 feature 단계 혹은 prediction 단계에서 융합하여 사용함 ViT features prediction Roberta features prediction
  • 6. 5 2. 모듈화 및 모델 통합 디렉토리 구조 • 실행은 main.py에서 진행하며, 각각의 활용요소들을 모듈화 시켜 필요할 때마다 사용 • 코드가 간소화되며, 타 모델 사용시 재활용이 가능하여 편리함 main.py datasets dataset.py models model.py __init__.py __init__.py outputs utils utlis.py __init__.py
  • 7. 6 2. 모듈화 및 모델 통합 utils.py • 모델을 실행함에 있어 필요로 하는 소스코드의 집합 • ex) 전처리 함수, 시드 고정 함수, 학습 및 평가 함수
  • 8. 7 2. 모듈화 및 모델 통합 utils.py • RobertaTokenizer : 허깅페이스에서 제공하는 자연어 처리 라이브러리
  • 9. 8 2. 모듈화 및 모델 통합 utils.py • Train, Test 함수
  • 10. 9 2. 모듈화 및 모델 통합 utils.py • 저장 함수 • __init__.py에서 각 함수들 정의
  • 11. 10 2. 모듈화 및 모델 통합 dataset.py • 데이터 생성
  • 12. 11 2. 모듈화 및 모델 통합 model.py • Image 모델, text 모델 생성
  • 13. 12 2. 모듈화 및 모델 통합 model.py • 모델 합성
  • 14. 13 2. 모듈화 및 모델 통합 main.py
  • 15. 14 2. 모듈화 및 모델 통합 main.py
  • 16. 15 2. 모듈화 및 모델 통합 main.py