FeiYull / TensorRT-Alpha

šŸ”„šŸ”„šŸ”„TensorRT for YOLOv8态YOLOv8-Pose态YOLOv8-Seg态YOLOv8-Cls态YOLOv7态YOLOv6态YOLOv5态YOLONAS......šŸš€šŸš€šŸš€CUDA IS ALL YOU NEED.šŸŽšŸŽšŸŽ
GNU General Public License v2.0
1.31k stars 201 forks source link

compile yolov8 demo error! #1

Closed jcyhcs closed 1 year ago

jcyhcs commented 1 year ago

hi,@ @FeiYull i compile your yolov8 demo, on windows with jetbrains CLion,I got an error: D:\TensorRT-8.2.5.1\samples\common\sampleUtils.h(170): error: more than one operator "<<" matches these operands: function "std::basic_ostream<_Elem, _Traits>::operator<<(__nv_bool) [with _Elem=char, _Traits=std::char_traits]"

        operand types are: std::basic_ostream<char, std::char_traits<char>> << const __half
      detected during instantiation of "void sample::dumpBuffer<T>(const void *, const std::string &, std::ostream &, const nvinfer1::Dims &, const nvinfer1::Dims &, int32_t, int32_t) [with T=__half]" 

(257): here

1 error detected in the compilation of "D:/Object_Detection/tensorrt-alpha/yolov8/decode_yolov8.cu". decode_yolov8.cu

my tensorrt version is 8.2.5.1, how can i resolve it? please help me!

FeiYull commented 1 year ago

@jcyhcs ļ¼ŒHiļ¼Œthank you for pay attention to TensorRT-Alpha, the problem has been fixed. The solution is simple: some header files under TensorRT/samples/common are no longer included, and TensorRT-Alpha/utils/common_include.h only uses logger.cpp under this path. It is recommended to use TensorRT8.4.2.4ļ¼Œbest wishļ¼