Skip to content

Instantly share code, notes, and snippets.

View hiwonjoon's full-sized avatar
🎓

Wonjoon Goo hiwonjoon

🎓
View GitHub Profile
@hiwonjoon
hiwonjoon / vgg_extract.py
Created January 27, 2017 17:35
Feature Extrcation and Write TF Record example
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'
@hiwonjoon
hiwonjoon / converter
Last active February 14, 2017 10:59
Cifar 10 data set converter from pylearn2 format to level db
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