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
OpenDAS
OpenPCDet
Commits
35df959b
Commit
35df959b
authored
Nov 26, 2021
by
Shaoshuai Shi
Browse files
set to only evaluate last epoch in train.py
parent
abd7b7f0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tools/train.py
tools/train.py
+1
-1
No files found.
tools/train.py
View file @
35df959b
...
...
@@ -186,7 +186,7 @@ def main():
)
eval_output_dir
=
output_dir
/
'eval'
/
'eval_with_train'
eval_output_dir
.
mkdir
(
parents
=
True
,
exist_ok
=
True
)
args
.
start_epoch
=
max
(
args
.
epochs
-
1
0
,
0
)
# Only evaluate the last 10 epochs
args
.
start_epoch
=
max
(
args
.
epochs
-
0
,
0
)
# Only evaluate the last 10 epochs
repeat_eval_ckpt
(
model
.
module
if
dist_train
else
model
,
...
...
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