-
Notifications
You must be signed in to change notification settings - Fork 162
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
yolov7 C++ #20
Comments
Hi, I got the same error as you. I solved it by using docker image nvcr.io/nvidia/tensorrt:22.06-py3 To export I used : https://github.com/WongKinYiu.git Nevertheless I got some other issue after and I needed to change the following : In yolov7.cpp add: #include "NvInferPlugin.h" and initLibNvInferPlugins(&gLogger.getTRTLogger(), ""); just before IRuntime* runtime = createInferRuntime(gLogger); In CMakeLists.txt replace: target_link_libraries(yolov7 nvinfer) For now I'm still blocked with this issue: |
开源出的代码自己都不测下吗,最基本的编译过程缺少vInferPlugin插件,导致编译错误,第二模型序列化无法engine.create_execution_context,多少人遇到类似问题,官方工程化指向这个工程,麻烦你给别人少弄点弯路!! |
我很明确的回复您了, 现在的C++代码不支持,NMS插件, 您提的好几个issue 我都一一回复了!!!! |
the please refer #18 .The real reason is that the reop of yolov7 did not understand that the model supported by the code of this reop does not include end-to-end |
不知道为什么有人把本项目的v7 C++代码列到了end2end里,我已经给V7仓库pr了相信他们会会快修复的。 |
I agree sorry, I typed it too fast yesterday, I updated my answer and thanks for your work. |
如果yolov5-rt那个项目中的代码有效,感谢您的反馈! |
yolov5-rt-stack那个项目的代码是可以使用的,或者在torch1.12.0版本下直接使用yolov7官方仓库的export.py导出带NMS的onnx文件,然后用8.2以上的tensorrt自带的trtexec转化.engine也可以。 |
好的, 感谢反馈,之前给他们的pr并没有合并, 相关的代码我都有严格的测试,v7仓库莫名奇妙就把我这个v7 的c++ demo 放上去了,给您带来困扰了! 不知道大家对端到端的需求多不多,有需要的话考虑专门做一个端到端的分支 |
Now I add the C++ support |
按照流程说明下来出现了这个错误: 这是因为什么的版本问题造成的吗?
./yolov7 ../yolov7.engine -i ../../../../assets/dog.jpg
[08/01/2022-19:43:48] [E] [TRT] 1: [stdArchiveReader.cpp::StdArchiveReader::40] Error Code 1: Serialization (Serialization assertion stdVersionRead == serializationVersion failed.Version tag does not match. Note: Current Version: 205, Serialized Engine Version: 213)
The text was updated successfully, but these errors were encountered: