import numpy as np def hist_match ( source , template ): """ Adjust the pixel values of a grayscale image such that its histogram matches that of a target image Arguments: ----------- source: np.ndarray Image to transform; the histogram is computed over the flattened array template: np.ndarray Template image; can have different dimensions to source Returns: ----------- matched: np.ndarray The transformed output image """ oldshape = source . shape source = source . ravel () template = template . ravel () # get the set of unique pixel values and their corresponding indices and # counts s_values , bin_idx , s_counts = np . unique ( source , return_inverse = True , return_counts = True ) t_values , t_counts = np . unique ( template , return_counts = True ) ...
한글 사이트:
답글삭제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