gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| convert -density 300 \[TensorFlow\]\ Sequence-to-Sequence\ Models.pdf TensorFlow/output.png |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "CaffeNet" | |
| layers { | |
| name: "data" | |
| type: DATA | |
| top: "data" | |
| data_param { | |
| source: "/misc/lmbraid10/dosovits/Datasets/ILSVRC2012/all/val_leveldb" | |
| backend: LEVELDB | |
| batch_size: 16 | |
| crop_size: 227 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "CaffeNet" | |
| layers { | |
| name: "data" | |
| type: DATA | |
| top: "data" | |
| top: "label" | |
| data_param { | |
| source: "@YOUR_PATH_TO_DATA@/chairs_128x128_reduced/data-lmdb" | |
| batch_size: 64 | |
| scale: 0.00390625 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| An extremely handy tool :: Incremental history searching | |
| In terminal enter: | |
| gedit ~/.inputrc | |
| Then copy paste and save: | |
| "\e[A": history-search-backward | |
| "\e[B": history-search-forward |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git remote add -t dag matconvnet https://github.com/vlfeat/matconvnet | |
| git pull matconvnet dag |
git push --recurse-submodules=on-demand
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| addpath matlab | |
| vl_compilenn('enableGPU', 1, 'cudaRoot', '/usr/local/cuda', 'cudaMethod', 'nvcc', 'enableCudnn', 1, 'cudnnRoot', 'local/'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| X = np.array([ [0,0,1],[0,1,1],[1,0,1],[1,1,1] ]) | |
| y = np.array([[0,1,1,0]]).T | |
| syn0 = 2*np.random.random((3,4)) - 1 | |
| syn1 = 2*np.random.random((4,1)) - 1 | |
| for j in xrange(60000): | |
| l1 = 1/(1+np.exp(-(np.dot(X,syn0)))) | |
| l2 = 1/(1+np.exp(-(np.dot(l1,syn1)))) | |
| l2_delta = (y - l2)*(l2*(1-l2)) | |
| l1_delta = l2_delta.dot(syn1.T) * (l1 * (1-l1)) | |
| syn1 += l1.T.dot(l2_delta) |