Skip to content

Commit

Permalink
Fix bug with automatic keypoint checker
Browse files Browse the repository at this point in the history
  • Loading branch information
oarriaga committed Nov 8, 2019
1 parent 06ccc8e commit 566ddf1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@
log = CSVLogger(os.path.join(save_path, '%s.log' % model_name))
stop = EarlyStopping('loss', patience=args.stop_patience, verbose=1)
plateau = ReduceLROnPlateau('loss', patience=args.plateau_patience, verbose=1)
inferencer = KeypointInference(model.get_layer('keypointnet'))
inferencer = KeypointInference(
model.get_layer('keypointnet'), args.num_keypoints)
images = (sequencer.__getitem__(0)[0][0] * 255).astype('uint8')
draw = DrawInferences(save_path, images, inferencer)
model_path = os.path.join(save_path, '%s_weights.hdf5' % model_name)
Expand Down

0 comments on commit 566ddf1

Please sign in to comment.