Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.learn.pytorch
Commits
3225ac0e
Commit
3225ac0e
authored
Jan 30, 2019
by
Guillaume HEUSCH
Browse files
[trainer] corrected small bug in CNNTrainer
parent
c8ca46ef
Pipeline
#26433
failed with stage
in 6 minutes and 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/learn/pytorch/trainers/CNNTrainer.py
View file @
3225ac0e
...
...
@@ -197,7 +197,7 @@ class CNNTrainer(object):
start_epoch
,
start_iter
,
losses
=
self
.
load_and_initialize_model
(
model
)
if
start_epoch
!=
0
:
logger
.
info
(
'Previous network was trained up to epoch {}, iteration {}'
.
format
(
start_epoch
,
start_iter
,
losses
[
-
1
]
))
logger
.
info
(
'Previous network was trained up to epoch {}, iteration {}'
.
format
(
start_epoch
,
start_iter
))
if
losses
:
logger
.
info
(
'Last loss = {}'
.
format
(
losses
[
-
1
]))
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