Skip to content

Commit

Permalink
(#159) when we exhaust the only remaining bucket, we should return No…
Browse files Browse the repository at this point in the history
…ne so that the epoch completes
  • Loading branch information
bghira committed Sep 20, 2023
1 parent 35fd0c3 commit 68ede74
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions helpers/multiaspect/sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@ def __iter__(self):
f"Our only bucket {self.current_bucket} is exhausted, so we reset."
)
self._reset_buckets()
return

if all_buckets_exhausted:
# If all buckets are exhausted, reset the seen images and refresh buckets
Expand Down

0 comments on commit 68ede74

Please sign in to comment.