목록Going Deeper (14)
A.I
눈동자 추출¶ mkdir -p ~/aiffel/coarse_to_fine/images wget http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2 -P ~/aiffel/coarse_to_fine/models/ cd ~/aiffel/coarse_to_fine/models/ && bzip2 -d shape_predictor_68_face_landmarks.dat.bz2 In [1]: import matplotlib.pylab as plt import tensorflow as tf import os from os.path import join from glob import glob from tqdm import tqdm import numpy as..
Camera Sticker¶ mkdir -p ~/aiffel/video_sticker_app/models mkdir -p ~/aiffel/video_sticker_app/images cd ~/aiffel/video_sticker_app wget https://aiffelstaticprd.blob.core.windows.net/media/documents/new_video_sticker_app.zip unzip new_video_sticker_app.zip 프로젝트 (1) moviepy로 비디오 처리하기¶ 1. moviepy를 이용해서 주피터 노트북 상에서 비디오를 읽고 쓰는 프로그램을 작성¶ In [1]: from moviepy.editor import VideoClip, VideoFileClip fro..
OCR¶ What Is Wrong With Scene Text Recognition Model Comparisons? Dataset and Model Analysis 데이터셋 MJ Synth SynthText pip install lmdb In [1]: import os path = os.path.join(os.getenv('HOME'),'aiffel/ocr') os.chdir(path) print(path) /home/ssac24/aiffel/ocr In [2]: import tensorflow as tf gpus = tf.config.experimental.list_physical_devices(device_type="GPU") tf.config.experimental.s..
Camera App 분석¶ mkdir -p ~/aiffel/video_sticker_app/models sudo apt install libgtk2.0-dev pkg-config pip install cmake pip install dlib pip install opencv-contrib-python wget http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2 -P ~/aiffel/video_sticker_app/models/ bzip2 -d ~/aiffel/video_sticker_app/models/shape_predictor_68_face_landmarks.dat.bz2 동영상에 스티커 붙이기¶ wget https://aiffelstat..
Camera App 분석¶ mkdir -p ~/aiffel/video_sticker_app/models sudo apt install libgtk2.0-dev pkg-config pip install cmake pip install dlib pip install opencv-contrib-python wget http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2 -P ~/aiffel/video_sticker_app/models/ bzip2 -d ~/aiffel/video_sticker_app/models/shape_predictor_68_face_landmarks.dat.bz2 동영상에 스티커 붙이기¶ wget https://aiffelstat..
OCR = Text detection + Text recognition¶ 문자를 읽는 OCR은 크게 문자의 영역을 검출하는 Text detection 그리고 검출된 영역의 문자를 인식하는 Text recognition으로 구분할 수 있습니다. Text detection은 그동안 우리가 다루어 왔던 일반적인 Object detection 태스크를 문자 찾아내기로 확장한 버전이라고 생각할 수도 있겠습니다. 그러나 앞으로 살펴보겠지만, Text detection은 단순히 Object detection기법 뿐 아니라 Segmentation 기법도 동원되며, 문자가 가지는 독특한 특성까지 감안한 형태로 지속적으로 발전해 왔습니다. Text recognition은 검출된 영역의 문자가 무엇인지를 인식해 내는 과정입..
Class Activation Map 만들기¶ mkdir -p ~/aiffel/class_activation_map ln -s ~/data ~/aiffel/class_activation_map(클라우드 사용시) CAM, Grad-CAM용 모델 준비하기 (1) 데이터셋 준비하기¶CAM¶ 일반적인 딥러닝 모델은 모델 안에서 어떤 일이 일어나는지 알수가 없다. 일반적인 모델은 Conv층을 거듭하면서 이미지에 대한 feature를 추출하고, classification을 수행할 때는 Fully Connected Layer(Dense Layer)를 지난 후 얻은 Logits을 softmax층을 통과시켜 각 클래스에 대한 확률값을 얻게 된다. 여기서 CAM(Class Avtivation Map)의 경우에는 Featu..
시맨틱 세그멘테이션으로 도로영역 찾기¶ 1. 시맨틱 세그멘테이션 데이터셋¶이미지, 데이터 가져오기¶ mkdir -p ~/aiffel/semantic_segmentation/data wget https://s3.eu-central-1.amazonaws.com/avg-kitti/data_semantics.zip unzip data_semantics.zip -d ~/aiffel/semantic_segmentation/data 데이터 로더(data loader) 만들기¶ pip install albumentations 참고자료 Keras Sequence에 기반한 Dataloader Albumentation을 적용한 Keras sequence In [1]: #필요한 라이브러리를 로드합니다. import os im..