Skip to content

Commit

Permalink
init LOCE
Browse files Browse the repository at this point in the history
  • Loading branch information
fcjian committed Aug 20, 2021
1 parent 582b874 commit 09eeed5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mmdet/datasets/samplers/distributed_banlanced_sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ def __iter__(self):
assert len(indices) == self.total_size

# subsample
# indices = indices[self.rank:self.total_size:self.num_replicas]
indices = indices[self.rank * self.num_samples:self.rank * self.num_samples + self.num_samples]
indices = indices[self.rank:self.total_size:self.num_replicas]
assert len(indices) == self.num_samples

indices_all_classes += indices
Expand Down

0 comments on commit 09eeed5

Please sign in to comment.