enazoe / yolo-tensorrt

TensorRT8.Support Yolov5n,s,m,l,x .darknet -> tensorrt. Yolov4 Yolov3 use raw darknet *.weights and *.cfg fils. If the wrapper is useful to you,please Star it.
MIT License
1.19k stars 316 forks source link

Better compatibility with Linux #135

Closed nianjiuhuiyi closed 2 years ago

nianjiuhuiyi commented 2 years ago

When I use it on centos7, it reports an error like this:terminate called after throwing an instance of 'std::out_of_range' what(): map::at, I eventually found out that Linux does not treat the blank lines in the configuration file yolov5s6.cfg the same way Windows does. When reading a blank line, 'line.empty()=true' under Windows, and 'line="\r"' under Centos7, so 'line.empty()=false'.