Skip to content
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

Compatibility Issue with TensorRT 10.0.1.6 and Python Serialization #36

Open
Liu-Jinxin opened this issue Jun 24, 2024 · 2 comments
Open

Comments

@Liu-Jinxin
Copy link

Liu-Jinxin commented Jun 24, 2024

HI, thanks for your work, I am encountering an issue while trying to test the exported model using TensorRT version 10.0.1.6. The following error occurs, which seems to be related to model serialization:

/workspace/depth_refinement/depth-anything-tensorrt$ python python/trt_infer.py --engine depth_anything_v2_vitl.engine --img Depth-Anything-V2/assets/examples/demo01.jpg --outdir Depth-Anything-V2/results
[06/24/2024-08:09:57] [TRT] [E] IRuntime::deserializeCudaEngine: Error Code 1: Serialization (Serialization assertion plan->header.magicTag == rt::kPLAN_MAGIC_TAG failed.Trying to load an engine created with incompatible serialization version. Check that the engine was not created using safety runtime, same OS was used and version compatibility parameters were set accordingly.)
Traceback (most recent call last):
  File "/workspace/depth_refinement/depth-anything-tensorrt/python/trt_infer.py", line 61, in <module>
    run(args)
  File "/workspace/depth_refinement/depth-anything-tensorrt/python/trt_infer.py", line 20, in run
    with engine.create_execution_context() as context:
AttributeError: 'NoneType' object has no attribute 'create_execution_context'

I am not sure if the issue stems from how the model is exported or if there might be a compatibility issue with Python. Any insights or suggestions on how to address this problem would be greatly appreciated.

Thank you!

@spacewalk01
Copy link
Owner

I haven't upgraded python version for tensorrt10. I will look into it.

@Liu-Jinxin
Copy link
Author

Thank you for your prompt response! I'm not entirely sure if the issues I'm encountering are due to misconfigurations in my environment or if they stem from the current Python version support for TensorRT 10 being incomplete. I look forward to any updates you might provide on this matter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants