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
2a43cc7d
Commit
2a43cc7d
authored
Oct 11, 2018
by
myownskyW7
Browse files
high level api minor bugs fix again
parent
b4eb18dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mmdet/api/inference.py
mmdet/api/inference.py
+1
-1
No files found.
mmdet/api/inference.py
View file @
2a43cc7d
...
...
@@ -34,7 +34,7 @@ def inference_detector(model, imgs, cfg, device='cuda:0'):
img
=
mmcv
.
imread
(
img
)
data
=
_prepare_data
(
img
,
img_transform
,
cfg
,
device
)
with
torch
.
no_grad
():
result
=
model
(
**
data
,
return_loss
=
False
,
rescale
=
True
)
result
=
model
(
return_loss
=
False
,
rescale
=
True
,
**
data
)
yield
result
...
...
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