Skip to content

Commit

Permalink
Fixed shuffling at end of epoch when shuffling is False
Browse files Browse the repository at this point in the history
  • Loading branch information
LHagendoorn committed Jan 16, 2019
1 parent a619206 commit 9db1b0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion keras_retinanet/preprocessing/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ def __init__(
self.on_epoch_end()

def on_epoch_end(self):
random.shuffle(self.groups)
if self.shuffle_groups:
random.shuffle(self.groups)

def size(self):
""" Size of the dataset.
Expand Down

0 comments on commit 9db1b0a

Please sign in to comment.