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
6e00b30e
Commit
6e00b30e
authored
Aug 29, 2021
by
mibaumgartner
Browse files
misc
parent
ce2afc95
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
scripts/convert_cls2fg.py
scripts/convert_cls2fg.py
+0
-1
scripts/convert_seg2det_restore.py
scripts/convert_seg2det_restore.py
+7
-1
No files found.
scripts/convert_cls2fg.py
View file @
6e00b30e
...
...
@@ -18,7 +18,6 @@ import argparse
import
shutil
import
sys
from
pathlib
import
Path
from
tokenize
import
PseudoExtras
from
hydra
import
initialize_config_module
from
loguru
import
logger
...
...
scripts/convert_seg2det_restore.py
View file @
6e00b30e
...
...
@@ -21,9 +21,11 @@ from pathlib import Path
from
hydra
import
initialize_config_module
from
nndet.utils.config
import
compose
from
nndet.utils.check
import
env_guard
if
__name__
==
'__main__'
:
@
env_guard
def
main
():
"""
Automatically deletes files generated by seg2det and restores
the orignal segmentations
...
...
@@ -54,3 +56,7 @@ if __name__ == '__main__':
os
.
rename
(
f
,
f
.
parent
/
f
"
{
f
.
name
.
rsplit
(
'_'
,
1
)[
0
]
}
.nii.gz"
)
else
:
print
(
f
"
{
p
}
is not a dir. Skipping."
)
if
__name__
==
'__main__'
:
main
()
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