Smorodov / Multitarget-tracker

Multiple Object Tracker, Based on Hungarian algorithm + Kalman filter.
Apache License 2.0
2.17k stars 647 forks source link

about tensorrt compile error #397

Open Mickeyyyang opened 1 year ago

Mickeyyyang commented 1 year ago

Make the project by -DBUILD_YOLO_TENSORRT=ON, the following error message appears: (My tensorrt: 7.2.3.4) #######################################################################################

In file included from /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/logging.h:21:0, from /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/logger.h:20, from /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/common.h:34, from /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/BatchStream.h:20, from /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/YoloONNX.hpp:3, from /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/YoloONNX.cpp:3: /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.h:165:15: error: ‘TacticSources’ in namespace ‘nvinfer1’ does not name a type nvinfer1::TacticSources enabledTactics{0}; ^~~~~ /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.h:165:46: error: extra ‘;’ [-Wpedantic] nvinfer1::TacticSources enabledTactics{0}; ^ /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.h:166:15: error: ‘TacticSources’ in namespace ‘nvinfer1’ does not name a type nvinfer1::TacticSources disabledTactics{0}; ^~~~~ /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.h:166:47: error: extra ‘;’ [-Wpedantic] nvinfer1::TacticSources disabledTactics{0}; ^ /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp: In member function ‘virtual void sample::BuildOptions::parse(sample::Arguments&)’: /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp:851:23: error: ‘TacticSource’ is not a member of ‘nvinfer1’ nvinfer1::TacticSource source{}; ^~~~ /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp:855:17: error: ‘source’ was not declared in this scope source = nvinfer1::TacticSource::kCUBLAS; ^~ /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp:855:17: note: suggested alternative: ‘double’ source = nvinfer1::TacticSource::kCUBLAS; ^~ double /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp:855:36: error: ‘nvinfer1::TacticSource’ has not been declared source = nvinfer1::TacticSource::kCUBLAS; ^~~~ /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp:859:17: error: ‘source’ was not declared in this scope source = nvinfer1::TacticSource::kCUBLAS_LT; ^~ /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp:859:17: note: suggested alternative: ‘double’ source = nvinfer1::TacticSource::kCUBLAS_LT; ^~ double /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp:859:36: error: ‘nvinfer1::TacticSource’ has not been declared source = nvinfer1::TacticSource::kCUBLAS_LT; ^~~~ /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp:872:62: error: ‘source’ was not declared in this scope uint32_t sourceBit = 1U << static_cast(source); ^~ /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp:872:62: note: suggested alternative: ‘sourceBit’ uint32_t sourceBit = 1U << static_cast(source); ^~ sourceBit /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp:876:17: error: ‘enabledTactics’ was not declared in this scope enabledTactics |= sourceBit; ^~~~~~ /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp:880:17: error: ‘disabledTactics’ was not declared in this scope disabledTactics |= sourceBit; ^~~~~~~ /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp:883:17: error: ‘enabledTactics’ was not declared in this scope if (enabledTactics & disabledTactics) ^~~~~~ /home/xuyang/Desktop/Multitarget-tracker/src/Detector/tensorrt_yolo/common/sampleOptions.cpp:883:34: error: ‘disabledTactics’ was not declared in this scope if (enabledTactics & disabledTactics) #######################################################################################

Nuzhny007 commented 1 year ago

Thnx for report, I'll try to build on this version of TensorRT

Mickeyyyang commented 1 year ago

OK. Me: python 3.7 cuda: 11.0 cudnn: 8.1.x

Sergey Nuzhny @.***> 于2022年10月17日周一 16:10写道:

Thnx for report, I'll try to build on this version of TensorRT

— Reply to this email directly, view it on GitHub https://github.com/Smorodov/Multitarget-tracker/issues/397#issuecomment-1280456725, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANV4VKHRLYVWHQHFSX5DMJ3WDUCWPANCNFSM6AAAAAARGIASYM . You are receiving this because you authored the thread.Message ID: @.***>

Nuzhny007 commented 1 year ago

It's really don't work with this version of TensorRT. If you can update libraries to 8.4 version then all will working. Now I'll fix that

Mickeyyyang commented 1 year ago

OK, I will try. Thanks!