-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
执行可执行文件的时候报错了 #5
Comments
|
这个位置要确保scale为float,这里我前段时间修改过,你是否用的最新的代码呢? |
是的,是最新的代码。昨天才git下来的 |
那就已经是float了,我刚刚测试了这两张图应该是没有问题的,因此我认为还是trt转换出了问题,你可以把config中的dynamic设置为0重新生成一下(因为从报错信息来看onnx为静态文件) |
我把dynamic设为了0,还是不起作用。 root@rtx2060:/usr/local/TensorRT-8.4.3.1/bin# ./trtexec --onnx=/home/tuc/yolov5-6.1/weights/yolov5s.onnx --saveEngine=/home/tuc/yolov5-6.1/weights/outfpbest.trt --workspace=2048 --best
# 导出onnx是用这个命令,yolov5版本是6.1
python export.py --weights=yolov5s.pt --dynamic --simplify --include=onnx --opset 11
|
之前的报错信息在我导出 trt 模型后,放在weights路径下就自动消失了。 |
我这个代码是如果 |
会不会 是你代码里的后处理的问题呀,能够打印推理的时间,但是不能画框,是不是检测的那部分。 |
我暂时也无法定位问题,因为我复现不出来。。 |
博主,您好,我将我本地的模型和其代码上传到 https://github.com/xunxuntu/check_todo.git 这里了,您有空可以git 下来帮我看看吗 😁😁😁😁😁😁😁😁😁 |
请问 configs 下的 yolov5.yaml 文件中的 engine_file 字段的trt 文件是需要自己手动生成吗?
The text was updated successfully, but these errors were encountered: