mirror of
https://github.com/open-mmlab/mmclassification.git
synced 2025-06-03 21:53:55 +08:00
[Fix] val loader should not drop last by default. (#857)
This commit is contained in:
parent
4d73607fb8
commit
0143e5fdb0
@ -209,6 +209,7 @@ def train_model(model,
|
|||||||
**loader_cfg,
|
**loader_cfg,
|
||||||
'shuffle': False, # Not shuffle by default
|
'shuffle': False, # Not shuffle by default
|
||||||
'sampler_cfg': None, # Not use sampler by default
|
'sampler_cfg': None, # Not use sampler by default
|
||||||
|
'drop_last': False, # Not drop last by default
|
||||||
**cfg.data.get('val_dataloader', {}),
|
**cfg.data.get('val_dataloader', {}),
|
||||||
}
|
}
|
||||||
val_dataloader = build_dataloader(val_dataset, **val_loader_cfg)
|
val_dataloader = build_dataloader(val_dataset, **val_loader_cfg)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user