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
fe0251ce
Commit
fe0251ce
authored
Aug 20, 2021
by
mibaumgartner
Browse files
hydra >1.0 update
parent
61d46a7f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
scripts/convert_cls2fg.py
scripts/convert_cls2fg.py
+1
-1
scripts/convert_seg2det.py
scripts/convert_seg2det.py
+1
-1
scripts/convert_seg2det_restore.py
scripts/convert_seg2det_restore.py
+1
-1
scripts/nnunet/nnunet_export.py
scripts/nnunet/nnunet_export.py
+1
-1
No files found.
scripts/convert_cls2fg.py
View file @
fe0251ce
...
...
@@ -34,7 +34,7 @@ def convert_raw(task, overwrite, ov):
new_task_name_full
=
f
"Task
{
task_num
}
FG_
{
task_name
}
"
cfg
=
compose
(
task
,
"config.yaml"
,
overrides
=
ov
if
ov
is
not
None
else
[])
print
(
cfg
.
pretty
()
)
print
(
cfg
)
source_splitted_dir
=
Path
(
cfg
[
"host"
][
"splitted_4d_output_dir"
])
target_splitted_dir
=
Path
(
str
(
source_splitted_dir
).
replace
(
task_name_full
,
new_task_name_full
))
...
...
scripts/convert_seg2det.py
View file @
fe0251ce
...
...
@@ -170,7 +170,7 @@ def main():
for
task
in
tasks
:
cfg
=
compose
(
task
,
"config.yaml"
,
overrides
=
ov
if
ov
is
not
None
else
[])
print
(
cfg
.
pretty
()
)
print
(
cfg
)
splitted_dir
=
Path
(
cfg
[
"host"
][
"splitted_4d_output_dir"
])
...
...
scripts/convert_seg2det_restore.py
View file @
fe0251ce
...
...
@@ -39,7 +39,7 @@ if __name__ == '__main__':
for
task
in
tasks
:
cfg
=
compose
(
task
,
"config.yaml"
,
overrides
=
[])
print
(
cfg
.
pretty
()
)
print
(
cfg
)
splitted_dir
=
Path
(
cfg
[
"host"
][
"splitted_4d_output_dir"
])
for
postfix
in
[
"Tr"
,
"Ts"
]:
...
...
scripts/nnunet/nnunet_export.py
View file @
fe0251ce
...
...
@@ -92,5 +92,5 @@ if __name__ == '__main__':
_ov
=
copy
.
deepcopy
(
ov
)
if
ov
is
not
None
else
[]
cfg
=
compose
(
task
,
"config.yaml"
,
overrides
=
ov
if
ov
is
not
None
else
[])
print
(
cfg
.
pretty
)
print
(
cfg
)
run
(
cfg
,
target_dir
,
stuff
=
stuff
)
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