libtorch-yolov5 icon indicating copy to clipboard operation
libtorch-yolov5 copied to clipboard

.toTuple() Error occured

Open blackCmd opened this issue 3 years ago • 2 comments

Load and predict is OK. But when I try .toTuple() Error occured. How to solve it?

blackCmd avatar Jul 06 '21 06:07 blackCmd

I solved it by running the below command when exporting to "torchscript": python export.py --weights yolov5l.pt --device 0 --inplace

But when I export with the above command, there is some performance depreciation. It means that the objects which are detected with pytorch detection function are not detected with C++ libtorch for the same image.

I don't know why.

Jelly123456 avatar Jul 13 '21 08:07 Jelly123456

I solved it by running the below command when exporting to "torchscript": python export.py --weights yolov5l.pt --device 0 --inplace

But when I export with the above command, there is some performance depreciation. It means that the objects which are detected with pytorch detection function are not detected with C++ libtorch for the same image.

I don't know why.

Wow Thank you. I wondering about the performance depreciation problem too. Does anyone know what is the cause?

blackCmd avatar Jul 15 '21 05:07 blackCmd