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
ModelZoo
SOLOv2-pytorch
Commits
b4eb18dc
Commit
b4eb18dc
authored
Oct 11, 2018
by
myownskyW7
Browse files
high level api minor bugs fix
parent
4c1da636
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
mmdet/api/inference.py
mmdet/api/inference.py
+1
-1
mmdet/api/train.py
mmdet/api/train.py
+1
-1
No files found.
mmdet/api/inference.py
View file @
b4eb18dc
...
...
@@ -27,7 +27,7 @@ def inference_detector(model, imgs, cfg, device='cuda:0'):
imgs
=
imgs
if
isinstance
(
imgs
,
list
)
else
[
imgs
]
img_transform
=
ImageTransform
(
**
cfg
.
img_norm_cfg
,
size_divisor
=
cfg
.
data
.
test
.
size_divisor
)
size_divisor
=
cfg
.
data
.
test
.
size_divisor
,
**
cfg
.
img_norm_cfg
)
model
=
model
.
to
(
device
)
model
.
eval
()
for
img
in
imgs
:
...
...
mmdet/api/train.py
View file @
b4eb18dc
...
...
@@ -117,4 +117,4 @@ def train_detector(model, dataset, cfg):
runner
.
resume
(
cfg
.
resume_from
)
elif
cfg
.
load_from
:
runner
.
load_checkpoint
(
cfg
.
load_from
)
runner
.
run
(
data_loaders
,
cfg
.
workflow
,
cfg
.
total_epochs
)
\ No newline at end of file
runner
.
run
(
data_loaders
,
cfg
.
workflow
,
cfg
.
total_epochs
)
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