vitis::ai::PointPillarsNuscenes - 2.0 English

Vitis AI Library User Guide (UG1354)

Document ID
UG1354
Release Date
2022-01-20
Version
2.0 English
Base class for pointpillars_nuscenes .

Input is points data and related params.

Output is a struct of detection results, named PointPillarsNuscenesResult.

Sample code :

    ...
    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.

Quick Function Reference

The following table lists all the functions defined in the vitis::ai::PointPillarsNuscenes class:

Table 1. Quick Function Reference
Type Name Arguments
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
  • const vitis::ai::pointpillars_nus::PointsInfo & input
std::vector< std::vector< float > > sweepsFusionFilter
  • const std::vector< vitis::ai::pointpillars_nus::PointsInfo > & batch_input
PointPillarsNuscenesResult run
  • const std::vector< float > & input_points
std::vector< PointPillarsNuscenesResult > run
  • const std::vector< std::vector< float > > & batch_points
PointPillarsNuscenesResult run
  • const vitis::ai::pointpillars_nus::PointsInfo & input
std::vector< PointPillarsNuscenesResult > run
  • const std::vector< vitis::ai::pointpillars_nus::PointsInfo > & batch_input