Skip to content

Commit

Permalink
added anchor parameter changeable definitions to the RetinaNet notebo…
Browse files Browse the repository at this point in the history
…ok, and fixed a bug where n_semantic_classes was not defined when panoptic==False
  • Loading branch information
nitzanrazin committed Jul 4, 2019
1 parent 5858374 commit 0d8dc57
Show file tree
Hide file tree
Showing 2 changed files with 157 additions and 120 deletions.
2 changes: 2 additions & 0 deletions deepcell/training.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,8 @@ def train_model_retinanet(model,
if panoptic:
n_semantic_classes = [layer.output_shape[channel_axis]
for layer in model.layers if 'semantic' in layer.name]
else:
n_semantic_classes = []

# the data, shuffled and split between train and test sets
print('X_train shape:', train_dict['X'].shape)
Expand Down

0 comments on commit 0d8dc57

Please sign in to comment.