Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GreenWizard2015 committed Jul 2, 2024
1 parent d2f1c89 commit 84b5493
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Core/CDatasetLoader.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ def __init__(self, folder, samplerArgs, sampling, stats):
for k, size in validSamples.items():
# all datasets should have the same number of samples represented in the indices
# so that the sampling is uniform
chunk = np.full((maxSize, ), k, dtype=np.uint32) % size
chunk = chunk.astype(dtype)
chunk = np.full((maxSize, ), k, dtype=dtype)
chunks.append(chunk)
continue
self._indices = np.concatenate(chunks)
Expand Down

0 comments on commit 84b5493

Please sign in to comment.