import cv2 import numpy as np from matplotlib import pyplot as plt img = cv2 . imread ( 'messi5.jpg' , 0 ) f = np . fft . fft2 ( img ) fshift = np . fft . fftshift ( f ) magnitude_spectrum = 20 * np . log ( np . abs ( fshift )) plt . subplot ( 121 ), plt . imshow ( img , cmap = 'gray' ) plt . title ( 'Input Image' ), plt . xticks ([]), plt . yticks ([]) plt . subplot ( 122 ), plt . imshow ( magnitude_spectrum , cmap = 'gray' ) plt . title ( 'Magnitude Spectrum' ), plt . xticks ([]), plt . yticks ([]) plt . show () rows , cols = img . shape crow , ccol = rows / 2 , cols / 2 fshift [ crow - 30 : crow + 30 , ccol - 30 : ccol + 30 ] = 0 f_ishift = np . fft . ifftshift ( fshift ) img_back = np . fft . ifft2 ( f_ishift ) img_back = np . abs ( img_back ) plt . subplot ( 131 ), plt . imshow ( img , cmap = 'gray' ) plt . title ( 'Input Image' ), plt . xticks ([]), ...
한글 사이트:
답글삭제http://solarisailab.com/?p=222&ckattempt=1
Storing a .gif for a trained network
답글삭제Once you have a snapshot of a network you can run
./test_gpu
to make it play one game and store the .gif under gifs. For example
./test_gpu breakout DQN3_0_1_breakout_FULL_Y.t7
추가 롬 다운받는곳
답글삭제https://github.com/kristjankorjus/Replicating-DeepMind
.bin 으로 끝나는 롬만 돌아
post install !
답글삭제$ luarocks install cwrap
$ luarocks install torch
$ luarocks install optim
$ luarocks install nn
$ luarocks install image
$ luarocks install cutorch
$ luarocks install cunn
$ luarocks install cudnn