Skip to content

Commit

Permalink
[FIX] fix ReNet val_dataloader
Browse files Browse the repository at this point in the history
  • Loading branch information
yangcedrus committed Oct 13, 2022
1 parent f002bf3 commit ee25973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/data/dataloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def get_dataloader(config, mode, model_type, distribute):
use_memory=config["use_memory"],
)

if config["dataloader_num"] == 1 or mode == "test":
if config["dataloader_num"] == 1 or mode in ["val", "test"]:

collate_function = get_collate_function(config, trfms, mode, model_type)

Expand Down

0 comments on commit ee25973

Please sign in to comment.