Skip to content

Instantly share code, notes, and snippets.

View gvanhorn38's full-sized avatar

Grant Van Horn gvanhorn38

View GitHub Profile
@gvanhorn38
gvanhorn38 / cub_image_cmds.txt
Created March 10, 2017 16:18
commands for the CUB-200 whole image experiment using tf_classification
export DATASET_DIR=/media/drive2/tensorflow_datasets/cub/with_200_val_split
export EXPERIMENT_DIR=/media/drive2/tensorflow_experiments/ebird/cub_image_experiment
export IMAGENET_PRETRAINED_MODEL=/media/drive3/tensorflow_models/inception_v3.ckpt
# Visualize the inputs to the network
CUDA_VISIBLE_DEVICES=1 python visualize_train_inputs.py \
--tfrecords $DATASET_DIR/train* \
--config $EXPERIMENT_DIR/config_train.yaml \
--text_labels
@gvanhorn38
gvanhorn38 / aws_c4_tensorflow_r1_1_install.md
Last active April 17, 2017 20:55
C4 Instance, Tensorflow r1.1

Installing TensorFlow r1.1 on an AWS C4 instance.

Following this with a few modifications

Built using Ubuntu 16.04 with c4.2xlarge instance and 25GB of standard ssd storage.

# Update and upgrade installed packages
sudo apt-get update
sudo apt-get upgrade
@gvanhorn38
gvanhorn38 / aws_p2_tensorflow_r1_1_install.md
Created April 17, 2017 20:55
P2 Instance, Tensorflow r1.1

Installing TensorFlow r1.1 on an AWS P2 instance.

Following this with a few modifications

Built using Ubuntu 16.04 with p2.xlarge instance and 25GB of standard ssd storage.

# Update and upgrade installed packages
sudo apt-get update
sudo apt-get upgrade
@gvanhorn38
gvanhorn38 / inat_classifier_from_prelogits.py
Created October 11, 2018 16:40
Simple iNaturalist Classifier from Features
import json
import os
import numpy as np
from sklearn.metrics import accuracy_score
from sklearn.svm import LinearSVC
# File Paths
DATA_FOLDER = '' # Fill in
TRAIN_DATASET_FP = os.path.join(DATA_FOLDER, 'train2018.json'); assert os.path.exists(TRAIN_DATASET_FP), "Train json file not found"