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
vision
Commits
3ec4b949
Unverified
Commit
3ec4b949
authored
May 10, 2022
by
Vasilis Vryniotis
Committed by
GitHub
May 10, 2022
Browse files
Fix regression on Detection training script (#5985)
parent
fd935fe9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
+0
-5
references/detection/train.py
references/detection/train.py
+0
-5
No files found.
references/detection/train.py
View file @
3ec4b949
...
...
@@ -158,10 +158,7 @@ def main(args):
device
=
torch
.
device
(
args
.
device
)
if
args
.
use_deterministic_algorithms
:
torch
.
backends
.
cudnn
.
benchmark
=
False
torch
.
use_deterministic_algorithms
(
True
)
else
:
torch
.
backends
.
cudnn
.
benchmark
=
True
# Data loading code
print
(
"Loading data"
)
...
...
@@ -253,8 +250,6 @@ def main(args):
scaler
.
load_state_dict
(
checkpoint
[
"scaler"
])
if
args
.
test_only
:
# We disable the cudnn benchmarking because it can noticeably affect the accuracy
torch
.
backends
.
cudnn
.
benchmark
=
False
torch
.
backends
.
cudnn
.
deterministic
=
True
evaluate
(
model
,
data_loader_test
,
device
=
device
)
return
...
...
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