DAIN Depth-Aware Video Frame Interpolation

DAIN 사용   DAIN 참고 강의 링크 GIT 링크 paper 링크   GIT에서 LOCAL로 code 내려받기   PAKAGE import !pip install -r requirements.txt       PARAMETER 설정 INPUT_FILEPATH = "/content/DAIN/samples/input.gif" OUTPUT_FILE_PATH = "/content/DAIN/samples/output.mp4" TARGET_FPS = 60 FRAME_INPUT_DIR = '/content/DAIN/input_frames'...

GPU Environment

GPU 환경 세팅   GPU 병렬 프로세싱을 위한 기본 용어 정리. 1 Nvidia GPU Tesla - Kepler - Maxwell - Pascal(2016) - Volta(2017, V100) - Turing(2018, T4) V100(고성능) vs T4 (저전력, 비용대비 고효율)   2 PCI-E, PSU (전력상의 이유로 서버...

Ubuntu Docker basic setting

Docker Ubuntu 사용   windows 에서 docker로 Tensorflow 사용시 GPU 환경 사용이 아직 안됨. 추가로 windows에서 사용할 수 있도록 Oracle VritualBox를 설치해서 사용해야함. ubuntu 20.04로 update 하면서 환경 재 설정 # 1. vim editor 설치 $ sudo apt-get update $...

YOLO4

YOLO4 사용   YOLO4 참고 강의 링크 YOLO4 시연 강의 링크 GIT 링크 paper 링크   GIT에서 LOCAL로 code 내려받기   PAKAGE import !pip install -r requirements.txt     pretrain 된 Model 다운받기 #model.py Download yolov4.weights file: https://drive.google.com/open?id=1cewMfusmPjYWbrnuJRuKhPMwRe_b9PaT   DarkNet...

google Cloud Source Repositories 사용

Cloud Source Repositories 사용   AWS Free Tier가 만료됨에 따라 기존 source를 GCP로 옮기기로 함.. Bucket도 같이 옮겼어야 했는데 DB만 옮기고 S3내 bucket은 안옮겨서 수집한 이미지 파일은 다 날라감..   SSH KEY 관리     config 관리   known_hosts에 ip가...

Tesseract

Tesseract 사용   Tesseract 링크     Anaconda로 pytesseract 설치   다른언어 language code   pretrain Model 다운         결과 확인   일본어는 성능이 구데기로 나온다.       한국어는 jpg, png 이미지 속성에 따라 성능이 천차만별로...

CartoonGAN

출처 CartoonGAN 링크 paper 링크 model 링크 이탤릭 볼드 이탤릭볼드 기본적으로 설치되어 있어야하는 패키지는 아래 코드 를 사용한다. import torch import torchvision.transforms as transforms import cv2 import matplotlib.pyplot as plt import sys sys.path.append('/content/drive/My Drive/Youtube_Practice/') # local package import를 위해 경로...

CYCLEGAN

CYCLE GAN 구축   한요섭박사님 강의 링크 GIT 링크 paper 링크         Model 추가하기 class DCGAN(nn.Module) #model.py class CycleGAN(nn.Module): def __init__(self, in_channels, out_channels, nker=64, norm='bnorm', nblk=6): super(DCGAN, self).__init__()   layer 추가하기 #layer.py class CBR2d(nn.Module): if padding_mode ==...

Pix2Pix

Pix2Pix 구축   한요섭박사님 강의 링크 GIT 링크 paper 링크 이미지 출처   Generator   Discriminator   Model 추가하기 class Pix2Pix(nn.Module) #model.py class Pix2Pix(nn.Module): def __init__(self, in_channels, out_channels, nker=64, norm="bnorm"): super(Pix2Pix, self).__init__()   Model 추가하기 class Pix2Pix(nn.Module) class Discriminator(nn.Module) #model.py...

Image Regression Framework 구축

Model Framework 구축   한요섭박사님 강의 링크 GIT 링크   Sampling 추가하기 def add_sampling(img, type=”random”, opts=None) #Utils.py # opts를 통해서 option argument를 전달받아서 사용 ds_y = opts[0].astype(np.int) # int 형으로 convert 될수 있도록 astype으로 설정 # 가우시안 샘플링에서 채널방향으로 샘플링이...