Skip to content

Commit

Permalink
bugfix: make the epoch in MultiScaleSampler self-incrementing
Browse files Browse the repository at this point in the history
  • Loading branch information
flytocc committed Mar 6, 2023
1 parent acf0a17 commit b98d88e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ppcls/data/dataloader/multi_scale_sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ def __iter__(self):
random.seed(self.seed)
else:
random.seed(self.epoch)
self.epoch += 1
random.shuffle(self.img_indices)
random.shuffle(self.img_batch_pairs)
indices_rank_i = self.img_indices[self.rank:len(self.img_indices):
Expand Down

0 comments on commit b98d88e

Please sign in to comment.