Skip to content

Empty expected values on test_retinanet_resnet50_fpn #2810

Closed
@datumbox

Description

@datumbox

🐛 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions