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
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 |
NewerOlder