Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yaoyuping
nnDetection
Commits
d8a7d2b7
Unverified
Commit
d8a7d2b7
authored
Jun 17, 2022
by
Joeran Bosma
Committed by
GitHub
Jun 17, 2022
Browse files
Hydra env update
Update the `env:` notation to `oc.env:` which is supported in newer hydra versions.
parent
938687e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
scripts/utils.py
scripts/utils.py
+4
-4
No files found.
scripts/utils.py
View file @
d8a7d2b7
...
@@ -59,8 +59,8 @@ def boxes2nii():
...
@@ -59,8 +59,8 @@ def boxes2nii():
training_dir
=
get_training_dir
(
task_dir
/
model
,
fold
)
training_dir
=
get_training_dir
(
task_dir
/
model
,
fold
)
overwrites
=
overwrites
if
overwrites
is
not
None
else
[]
overwrites
=
overwrites
if
overwrites
is
not
None
else
[]
overwrites
.
append
(
"host.parent_data=${env:det_data}"
)
overwrites
.
append
(
"host.parent_data=${
oc.
env:det_data}"
)
overwrites
.
append
(
"host.parent_results=${env:det_models}"
)
overwrites
.
append
(
"host.parent_results=${
oc.
env:det_models}"
)
prediction_dir
=
training_dir
/
"test_predictions"
\
prediction_dir
=
training_dir
/
"test_predictions"
\
if
test
else
training_dir
/
"val_predictions"
if
test
else
training_dir
/
"val_predictions"
...
@@ -150,8 +150,8 @@ def seg2nii():
...
@@ -150,8 +150,8 @@ def seg2nii():
training_dir
=
get_training_dir
(
task_dir
/
model
,
fold
)
training_dir
=
get_training_dir
(
task_dir
/
model
,
fold
)
overwrites
=
overwrites
if
overwrites
is
not
None
else
[]
overwrites
=
overwrites
if
overwrites
is
not
None
else
[]
overwrites
.
append
(
"host.parent_data=${env:det_data}"
)
overwrites
.
append
(
"host.parent_data=${
oc.
env:det_data}"
)
overwrites
.
append
(
"host.parent_results=${env:det_models}"
)
overwrites
.
append
(
"host.parent_results=${
oc.
env:det_models}"
)
prediction_dir
=
training_dir
/
"test_predictions"
\
prediction_dir
=
training_dir
/
"test_predictions"
\
if
test
else
training_dir
/
"val_predictions"
if
test
else
training_dir
/
"val_predictions"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment