TensorRT-Yolov3 C++版本的代碼參看

TensorRT-Yolov3

 

https://github.com/talebolano/TensorRT-Yolov3

 

Ubuntu  16.04  or Jetson Nano
TensorRT 5.1/5.0.2.6/4.0.1.6
CUDA 9.2 or CUDA 9.0 or CUDA 10.0

 我使用的是 trt 515  cuda 只能用9

編譯 要指定路徑

cmake .. -DTENSORRT_ROOT=/home/amax/Downloads/TensorRT-5.1.5.0

 

我的g++是 4.9

修改了dataReader.h  添加#include <tuple>

不然會報

TensorRT-Yolov3/dataReader.cpp:79:116: error: return type ‘class std::tuple<std::list<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, std::list<std::vector<Tn::Bbox, std::allocator<Tn::Bbox> >, std::allocator<std::vector<Tn::Bbox, std::allocator<Tn::Bbox> > > > >’ is incomplete
     std::tuple<std::list<std::string>, std::list<std::vector<Bbox>>> readObjectLabelFileList(const string& fileName)
                                                                                                                    ^
compilation terminated due to -Wfatal-errors.

分析是  return std::make_tuple(move(fileList),move(bBoxes));  接口不支持,版本問題

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章