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
013d1322
Unverified
Commit
013d1322
authored
Dec 19, 2019
by
Francisco Massa
Committed by
GitHub
Dec 19, 2019
Browse files
Fix lint (#1692)
parent
f4a82243
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
references/detection/train.py
references/detection/train.py
+1
-1
No files found.
references/detection/train.py
View file @
013d1322
...
@@ -108,7 +108,7 @@ def main(args):
...
@@ -108,7 +108,7 @@ def main(args):
# lr_scheduler = torch.optim.lr_scheduler.StepLR(optimizer, step_size=args.lr_step_size, gamma=args.lr_gamma)
# lr_scheduler = torch.optim.lr_scheduler.StepLR(optimizer, step_size=args.lr_step_size, gamma=args.lr_gamma)
lr_scheduler
=
torch
.
optim
.
lr_scheduler
.
MultiStepLR
(
optimizer
,
milestones
=
args
.
lr_steps
,
gamma
=
args
.
lr_gamma
)
lr_scheduler
=
torch
.
optim
.
lr_scheduler
.
MultiStepLR
(
optimizer
,
milestones
=
args
.
lr_steps
,
gamma
=
args
.
lr_gamma
)
if
args
.
resume
:
if
args
.
resume
:
checkpoint
=
torch
.
load
(
args
.
resume
,
map_location
=
'cpu'
)
checkpoint
=
torch
.
load
(
args
.
resume
,
map_location
=
'cpu'
)
model_without_ddp
.
load_state_dict
(
checkpoint
[
'model'
])
model_without_ddp
.
load_state_dict
(
checkpoint
[
'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