Skip to content

Commit

Permalink
del unused
Browse files Browse the repository at this point in the history
  • Loading branch information
MeowZheng committed Mar 31, 2022
1 parent d0af8cc commit cfdfc0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion mmseg/apis/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ def train_segmentor(model,
**loader_cfg,
'samples_per_gpu': 1,
'shuffle': False, # Not shuffle by default
'sampler_cfg': None, # Not use sampler by default
**cfg.data.get('val_dataloader', {}),
}
val_dataloader = build_dataloader(val_dataset, **val_loader_cfg)
Expand Down
6 changes: 2 additions & 4 deletions tools/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,7 @@ def main():
# cfg.gpus will be ignored if distributed
num_gpus=len(cfg.gpu_ids),
dist=distributed,
shuffle=False,
)
shuffle=False)
# The overall dataloader settings
loader_cfg.update({
k: v
Expand All @@ -210,8 +209,7 @@ def main():
**loader_cfg,
'samples_per_gpu': 1,
'shuffle': False, # Not shuffle by default
'sampler_cfg': None, # Not use sampler by default
**cfg.data.get('test_dataloader', {}),
**cfg.data.get('test_dataloader', {})
}
# build the dataloader
data_loader = build_dataloader(dataset, **test_loader_cfg)
Expand Down

0 comments on commit cfdfc0e

Please sign in to comment.