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

onxx file convert error ! #27

Open
ahmet-f-gumustas opened this issue Aug 5, 2024 · 2 comments
Open

onxx file convert error ! #27

ahmet-f-gumustas opened this issue Aug 5, 2024 · 2 comments

Comments

@ahmet-f-gumustas
Copy link

This is a terminal output :

~/workspace/lane_tracking_detection_with_ai/Vehicle-CV-ADAS$ python3 convertOnnxToTensorRT.py -i /home/moveon2/workspace/lane_tracking_detection_with_ai/Vehicle-CV-ADAS/yolov8l.onnx -o /home/moveon2/workspace/lane_tracking_detection_with_ai/Vehicle-CV-ADAS/model.engine
Vehicle-CV-ADAS/convertOnnxToTensorRT: input_onnx_model=/home/moveon2/workspace/lane_tracking_detection_with_ai/Vehicle-CV-ADAS/yolov8l.onnx, output_trt_model=/home/moveon2/workspace/lane_tracking_detection_with_ai/Vehicle-CV-ADAS/model.engine, verbose=False
👉 Starting export with TensorRT Version : 10.0.1
[08/05/2024-11:05:51] [TRT] [I] [MemUsageChange] Init CUDA: CPU +18, GPU +0, now: CPU 24, GPU 750 (MiB)
[08/05/2024-11:05:52] [TRT] [I] [MemUsageChange] Init builder kernel library: CPU +1763, GPU +312, now: CPU 1922, GPU 1062 (MiB)
Traceback (most recent call last):
File "/home/moveon2/workspace/lane_tracking_detection_with_ai/Vehicle-CV-ADAS/convertOnnxToTensorRT.py", line 240, in
builder = EngineBuilder(verbose)
File "/home/moveon2/workspace/lane_tracking_detection_with_ai/Vehicle-CV-ADAS/convertOnnxToTensorRT.py", line 114, in init
self.config.max_workspace_size = int(workspace * (1 << 30))
AttributeError: 'tensorrt_bindings.tensorrt.IBuilderConfig' object has no attribute 'max_workspace_size'

How to solve this error ?

@jason-li-831202
Copy link
Owner

Please lower tensorrt version to 8.x.

@ahmet-f-gumustas
Copy link
Author

I try soon. Thank You!

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