Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
AMBS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
esde
machine-learning
AMBS
Commits
a83594a2
Commit
a83594a2
authored
2 years ago
by
Michael Langguth
Browse files
Options
Downloads
Patches
Plain Diff
Some corrections to config_postprocess.py.
parent
432fcc72
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
video_prediction_tools/utils/runscript_generator/config_postprocess.py
+6
-4
6 additions, 4 deletions
...ion_tools/utils/runscript_generator/config_postprocess.py
with
6 additions
and
4 deletions
video_prediction_tools/utils/runscript_generator/config_postprocess.py
+
6
−
4
View file @
a83594a2
...
@@ -60,7 +60,7 @@ class Config_Postprocess(Config_runscript_base):
...
@@ -60,7 +60,7 @@ class Config_Postprocess(Config_runscript_base):
# get the 'checkpoint-directory', i.e. the directory where the trained model parameters are stored
# get the 'checkpoint-directory', i.e. the directory where the trained model parameters are stored
# Note that the remaining information (model, results-directory etc.) can be retrieved form it!!!
# Note that the remaining information (model, results-directory etc.) can be retrieved form it!!!
# First cho
s
se the basic experiment directory
# First cho
o
se the basic experiment directory
dir_base
=
Config_Postprocess
.
handle_source_dir
(
self
,
"
models
"
)
dir_base
=
Config_Postprocess
.
handle_source_dir
(
self
,
"
models
"
)
expbase_req_str
=
"
Choose an experiment from the list above:
"
expbase_req_str
=
"
Choose an experiment from the list above:
"
expbase_err
=
NotADirectoryError
(
"
Could not find passed directory.
"
)
expbase_err
=
NotADirectoryError
(
"
Could not find passed directory.
"
)
...
@@ -101,7 +101,7 @@ class Config_Postprocess(Config_runscript_base):
...
@@ -101,7 +101,7 @@ class Config_Postprocess(Config_runscript_base):
self
.
runscript_target
=
self
.
rscrpt_tmpl_prefix
+
self
.
dataset
+
"
_
"
+
exp_dir
+
"
.sh
"
self
.
runscript_target
=
self
.
rscrpt_tmpl_prefix
+
self
.
dataset
+
"
_
"
+
exp_dir
+
"
.sh
"
# Set results_dir
# Set results_dir
self
.
results_dir
=
os
.
path
.
join
(
base_dir
,
"
results
"
,
exp_dir_base
,
self
.
model
,
exp_dir
)
self
.
results_dir
=
os
.
path
.
join
(
base_dir
,
"
results
"
,
exp_dir_base
,
self
.
model
,
exp_dir
)
return
return
# Decide if quick evaluation should be performed
# Decide if quick evaluation should be performed
...
@@ -150,9 +150,11 @@ class Config_Postprocess(Config_runscript_base):
...
@@ -150,9 +150,11 @@ class Config_Postprocess(Config_runscript_base):
:param silent: flag if print-statement are executed
:param silent: flag if print-statement are executed
:return: status with True confirming success
:return: status with True confirming success
"""
"""
status
=
False
if
not
os
.
path
.
isdir
(
dir_in
):
if
not
os
.
path
.
isdir
(
dir_in
):
if
not
silent
:
print
(
"
{0} is not a directory
"
.
format
(
dir_in
))
if
not
silent
:
print
(
"
{0} is not a directory
"
.
format
(
dir_in
))
status
=
False
elif
dir_in
==
""
:
if
not
silent
:
print
(
"
{0}: Please enter a directory/checkpoint.
"
)
else
:
else
:
status
=
True
status
=
True
...
@@ -184,7 +186,7 @@ class Config_Postprocess(Config_runscript_base):
...
@@ -184,7 +186,7 @@ class Config_Postprocess(Config_runscript_base):
print
(
"
The base directory does not exist as well!
"
)
print
(
"
The base directory does not exist as well!
"
)
return
status
return
status
if
not
model_in
:
# user just pr
int
ed 'Enter'
if
not
model_in
:
# user just pr
ess
ed 'Enter'
_
=
Config_Postprocess
.
get_subdir_list
(
os
.
path
.
dirname
(
model_path
))
_
=
Config_Postprocess
.
get_subdir_list
(
os
.
path
.
dirname
(
model_path
))
return
status
return
status
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment