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
randSeed = 0; | |
rng(randSeed); | |
a = gpuArray(rand(1,5)); | |
% uncomment below to fix gpu random seed | |
%randStream = parallel.gpu.RandStream('CombRecursive', 'Seed', randSeed); | |
%parallel.gpu.RandStream.setGlobalStream(randStream); | |
vl_nndropout(a, 'rate', 0.5) |
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
#!/bin/bash | |
# Script for installing tmux on systems where you don't have root access. | |
# tmux will be installed in $HOME/local/bin. | |
# It's assumed that wget and a C/C++ compiler are installed. | |
# exit on error | |
set -e | |
TMUX_VERSION=1.8 |
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
defaults write -app Skim SKAutoReloadFileUpdate -boolean true |
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 favicon.png -define icon:auto-resize=64,48,32,16 favicon.ico |
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
vl_compilenn('enableImreadJpeg', true, 'enableGpu', true, 'cudaRoot', '/usr/local/cuda',... | |
'cudaMethod', 'nvcc', 'enableCudnn', true, 'cudnnRoot', '/home/peiyunh/cudnn',... | |
'ImageLibraryCompileFlags',{'-I/home/peiyunh/.local/include/'},... | |
'ImageLibraryLinkFlags',{'-L/home/peiyunh/.local/lib/','-ljpeg'}); |
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
files=`ls val/*/*.pdf` | |
for f in $files; do | |
fnew=${f//.pdf/_crop.pdf} | |
if [ ! -f $fnew ]; then | |
pdfcrop --noverbose $f $fnew | |
echo "$f done" | |
fi | |
done |
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
types="easy medium hard" | |
for t in $types; do | |
pngs=`ls val/*/*_${t}.png | sort -k2 -th -n` | |
montage -tile 10x5 -mode Concatenate $pngs prec_rec_${t}_summary.png | |
echo "export summary of $t done" | |
done |
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
pdfs=`ls val/*/*_crop.pdf` | |
for pdf in $pdfs; do | |
png=${pdf//_crop.pdf/.png} | |
convert -quiet $pdf $png | |
echo "$pdf => $png" | |
done |
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
# | |
input: "data" | |
input_dim: 1 | |
input_dim: 3 | |
input_dim: 473 | |
input_dim: 473 | |
layer { | |
name: "conv1_1_3x3_s2" | |
type: "Convolution" |
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
# | |
input: "data" | |
input_dim: 1 | |
input_dim: 3 | |
input_dim: 713 | |
input_dim: 713 | |
layer { | |
name: "conv1_1_3x3_s2" | |
type: "Convolution" |
OlderNewer