Skip to content

Instantly share code, notes, and snippets.

View codyhan's full-sized avatar

Zonghan Wu codyhan

  • Rosetta Lab
  • Shanghai
View GitHub Profile
@codyhan
codyhan / googlenet.py
Created March 27, 2017 02:44 — forked from joelouismarino/googlenet.py
GoogLeNet in Keras
from scipy.misc import imread, imresize
from keras.layers import Input, Dense, Convolution2D, MaxPooling2D, AveragePooling2D, ZeroPadding2D, Dropout, Flatten, merge, Reshape, Activation
from keras.models import Model
from keras.regularizers import l2
from keras.optimizers import SGD
from googlenet_custom_layers import PoolHelper,LRN
def create_googlenet(weights_path=None):