"docs/vscode:/vscode.git/clone" did not exist on "d57026b7fc8389ea26be22ae2bfe4e47f009bf10"
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 = {
"keypointrcnn_resnet50_fpn": {
'unwrapper': lambda x: x[1]
},
"retinanet_resnet50_fpn": {
'unwrapper': lambda x: x[1]
}
}
......
......@@ -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)
......
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