Closed Yamameeee closed 1 year ago
Here, data['img']
is not cast to DataContainer
.
I investigated this problem.
This is caused by replace_ImageToTensor
in mmdetection.
replace_ImageToTensor
doesn't deal with mmdet.ImageToTensor
and mmdet.DefaultFormatBundle
.
Thanks for your suggestion. We have fixed this issue and you can use inference_detector to try PETR now.
When I use inference_detector to try PETR, tensor shape error is caused like this:
RuntimeError: Expected 4-dimensional input for 4-dimensional weight [64, 3, 7, 7], but got 3-dimensional input of size [3, 800, 1067] instead
How to fix this?