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
849bc626
Commit
849bc626
authored
Jul 20, 2021
by
mibaumgartner
Browse files
props to pred
parent
be3dd8e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
scripts/nnunet/nnunet_import.py
scripts/nnunet/nnunet_import.py
+5
-0
No files found.
scripts/nnunet/nnunet_import.py
View file @
849bc626
...
...
@@ -253,6 +253,11 @@ def import_single_case(logits_source: Path,
instances_target
=
logits_target_dir
/
f
"
{
case_name
}
_instances.pkl"
boxes
=
{
key
:
res
[
key
]
for
key
in
[
"pred_boxes"
,
"pred_labels"
,
"pred_scores"
]}
boxes
[
"original_size_of_raw_data"
]
=
properties_dict
[
"original_size_of_raw_data"
]
boxes
[
"itk_origin"
]
=
properties_dict
[
"itk_origin"
]
boxes
[
"itk_direction"
]
=
properties_dict
[
"itk_direction"
]
boxes
[
"itk_spacing"
]
=
properties_dict
[
"itk_spacing"
]
save_pickle
(
boxes
,
detection_target
)
if
save_iseg
:
instances
=
{
key
:
res
[
key
]
for
key
in
[
"pred_instances"
,
"pred_labels"
,
"pred_scores"
]}
...
...
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