Skip to content

Commit

Permalink
Update vgg16.py
Browse files Browse the repository at this point in the history
  • Loading branch information
roebius committed Jan 12, 2018
1 parent e081626 commit e6edd0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nbs/vgg16.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def ft(self, num):
self.compile()

def finetune(self, batches):
self.ft(batches.num_classes) # Keras2
self.ft(batches.num_class) # Keras2.0 (will become .num_classes with Keras 2.1)
classes = list(iter(batches.class_indices))
for c in batches.class_indices:
classes[batches.class_indices[c]] = c
Expand Down

0 comments on commit e6edd0c

Please sign in to comment.