Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
seminar-breakout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
seminar-breakout
Commits
bff69e84
Commit
bff69e84
authored
Aug 10, 2016
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update varnames
parent
58a41fca
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
examples/load-alexnet.py
examples/load-alexnet.py
+1
-1
examples/load-vgg16.py
examples/load-vgg16.py
+1
-1
tensorpack/utils/logger.py
tensorpack/utils/logger.py
+2
-1
No files found.
examples/load-alexnet.py
View file @
bff69e84
...
...
@@ -62,7 +62,7 @@ def run_test(path, input):
input_var_names
=
[
'input'
],
session_init
=
ParamRestore
(
param_dict
),
session_config
=
get_default_sess_config
(
0.9
),
output_var_names
=
[
'output
:0
'
]
# output:0 is the probability distribution
output_var_names
=
[
'output'
]
# output:0 is the probability distribution
)
predict_func
=
get_predict_func
(
pred_config
)
...
...
examples/load-vgg16.py
View file @
bff69e84
...
...
@@ -79,7 +79,7 @@ def run_test(path, input):
input_var_names
=
[
'input'
],
session_init
=
ParamRestore
(
param_dict
),
session_config
=
get_default_sess_config
(
0.9
),
output_var_names
=
[
'output
:0
'
]
# output:0 is the probability distribution
output_var_names
=
[
'output'
]
# output:0 is the probability distribution
)
predict_func
=
get_predict_func
(
pred_config
)
...
...
tensorpack/utils/logger.py
View file @
bff69e84
...
...
@@ -67,7 +67,8 @@ def set_logger_dir(dirname, action=None):
if
os
.
path
.
isdir
(
dirname
):
if
not
action
:
_logger
.
warn
(
"""
\
Directory {} exists! Please either backup/delete it, or use a new directory.
\
Directory {} exists! Please either backup/delete it, or use a new directory."""
)
_logger
.
warn
(
"""
\
If you're resuming from a previous run you can choose to keep it."""
.
format
(
dirname
))
_logger
.
info
(
"Select Action: k (keep) / b (backup) / d (delete) / n (new):"
)
while
not
action
:
...
...
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