Skip to content

Commit

Permalink
Fixed wrong data_path patching for anomalib regression tests (#2138)
Browse files Browse the repository at this point in the history
fixed wrong data_path patching for anomalib regression tests
  • Loading branch information
yunchu authored May 12, 2023
1 parent 1b09c03 commit 5a3fed1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/regression/regression_test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ def load_regression_configuration(
# update data_path using data_root setting
data_paths = reg_config["data_path"][task_type]
for key, value in data_paths.items():
data_paths[key] = os.path.join(data_root, value)
if key != "train_params":
data_paths[key] = os.path.join(data_root, value)

result["data_path"] = data_paths

Expand Down

0 comments on commit 5a3fed1

Please sign in to comment.