흑백 사진을 컬러로 강화학습하는 모듈 실습
Example
가장 유명한 다섯번째 솔베이 회의(1927년 10월) 흑백 단체 사진을 Deoldify API로 복원한 컬러 사진
아인슈타인, 하이젠베르크, 슈뢰딩거, 퀴리부인 등이 참석
Dependancy(환경 설정) 세팅
1.Anaconda 설치(pip 체크): 딥러닝, 강화학습에는 필수적.
2.Git Desktop 설치 및 가입- Git데이터를 하드에 쉽게 설치하기 위해
3.Git desktop 실행 후 URL로 코드를 불러와서 설치
Get the code: https://github.com/jantic/DeOldify
Get the model here: https://data.deepai.org/deoldify/Colo...
4.Anaconda 실행 후 가상환경 생성( conda create -n deoldify python=3.7.2) ---->파이썬 3.7.2버젼으로 가상환경 세팅
5.Anaconda에서 conda activate deoldify 로 환경 실행
6.Anaconda에서 Git에서 불러운 Deoldify 설치 경로로 폴더 설정(cd ---folder name)
7.Anaconda에서 pip으로 아래 모듈 설치
pip install opencv-python==4.4.0.42
pip install -r requirments.txt
8.참고로 pip install -r requirments.txt 의미는 txt파일에 들어가면 설치해야 할 것을 모두 적어 놓았기에 위 두줄만 입력하면 자동 실행.
10.모두 설치 되면 jupyter lab 실행
11.Jupyter lab에서 ImageColorizer.ipynb 실행
10.source_url='xxx'
'xxx'부분에 웹에서 흑백 사진을 찾아 그 이미지 주소를 넣고 실행. 끝.
Deoldify 실행 영상
'Peace be with you.'
by Learnmore'