Vision: Empty expected values on test_retinanet_resnet50_fpn

Created on 14 Oct 2020  路  2Comments  路  Source: pytorch/vision

馃悰 Bug

The Unit-test expected values of RetinaNet are empty and thus the test does not protect us from breaking the code.

To Reproduce

Steps to reproduce the behavior:

>>> import torch
>>> expected = torch.load("./test/expect/ModelTester.test_retinanet_resnet50_fpn_expect.pkl")
>>> print(expected)
[{'boxes': tensor([], size=(0, 4), requires_grad=True), 'scores': tensor([], requires_grad=True), 'labels': tensor([], dtype=torch.int64)}]

Expected behavior

Ensure we have some non-trivial expected values so that we detect it when the code breaks. @fmassa advised to try and find a way that does not involve download pretrained weights.

bug tests object detection

Most helpful comment

@vfdev-5 yes it is! Every other model is fine. :)

All 2 comments

@datumbox I wonder if this issue is exclusively for retinanet ?

@vfdev-5 yes it is! Every other model is fine. :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

soldierofhell picture soldierofhell  路  36Comments

varunagrawal picture varunagrawal  路  45Comments

davidsteinar picture davidsteinar  路  23Comments

fmassa picture fmassa  路  34Comments

mcleonard picture mcleonard  路  26Comments