-
Notifications
You must be signed in to change notification settings - Fork 191
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
yolo8推理报错 #42
Comments
这个有得到解决吗?同样的问题 |
[E] [TRT] 3: [runtime.cpp::nvinfer1::Runtime::~Runtime::346] Error Code 3: API Usage Error (Parameter check failed at: runtime.cpp::nvinfer1::Runtime::~Runtime::346, condition: mEngineCounter.use_count() == 1. Destroying a runtime before destroying deserialized engines created by the runtime leads to undefined behavior. |
我有观察到,它在YOLOV8::init中报错了,Parameter check failed在网上有回答说,是因为trt和实际的模型结构不一致导致的,这个希望FeiYull能够解答一下 |
是的,我也遇到了相同的问题。不同的是我使用的是tensorrt8.6.1.6,没有使用8.4.不知道是否存在影响。 |
|
你好 ,我用的也是8.6 ,也是这个错误。我看了你说的顺序问题导致的报错,但是我看默认的顺序就是对的啊。请问应该如何修改代码 |
我的问题是因为在模型转换时出现的问题,如果使用Ultralytics yolo 命令进行转换的engine模型,会在模型头部加一大堆这个模型的信息,前4字节是这个信息的长度跳过去脚好了。大概就是下面这样的情况 with open(weights_path, 'rb') as f, trt.Runtime(logger) as runtime: |
编译过程没问题,使用时报错
启动命令
.\trt.exe --model=1.trt --size=640 --batch_size=1 --img=1.jpg --show --savePath=../
The text was updated successfully, but these errors were encountered: