yasenh / libtorch-yolov5

A LibTorch inference implementation of the yolov5
MIT License
372 stars 114 forks source link

如果使用低版本的opencv可以??? #9

Closed dreamhighchina closed 3 years ago

yasenh commented 3 years ago

@dreamhighchina Should be fine, maybe some parameters need to be change accordingly

dreamhighchina commented 3 years ago

大佬,你有转好的模型???我用官网的转模型脚本,会出现CoreML export failure: module 'coremltools' has no attribute 'convert'的错误,然后目录下面有两个文件,yolov5s.onnx和yolov5s.torchscript.pt,yolov5s.torchscript.pt放到你的工程里面会报这个错误,Error loading the model!

yasenh commented 3 years ago

Please refer to issue #7 and make sure you have correct lib versions (e.g. libtorch 1.5.1). I will try latest libtorch version later on.