Unverified Commit ebe3f023 authored by vfdev's avatar vfdev Committed by GitHub
Browse files

Added python model tests for retinanet 50 (#2803)

parent 2831f11a
...@@ -71,6 +71,9 @@ script_test_models = { ...@@ -71,6 +71,9 @@ script_test_models = {
"keypointrcnn_resnet50_fpn": { "keypointrcnn_resnet50_fpn": {
'unwrapper': lambda x: x[1] 'unwrapper': lambda x: x[1]
}, },
"retinanet_resnet50_fpn": {
'unwrapper': lambda x: x[1]
}
} }
......
...@@ -565,7 +565,7 @@ class RetinaNet(nn.Module): ...@@ -565,7 +565,7 @@ class RetinaNet(nn.Module):
if not self._has_warned: if not self._has_warned:
warnings.warn("RetinaNet always returns a (Losses, Detections) tuple in scripting") warnings.warn("RetinaNet always returns a (Losses, Detections) tuple in scripting")
self._has_warned = True self._has_warned = True
return (losses, detections) return losses, detections
return self.eager_outputs(losses, detections) return self.eager_outputs(losses, detections)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment