Closed alikarimi120 closed 3 years ago
i sure "model.model[-1].export = False" in export.py
Can you help? @yasenh Which yolov5 release did you use? https://github.com/ultralytics/yolov5/releases
I tested it on v3.0 and v3.1 @alikarimi120 , are you using v4.0? And which version of libtorch are you using?
I tested it on v3.0 and v3.1 @alikarimi120 , are you using v4.0? And which version of libtorch are you using?
libortch : https://download.pytorch.org/libtorch/cu102/libtorch-cxx11-abi-shared-with-deps-1.6.0.zip
i tested it on v2.0 , v3.1 and v4 but I get this error (picture above)
Can you send me a yolov5s.torchscript.pt? of course, I think the problem is with the pytorch version, not the model conversion? @yasenh
I've tried nigthly version of libtorch and error dissapear command: wget https://download.pytorch.org/libtorch/nightly/cu101/libtorch-cxx11-abi-shared-with-deps-latest.zip
libtorch >= 1.6.0 should work