vitis::ai::PointPillarsNuscenes - 3.5 简体中文

Vitis AI Library 用户指南 (UG1354)

Document ID
UG1354
Release Date
2023-06-29
Version
3.5 简体中文
此基本类对应 pointpillars_nuscenes。

输入是点数据和相关参数。

输出是检测结果的结构体,名为 PointPillarsNuscenesResult

代码样本:

    ...
    std::string anno_file_name = "./sample_pointpillars_nus.info";
    PointsInfo points_info;
    std::string model_0 = "pointpillars_nuscenes_40000_64_0_pt";
    std::string model_1 = "pointpillars_nuscenes_40000_64_1_pt";
    auto pointpillars = vitis::ai::PointPillarsNuscenes::create(
         model_0, model_1);
    auto points_dim = pointpillars->getPointsDim();
    read_inno_file_pp_nus(anno_file_name, points_info, points_dim,
points_info.sweep_infos);

    auto ret = pointpillars->run(points_info);

    ...
  please see the test sample for detail.

函数快速参考

下表列出了 vitis::ai::PointPillarsNuscenes 类中定义的所有函数:

表 1. 函数快速参考
类型 成员 实参
std::unique_ptr< PointPillarsNuscenes > create
  • const std::string & model_name_0
  • const std::string & model_name_1
  • bool need_preprocess
std::unique_ptr< PointPillarsNuscenes > create
  • const std::string & model_name_0
  • const std::string & model_name_1
  • xir::Attrs * attrs
  • bool need_preprocess
int getInputWidth
  • void
int getInputHeight
  • void
size_t get_input_batch
  • void
int getPointsDim
  • void
std::vector< float > sweepsFusionFilter
std::vector< std::vector< float > > sweepsFusionFilter
PointPillarsNuscenesResult run
  • const std::vector< float > & input_points
std::vector< PointPillarsNuscenesResult > run
  • const std::vector< std::vector< float > > & batch_points
PointPillarsNuscenesResult run
std::vector< PointPillarsNuscenesResult > run