Skip to content
Snippets Groups Projects
Commit f53de2be authored by clmich's avatar clmich Committed by Kai Chen
Browse files

Fix robustness data pipeline (#1476)

parent 3dc9ddb7
No related branches found
No related tags found
No related merge requests found
......@@ -350,9 +350,9 @@ def main():
aggregated_results[corruptions[0]][0]
continue
test_data_cfg = copy.deepcopy(cfg.data.test)
# assign corruption and severity
if corruption_severity > 0:
test_data_cfg = copy.deepcopy(cfg.data.test)
corruption_trans = dict(
type='Corrupt',
corruption=corruption,
......@@ -368,7 +368,7 @@ def main():
# build the dataloader
# TODO: support multiple images per gpu
# (only minor changes are needed)
dataset = build_dataset(cfg.data.test)
dataset = build_dataset(test_data_cfg)
data_loader = build_dataloader(
dataset,
imgs_per_gpu=1,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment