Skip to content

Commit

Permalink
Fix BUG: 'TypeError: <lambda>() takes 1 positional argument but 2 wer…
Browse files Browse the repository at this point in the history
…e given'
  • Loading branch information
cl0ver012 committed May 11, 2018
1 parent 0e25a77 commit 8b28ec0
Show file tree
Hide file tree
Showing 5 changed files with 42,949 additions and 42,936 deletions.
2 changes: 1 addition & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
model_checkpoint = ModelCheckpoint(model_names, monitor='val_loss', verbose=1, save_best_only=True)
early_stop = EarlyStopping('val_loss', patience=patience)
reduce_lr = ReduceLROnPlateau('val_loss', factor=0.1, patience=int(patience / 4), verbose=1)
cleanup = LambdaCallback(on_epoch_begin=lambda epoch, logs: trimap_clear())
cleanup = LambdaCallback(on_epoch_begin=lambda epoch, logs: trimap_clear(epoch))
callbacks = [tensor_board, model_checkpoint, early_stop, reduce_lr, cleanup]

# Start Fine-tuning
Expand Down
Loading

0 comments on commit 8b28ec0

Please sign in to comment.