YOLOV3_Tensorrt_Rectangular_Inference icon indicating copy to clipboard operation
YOLOV3_Tensorrt_Rectangular_Inference copied to clipboard

Error when I use torch_model_2_trt.py to convert yolov3-spp.weights

Open swim010 opened this issue 5 years ago • 1 comments

The error is:

RuntimeError: shape '[42, 256, 1, 1]' is invalid for input of size 10751.

Can you help me?

swim010 avatar Aug 04 '20 15:08 swim010

hi,i find that 42x256x1x1=10752>10751 that means u may consider whether the input shape is right,or whether this project based on eriklindernoren is suitable for your model. if your model is based on ultralytics ,that may not work out.

cmcamdy avatar Aug 06 '20 00:08 cmcamdy