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
ebe3f023
"docs/vscode:/vscode.git/clone" did not exist on "d57026b7fc8389ea26be22ae2bfe4e47f009bf10"
Unverified
Commit
ebe3f023
authored
Oct 14, 2020
by
vfdev
Committed by
GitHub
Oct 14, 2020
Browse files
Added python model tests for retinanet 50 (#2803)
parent
2831f11a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
test/test_models.py
test/test_models.py
+3
-0
torchvision/models/detection/retinanet.py
torchvision/models/detection/retinanet.py
+1
-1
No files found.
test/test_models.py
View file @
ebe3f023
...
...
@@ -71,6 +71,9 @@ script_test_models = {
"keypointrcnn_resnet50_fpn"
:
{
'unwrapper'
:
lambda
x
:
x
[
1
]
},
"retinanet_resnet50_fpn"
:
{
'unwrapper'
:
lambda
x
:
x
[
1
]
}
}
...
...
torchvision/models/detection/retinanet.py
View file @
ebe3f023
...
...
@@ -565,7 +565,7 @@ class RetinaNet(nn.Module):
if
not
self
.
_has_warned
:
warnings
.
warn
(
"RetinaNet always returns a (Losses, Detections) tuple in scripting"
)
self
.
_has_warned
=
True
return
(
losses
,
detections
)
return
losses
,
detections
return
self
.
eager_outputs
(
losses
,
detections
)
...
...
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