You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# - Classify ImageNet classes with VGG16, see `tutorial_models_vgg16.py <https://github.com/tensorlayer/tensorlayer/blob/master/example/tutorial_models_vgg16.py>__`
x=tf.placeholder(tf.float32, [None, 224, 224, 3])
# get the whole model
vgg1=tl.models.VGG16(x)
# restore pre-trained VGG parameters
# sess = tf.InteractiveSession()
# vgg.restore_params(sess)
# use for inferencing
# probs = tf.nn.softmax(vgg1.outputs)
cls.vgg1_layers=vgg1.all_layers
cls.vgg1_params=vgg1.all_params
withtf.Graph().as_default():
# - Extract features with VGG16 and Train a classifier with 100 classes