Skip to content

Commit

Permalink
fix a potential bug in GroupSampler (#955)
Browse files Browse the repository at this point in the history
  • Loading branch information
myownskyW7 authored and hellock committed Jul 8, 2019
1 parent b8bcda6 commit 084a389
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmdet/datasets/loader/sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def __iter__(self):
range(len(indices) // self.samples_per_gpu))
]
indices = np.concatenate(indices)
indices = torch.from_numpy(indices).long()
indices = indices.astype(np.int64).tolist()
assert len(indices) == self.num_samples
return iter(indices)

Expand Down

0 comments on commit 084a389

Please sign in to comment.