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
AttributeError: 'NoneType' object has no attribute 'create_execution_context' #12
Comments
hey @wrz57661 , this is due to differing TRT version from the compiled model. I have updated the Will work if you recompile. |
uploaded new compiled model with trt version 7.1.3.0 |
hi,SeanAvery,i meets the same problem, my jetpack is 4.4, and tensorRT may be 7.1.3.0,i run this demo.py ,and got the same error, did i do some things wrong? |
yes , my tensorRT verson is 7.1.3.0 ,and i try it in jetson xavier nx devices |
Thank you for your patience @sunanlin13174 🙏 Have not tried with nx but also using jetpack 4.4 Can you send me full error stack? |
@seanavery ,Thank you for your quick reply. Your work is very useful for me to learn how to use python-tensorRT. Frist,i checked my environment of running,and then i followed your readme file to run demo.py .The error messages is as follows: `/usr/bin/python3.6 /home/qyg/Desktop/yolov5-tensorrt-master/python/lib/demo.py Process finished with exit code 1 |
i also meets another little problem. i just run export_tensorrt.py in jetson xavier nx devices,and i got this meassages:
|
i also meets the problem. i just run demo.py using yolov5s-simple-16.trt in jetson TX2 devices,the result is OK.But, i use yolov5s-simple-32.trt and got this meassages: |
It is interesting that we are in 2021 and this error still exists with latest downloads and model. AttributeErrorTraceback (most recent call last) /usr/local/lib/python3.6/dist-packages/jetbot-0.4.3-py3.6.egg/jetbot/object_detection.py in init(self, engine_path, preprocess_fn) /usr/local/lib/python3.6/dist-packages/jetbot-0.4.3-py3.6.egg/jetbot/tensorrt_model.py in init(self, engine_path, input_names, output_names, final_shapes) AttributeError: 'NoneType' object has no attribute 'create_execution_context' |
Hello,SceanAvery! When I run the demo.py,something went wrong.How can I solve it?
File "demo.py", line 23, in main
processor = Processor(model=args['model'])
File "/home/waveshare/yolov5-tensorrt/python/lib/Processor.py", line 19, in init
self.context = engine.create_execution_context()
AttributeError: 'NoneType' object has no attribute 'create_execution_context'
The text was updated successfully, but these errors were encountered: