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));  接口不支持,版本问题

  • 2
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值