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
0cd12185
Commit
0cd12185
authored
Apr 28, 2021
by
mibaumgartner
Browse files
small inference bug fix
parent
96393acc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
scripts/consolidate.py
scripts/consolidate.py
+2
-2
scripts/predict.py
scripts/predict.py
+2
-1
No files found.
scripts/consolidate.py
View file @
0cd12185
...
...
@@ -186,8 +186,8 @@ def main():
elif
sweep_instances
:
raise
NotImplementedError
plan
=
load_pickle
(
target_dir
/
"plan.pkl"
)
if
consolidate
!=
'copy'
:
plan
=
load_pickle
(
target_dir
/
"plan.pkl"
)
plan
[
"inference_plan"
]
=
inference_plan
save_pickle
(
plan
,
target_dir
/
"plan_inference.pkl"
)
...
...
@@ -203,7 +203,7 @@ def main():
)
else
:
logger
.
warning
(
"Plan used from fold 0, not updated with consolidation"
)
save_pickle
(
plan
,
target_dir
/
"plan_inference.pkl"
)
if
__name__
==
'__main__'
:
main
()
scripts/predict.py
View file @
0cd12185
...
...
@@ -156,7 +156,8 @@ def main():
cfg
=
OmegaConf
.
load
(
str
(
training_dir
/
"config.yaml"
))
cfg
=
set_arg
(
cfg
,
"task"
,
task_name
,
force_args
=
force_args
)
cfg
[
"exp"
]
=
set_arg
(
cfg
[
"exp"
],
"fold"
,
fold
,
force_args
=
force_args
)
cfg
[
"exp"
]
=
set_arg
(
cfg
[
"exp"
],
"fold"
,
fold
,
force_args
=
True
if
fold
==
-
1
else
force_args
)
cfg
[
"exp"
]
=
set_arg
(
cfg
[
"exp"
],
"id"
,
model
,
force_args
=
force_args
)
overwrites
=
ov
if
ov
is
not
None
else
[]
...
...
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