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
a6adf8f0
"examples/pytorch/vscode:/vscode.git/clone" did not exist on "14bffe97286030a9efd1cc1a0832c7fc21413fbe"
Commit
a6adf8f0
authored
Oct 10, 2018
by
Kai Chen
Browse files
minor fix
parent
1229095f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
mmdet/models/detectors/base.py
mmdet/models/detectors/base.py
+0
-1
tools/test.py
tools/test.py
+1
-1
No files found.
mmdet/models/detectors/base.py
View file @
a6adf8f0
...
...
@@ -3,7 +3,6 @@ from abc import ABCMeta, abstractmethod
import
mmcv
import
numpy
as
np
import
torch
import
torch.nn
as
nn
from
mmdet.core
import
tensor2imgs
,
get_classes
...
...
tools/test.py
View file @
a6adf8f0
...
...
@@ -32,7 +32,7 @@ def single_test(model, data_loader, show=False):
def
_data_func
(
data
,
device_id
):
data
=
scatter
(
collate
([
data
],
samples_per_gpu
=
1
),
[
device_id
])[
0
]
return
dict
(
**
data
,
return_loss
=
False
,
rescale
=
True
)
return
dict
(
return_loss
=
False
,
rescale
=
True
,
**
data
)
def
parse_args
():
...
...
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