Skip to content

KeyError: 'rboxes' #34

@wangyanfu123

Description

@wangyanfu123

请问inference.py如何使用,我一直报错
(256,)
2020-04-14 18:48:01,906 maskrcnn_benchmark.utils.model_serialization INFO: rpn.head.conv.weight loaded from rpn.head.conv.weight of shape (256, 256, 3, 3)
torch.Size([3, 800, 1123])
Traceback (most recent call last):
File "tools/inference.py", line 233, in
main()
File "tools/inference.py", line 186, in main
rboxes = prediction.get_field( "rboxes" ).cpu()
File "/home2/Jc/gliding_vertex-master/maskrcnn_benchmark/structures/bounding_box.py", line 43, in get_field
return self.extra_fields[field]
KeyError: 'rboxes'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions