Tenserrt TRT reports an error when using engine infer
Question
An error occurred in building the yoov5s model and trying to use the TRT inference service
[TensorRT] ERROR: ../rtSafe/coreReadArchive.cpp (38) - Serialization Error in verifyHeader: 0 (Version tag does not match)
[TensorRT] ERROR: INVALID_STATE: std::exception
[TensorRT] ERROR: INVALID_CONFIG: Deserialize the cuda engine failed.
[the external chain image transfer fails. The source station may have an anti-theft chain mechanism. It is recommended to save the image and upload it directly (img-z24zz5ve-1629281553325) (C: \ users \ dell-3020 \ appdata \ roaming \ typora user images \ image-20210818142817754. PNG)]
Error reporting reason:
The version of tensorrt used when compiling engine is inconsistent with the version of tensorrt used when TRT reasoning is used. It needs to be consistent
terms of settlement
Confirm the tensorrt version of each link to ensure consistency; Look at the dynamic link library of Yolo compiled files
ldd yolo
After modification, it runs normally and the speed becomes very fast
reference resources
https://forums.developer.nvidia.com/t/tensorrt-error-rtsafe-corereadarchive-cpp-31-serialization-error-in-verifyheader-0-magic-tag-does-not-match/81872/3https://github.com/wang -xinyu/tensorrtx.git
Read More:
- OTS parsing error: invalid version tag
- XML tag has empty body less… (Ctrl+F1) Reports empty tag body. The validation works in XML / JSP
- onnx-tensorrt/builtin_op_importers.cpp:766:12: error: ‘class nvinfer1::IDeconvolutionLayer’ has no m
- main.cpp : (. Text + 0xd06): undefined reference to XX method | simple record
- The python version output from the command line is inconsistent with the python version in the current CONDA environment
- RuntimeError: NCCL error in: /pytorch/torch/lib/c10d/ProcessGroupNCCL.cpp:784 torch
- Solve the problem that the value in the disabled tag cannot be passed to the server
- The solution of “failed to load il2cpp” in Android package launched by unity
- Error in the project tag in the POM file of Maven project: failure to transfer
- This version of chromedriver only supports chrome version 92 crawler simulates the problem of Google plug-in version when the browser clicks and reports an error
- Error: cudaGetDevice() failed. Status: CUDA driver version is insufficient for CUDA runtime version
- XML file should have root tag (extra content at the end of the document in file error)
- Error: (49,15) error: tag can access private in fragmentactivity
- How to Use paho.mqtt.cpp
- Error:Kotlin: Module was compiled with an incompatible version of Kotlin. The binary version of its
- RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
- The spring boot set appears in the stand-alone version of redis Servlet.service () for servlet [dispatcherServlet] in context with path [] thr
- Unity Android failed to extract resources needed byil2cpp
- Start eclipse and prompt version 1.7.0_ 79 of the JVM is not suitable for this product. Version: 1.8 or greater i…