ݺߣ

ݺߣShare a Scribd company logo
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
Ad

Recommended

딥러닝을 활용한 뉴스 메타 태깅
딥러닝을 활용한 뉴스 메타 태깅
if kakao
딥 러닝 자연어 처리를 학습을 위한 파워포인트. (Deep Learning for Natural Language Processing)
딥 러닝 자연어 처리를 학습을 위한 파워포인트. (Deep Learning for Natural Language Processing)
WON JOON YOO
딥 러닝 자연어 처리 학습을 위한 PPT! (Deep Learning for Natural Language Processing)
딥 러닝 자연어 처리 학습을 위한 PPT! (Deep Learning for Natural Language Processing)
WON JOON YOO
Spark & Zeppelin을 활용한 머신러닝 실전 적용기
Spark & Zeppelin을 활용한 머신러닝 실전 적용기
Taejun Kim
1.introduction(epoch#2)
1.introduction(epoch#2)
Haesun Park
Machine Learning with Apache Spark and Zeppelin
Machine Learning with Apache Spark and Zeppelin
Dataya Nolja
Naive ML Overview
Naive ML Overview
Chul Ju Hong
딥러닝 세계에 입문하기 위반 분투
딥러닝 세계에 입문하기 위반 분투
Ubuntu Korea Community
3.neural networks
3.neural networks
Haesun Park
인공지능, 기계학습 그리고 딥러닝
인공지능, 기계학습 그리고 딥러닝
Jinwon Lee
PYCON KR 2017 - 구름이 하늘의 일이라면 (윤상웅)
PYCON KR 2017 - 구름이 하늘의 일이라면 (윤상웅)
Haezoom Inc.
Python data analysis library
Python data analysis library
Do Young Park
1.Introduction to Python and TensorFlow
1.Introduction to Python and TensorFlow
Haesun Park
발표자료 11장
발표자료 11장
Juhui Park
iT Cafe - Deep Learning
iT Cafe - Deep Learning
Dongmin Kim
2.supervised learning(epoch#2)-3
2.supervised learning(epoch#2)-3
Haesun Park
4.representing data and engineering features(epoch#2)
4.representing data and engineering features(epoch#2)
Haesun Park
Anomaly detection practive_using_deep_learning
Anomaly detection practive_using_deep_learning
도형 임
파이썬 데이터과학 1일차 - 초보자를 위한 데이터분석, 데이터시각화 (이태영)
파이썬 데이터과학 1일차 - 초보자를 위한 데이터분석, 데이터시각화 (이태영)
Tae Young Lee
Apache MXNet으로 배워보는 딥러닝(Deep Learning) - 김무현 (AWS 솔루션즈아키텍트)
Apache MXNet으로 배워보는 딥러닝(Deep Learning) - 김무현 (AWS 솔루션즈아키텍트)
Amazon Web Services Korea
"Dataset and metrics for predicting local visible differences" Paper Review
"Dataset and metrics for predicting local visible differences" Paper Review
LEE HOSEONG
ML(KNN, Decision Tree), DL(RCNN, YOLO) educational slide
ML(KNN, Decision Tree), DL(RCNN, YOLO) educational slide
Bomm Kim
iT Cafe - Linear Algebra & Python Overview
iT Cafe - Linear Algebra & Python Overview
Dongmin Kim
Machine Learning Foundations (a case study approach) 강의 정리
Machine Learning Foundations (a case study approach) 강의 정리
SANG WON PARK
[PyCon KR 2018] 땀내를 줄이는 Data와 Feature 다루기
[PyCon KR 2018] 땀내를 줄이는 Data와 Feature 다루기
Joeun Park
1.introduction
1.introduction
Haesun Park
개발자를 위한 공감세미나 tensor-flow
개발자를 위한 공감세미나 tensor-flow
양 한빛
[Dissertation] Zero-Shot Demographic Inference on Edge Devices from Unstructu...
[Dissertation] Zero-Shot Demographic Inference on Edge Devices from Unstructu...
Kim Dongmin
효율적인 후보물질검증 및 분자성질분석을 위한 분자 그래프 파운데이션 모델 구축
효율적인 후보물질검증 및 분자성질분석을 위한 분자 그래프 파운데이션 모델 구축
Network Science Lab, The Catholic University of Korea
230727_HB_JointJournalClub.pptx
230727_HB_JointJournalClub.pptx
Network Science Lab, The Catholic University of Korea

More Related Content

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

3.neural networks
3.neural networks
Haesun Park
인공지능, 기계학습 그리고 딥러닝
인공지능, 기계학습 그리고 딥러닝
Jinwon Lee
PYCON KR 2017 - 구름이 하늘의 일이라면 (윤상웅)
PYCON KR 2017 - 구름이 하늘의 일이라면 (윤상웅)
Haezoom Inc.
Python data analysis library
Python data analysis library
Do Young Park
1.Introduction to Python and TensorFlow
1.Introduction to Python and TensorFlow
Haesun Park
발표자료 11장
발표자료 11장
Juhui Park
iT Cafe - Deep Learning
iT Cafe - Deep Learning
Dongmin Kim
2.supervised learning(epoch#2)-3
2.supervised learning(epoch#2)-3
Haesun Park
4.representing data and engineering features(epoch#2)
4.representing data and engineering features(epoch#2)
Haesun Park
Anomaly detection practive_using_deep_learning
Anomaly detection practive_using_deep_learning
도형 임
파이썬 데이터과학 1일차 - 초보자를 위한 데이터분석, 데이터시각화 (이태영)
파이썬 데이터과학 1일차 - 초보자를 위한 데이터분석, 데이터시각화 (이태영)
Tae Young Lee
Apache MXNet으로 배워보는 딥러닝(Deep Learning) - 김무현 (AWS 솔루션즈아키텍트)
Apache MXNet으로 배워보는 딥러닝(Deep Learning) - 김무현 (AWS 솔루션즈아키텍트)
Amazon Web Services Korea
"Dataset and metrics for predicting local visible differences" Paper Review
"Dataset and metrics for predicting local visible differences" Paper Review
LEE HOSEONG
ML(KNN, Decision Tree), DL(RCNN, YOLO) educational slide
ML(KNN, Decision Tree), DL(RCNN, YOLO) educational slide
Bomm Kim
iT Cafe - Linear Algebra & Python Overview
iT Cafe - Linear Algebra & Python Overview
Dongmin Kim
Machine Learning Foundations (a case study approach) 강의 정리
Machine Learning Foundations (a case study approach) 강의 정리
SANG WON PARK
[PyCon KR 2018] 땀내를 줄이는 Data와 Feature 다루기
[PyCon KR 2018] 땀내를 줄이는 Data와 Feature 다루기
Joeun Park
1.introduction
1.introduction
Haesun Park
개발자를 위한 공감세미나 tensor-flow
개발자를 위한 공감세미나 tensor-flow
양 한빛
[Dissertation] Zero-Shot Demographic Inference on Edge Devices from Unstructu...
[Dissertation] Zero-Shot Demographic Inference on Edge Devices from Unstructu...
Kim Dongmin
인공지능, 기계학습 그리고 딥러닝
인공지능, 기계학습 그리고 딥러닝
Jinwon Lee
PYCON KR 2017 - 구름이 하늘의 일이라면 (윤상웅)
PYCON KR 2017 - 구름이 하늘의 일이라면 (윤상웅)
Haezoom Inc.
Python data analysis library
Python data analysis library
Do Young Park
1.Introduction to Python and TensorFlow
1.Introduction to Python and TensorFlow
Haesun Park
발표자료 11장
발표자료 11장
Juhui Park
iT Cafe - Deep Learning
iT Cafe - Deep Learning
Dongmin Kim
2.supervised learning(epoch#2)-3
2.supervised learning(epoch#2)-3
Haesun Park
4.representing data and engineering features(epoch#2)
4.representing data and engineering features(epoch#2)
Haesun Park
Anomaly detection practive_using_deep_learning
Anomaly detection practive_using_deep_learning
도형 임
파이썬 데이터과학 1일차 - 초보자를 위한 데이터분석, 데이터시각화 (이태영)
파이썬 데이터과학 1일차 - 초보자를 위한 데이터분석, 데이터시각화 (이태영)
Tae Young Lee
Apache MXNet으로 배워보는 딥러닝(Deep Learning) - 김무현 (AWS 솔루션즈아키텍트)
Apache MXNet으로 배워보는 딥러닝(Deep Learning) - 김무현 (AWS 솔루션즈아키텍트)
Amazon Web Services Korea
"Dataset and metrics for predicting local visible differences" Paper Review
"Dataset and metrics for predicting local visible differences" Paper Review
LEE HOSEONG
ML(KNN, Decision Tree), DL(RCNN, YOLO) educational slide
ML(KNN, Decision Tree), DL(RCNN, YOLO) educational slide
Bomm Kim
iT Cafe - Linear Algebra & Python Overview
iT Cafe - Linear Algebra & Python Overview
Dongmin Kim
Machine Learning Foundations (a case study approach) 강의 정리
Machine Learning Foundations (a case study approach) 강의 정리
SANG WON PARK
[PyCon KR 2018] 땀내를 줄이는 Data와 Feature 다루기
[PyCon KR 2018] 땀내를 줄이는 Data와 Feature 다루기
Joeun Park
개발자를 위한 공감세미나 tensor-flow
개발자를 위한 공감세미나 tensor-flow
양 한빛
[Dissertation] Zero-Shot Demographic Inference on Edge Devices from Unstructu...
[Dissertation] Zero-Shot Demographic Inference on Edge Devices from Unstructu...
Kim Dongmin

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

효율적인 후보물질검증 및 분자성질분석을 위한 분자 그래프 파운데이션 모델 구축
효율적인 후보물질검증 및 분자성질분석을 위한 분자 그래프 파운데이션 모델 구축
Network Science Lab, The Catholic University of Korea
230727_HB_JointJournalClub.pptx
230727_HB_JointJournalClub.pptx
Network Science Lab, The Catholic University of Korea
S.M.Lee, Invited Talk on "Machine Learning-based Anomaly Detection"
S.M.Lee, Invited Talk on "Machine Learning-based Anomaly Detection"
Network Science Lab, The Catholic University of Korea
230724_Thuy_Labseminar.pptx
230724_Thuy_Labseminar.pptx
Network Science Lab, The Catholic University of Korea
230724-JH-Lab Seminar.pptx
230724-JH-Lab Seminar.pptx
Network Science Lab, The Catholic University of Korea
Technical Report on "Lecture Quality Prediction using Graph Neural Networks"
Technical Report on "Lecture Quality Prediction using Graph Neural Networks"
Network Science Lab, The Catholic University of Korea
Presentation for "Lecture Quality Prediction using Graph Neural Networks"
Presentation for "Lecture Quality Prediction using Graph Neural Networks"
Network Science Lab, The Catholic University of Korea
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 ...
Network Science Lab, The Catholic University of Korea
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...
Network Science Lab, The Catholic University of Korea
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...
Network Science Lab, The Catholic University of Korea
Joo-Ho Lee: Topographic-aware wind forecasting system using multi-modal spati...
Joo-Ho Lee: Topographic-aware wind forecasting system using multi-modal spati...
Network Science Lab, The Catholic University of Korea
Ho-Beom Kim: Detection of Influential Unethical Expressions through Construct...
Ho-Beom Kim: Detection of Influential Unethical Expressions through Construct...
Network Science Lab, The Catholic University of Korea
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...
Network Science Lab, The Catholic University of Korea
Sang_Graphormer.pdf
Sang_Graphormer.pdf
Network Science Lab, The Catholic University of Korea
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...
Network Science Lab, The Catholic University of Korea
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...
Network Science Lab, The Catholic University of Korea
효율적인 후보물질검증 및 분자성질분석을 위한 분자 그래프 파운데이션 모델 구축
효율적인 후보물질검증 및 분자성질분석을 위한 분자 그래프 파운데이션 모델 구축
Network Science Lab, The Catholic University of Korea
Ad

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