Skip to content

Commit 84b5493

Browse files
fix
1 parent d2f1c89 commit 84b5493

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Core/CDatasetLoader.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ def __init__(self, folder, samplerArgs, sampling, stats):
5757
for k, size in validSamples.items():
5858
# all datasets should have the same number of samples represented in the indices
5959
# so that the sampling is uniform
60-
chunk = np.full((maxSize, ), k, dtype=np.uint32) % size
61-
chunk = chunk.astype(dtype)
60+
chunk = np.full((maxSize, ), k, dtype=dtype)
6261
chunks.append(chunk)
6362
continue
6463
self._indices = np.concatenate(chunks)

0 commit comments

Comments
 (0)