Skip to content

Commit

Permalink
revert fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobgil committed Nov 2, 2016
1 parent 29eec01 commit 2b7ada2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cam.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import argparse

def train(dataset_path):
model = get_model(load_weights = False)
model = get_model()
X, y = load_inria_person(dataset_path)
print "Training.."
checkpoint_path="weights.{epoch:02d}-{val_loss:.2f}.hdf5"
Expand Down
5 changes: 2 additions & 3 deletions model.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,10 @@ def VGG16_convolutions():
model.add(Convolution2D(512, 3, 3, activation='relu', name='conv5_3'))
return model

def get_model(load_weights = True):
def get_model():
model = VGG16_convolutions()

if load_weights:
model = load_model_weights(model, "vgg16_weights.h5")
model = load_model_weights(model, "vgg16_weights.h5")

model.add(Lambda(global_average_pooling,
output_shape=global_average_pooling_shape))
Expand Down

0 comments on commit 2b7ada2

Please sign in to comment.