Skip to content

Commit

Permalink
Update distributed_training.py
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouzaida authored Sep 1, 2023
1 parent 4eb168f commit 9540f21
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/distributed_training.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,12 @@ def main():
batch_size=32,
dataset=train_set,
sampler=dict(type='DefaultSampler', shuffle=True),
collate_fn=dict(type='default_collate'),
num_batch_per_epoch=5)
collate_fn=dict(type='default_collate'))
val_dataloader = dict(
batch_size=32,
dataset=valid_set,
sampler=dict(type='DefaultSampler', shuffle=False),
collate_fn=dict(type='default_collate'),
num_batch_per_epoch=5)
collate_fn=dict(type='default_collate'))
runner = Runner(
model=MMResNet50(),
work_dir='./work_dir',
Expand Down

0 comments on commit 9540f21

Please sign in to comment.