triple-Mu / YOLOv8-TensorRT

YOLOv8 using TensorRT accelerate !
MIT License
1.23k stars 210 forks source link

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd5 in position 4: invalid continuation byte #202

Closed bid-p closed 3 months ago

bid-p commented 3 months ago

Trying to load YOLOv8 TensorRT engine exported using build.py using Ultralytics YOLOv8 in Python, but getting

image

Are models generated by the YOLOv8-TensorRT project not compatible with the Ultralytics YOLO project?

triple-Mu commented 3 months ago

Trying to load YOLOv8 TensorRT engine exported using build.py using Ultralytics YOLOv8 in Python, but getting image Are models generated by the YOLOv8-TensorRT project not compatible with the Ultralytics YOLO project?

You can not use the engine exported by this repo in Ultralytics. You should try infer-det.py or csrc/detect cpp code

bid-p commented 3 months ago

Hi, I changed the Engine builder a tad and it works; here's my stripped down, modified version of the Engine builder: https://github.com/bid-p/ONNX-Engine-Builder-YOLOv8. Just had to add the metadata. Note that this will cause exported engines to no longer work with YOLOv8-TensorRT as the added metadata will not be read.