If you want to know how to reproduce this results, come to visit my github repo! 🐶
This file contains 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
import caffe_pb2 as proto | |
import leveldb | |
import sys | |
db = leveldb.LevelDB('./cifar_test',block_size=40 * (2 << 20) ) | |
import struct | |
def unpickle(file): | |
import cPickle |
This file contains 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
import numpy as np | |
import sys | |
import random | |
import tensorflow as tf | |
import itertools | |
slim = tf.contrib.slim | |
BATCH_SIZE = 32 | |
TRAIN_ITER = 1000 | |
EARLY_TRAIN_TERMINATE_CRITERIA = 1e-4; |
This file contains 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
# This is shorthened version of blog post | |
# http://ksopyla.com/2017/02/tensorflow-gpu-virtualenv-python3/ | |
# update packages | |
sudo apt-get update | |
sudo apt-get upgrade | |
#Add the ppa repo for NVIDIA graphics driver | |
sudo add-apt-repository ppa:graphics-drivers/ppa | |
sudo apt-get update |
This file contains 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
import numpy as np | |
import os | |
import tensorflow as tf | |
import vgg | |
import vgg_preprocessing | |
from pycocotools.coco import COCO | |
slim = tf.contrib.slim | |
LOG_DIR = './log/fe' |
This file contains 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
import better_exceptions | |
import os | |
import numpy as np | |
from tqdm import tqdm | |
from keras.models import model_from_json | |
import c3d_model | |
import sys | |
import keras.backend as K | |
dim_ordering = K.image_dim_ordering() |
This file contains 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
import numpy as np | |
from matplotlib import pyplot as plt | |
from matplotlib import animation, rc | |
from IPython.core.display import display, HTML | |
%matplotlib inline | |
%load_ext autoreload | |
%autoreload 2 | |
def display_frames_as_gif(frames): |
<<< Depreciated >>>
- Conda Install
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod +x Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh
<answer appropriately>
<recommend to setup conda on /scratch/cluster/<username>. Since miniconda can become really big!>
This file contains 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
import numpy as np | |
import sys | |
import random | |
import tensorflow as tf | |
import itertools | |
slim = tf.contrib.slim | |
BATCH_SIZE = 32 | |
TRAIN_ITER = 1000 | |
EARLY_TRAIN_TERMINATE_CRITERIA = 1e-3; |
This file contains 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 | |
set -e | |
TMUX_VERSION=2.4 | |
LIBEVENT_VERSION=2.0.22-stable | |
NCURSES_VERSION=6.0 | |
mkdir -p $HOME/.local | |
mkdir -p $HOME/src |
OlderNewer