[Fix] val loader should not drop last by default. (#857)

This commit is contained in:
Fei Wang 2022-09-28 08:22:23 +08:00 committed by GitHub
parent 4d73607fb8
commit 0143e5fdb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -209,6 +209,7 @@ def train_model(model,
**loader_cfg,
'shuffle': False, # Not shuffle by default
'sampler_cfg': None, # Not use sampler by default
'drop_last': False, # Not drop last by default
**cfg.data.get('val_dataloader', {}),
}
val_dataloader = build_dataloader(val_dataset, **val_loader_cfg)