Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Stardust-minus authored Sep 2, 2023
1 parent 4d5c845 commit 6173b3e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,8 @@ def __iter__(self):
for i in range(len(self.buckets)):
bucket = self.buckets[i]
len_bucket = len(bucket)
if (len_bucket == 0):
continue
ids_bucket = indices[i]
num_samples_bucket = self.num_samples_per_bucket[i]

Expand Down

0 comments on commit 6173b3e

Please sign in to comment.