Skip to content

Commit

Permalink
fix sampler bug
Browse files Browse the repository at this point in the history
  • Loading branch information
MendelXu committed Oct 13, 2021
1 parent 20e2618 commit e72c59c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ssod/datasets/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ def build_dataloader(
batch_size = samples_per_gpu
num_workers = workers_per_gpu
else:
sampler = build_sampler(sampler_cfg, default_sampler_cfg) if shuffle else None
sampler = (
build_sampler(sampler_cfg, default_args=default_sampler_cfg)
if shuffle
else None
)
batch_size = num_gpus * samples_per_gpu
num_workers = num_gpus * workers_per_gpu

Expand Down

0 comments on commit e72c59c

Please sign in to comment.