George-Hotz / yolov8_seg_tensorRT

The deployment of Yolov8-seg on Jetson AGX Xavier(带低光照补偿的yolov8检测分割模型)
38 stars 1 forks source link

build.cu:253 No member named 'setMaxBatchSize' in 'nvinfer1::IBuilder' #4

Open liangyijian1 opened 4 weeks ago

liangyijian1 commented 4 weeks ago

C:\Users\22692\CLionProjects\yolov8_seg_tensorRT\build.cu(253): error: class "nvinfer1::IBuilder" has no member "setMaxBatchSize" builder->setMaxBatchSize(1); ^

1 error detected in the compilation of "C:/Users/22692/CLionProjects/yolov8_seg_tensorRT/build.cu". build.cu ninja: build stopped: subcommand failed.

请问是什么原因造成的呢?

George-Hotz commented 4 weeks ago

这个setMaxBatchSize好像是trt的API,检查一下这个API对应的trt版本,代码是可以编译通过的,可能环境得调整一下

---Original--- From: @.> Date: Wed, Aug 28, 2024 17:03 PM To: @.>; Cc: @.***>; Subject: [George-Hotz/yolov8_seg_tensorRT] build.cu:253 No member named'setMaxBatchSize' in 'nvinfer1::IBuilder' (Issue #4)

C:\Users\22692\CLionProjects\yolov8_seg_tensorRT\build.cu(253): error: class "nvinfer1::IBuilder" has no member "setMaxBatchSize" builder->setMaxBatchSize(1); ^

1 error detected in the compilation of "C:/Users/22692/CLionProjects/yolov8_seg_tensorRT/build.cu". build.cu ninja: build stopped: subcommand failed.

请问是什么原因造成的呢?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>