We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e050ac8 commit 474c20dCopy full SHA for 474c20d
scripts/test.py
@@ -42,8 +42,14 @@
42
cfg.data_dir = os.path.join(training_dir, 'data')
43
if cfg.results_dir is None:
44
cfg.results_dir = os.path.join(training_dir, 'results')
45
+
46
if cfg.baseline_dir is None:
- cfg.baseline_dir = os.path.join(training_dir, 'baseline_' + BASELINE_VERSION)
47
+ baseline_img_repo = os.environ.get('OIDN_VALIDATION_REPO')
48
+ if baseline_img_repo is not None:
49
+ run(f'git clone --branch {BASELINE_VERSION} --single-branch --depth 1 "{baseline_img_repo}" baseline_images_repo')
50
+ cfg.baseline_dir = os.path.join('baseline_images_repo', 'images')
51
+ else:
52
+ cfg.baseline_dir = os.path.join(training_dir, 'baseline_' + BASELINE_VERSION)
53
54
if cfg.command == 'run':
55
# Detect the OIDN binary directory
0 commit comments