Base class for clocs.
Input is points data and related params.
Output is a struct of detection results, named ClocsResult.
Sample code :
...
std::string yolo_model_name = "clocs_yolox_pt";
std::string pp_model_0 = "clocs_pointpillars_kitti_0_pt";
std::string pp_model_1 = "clocs_pointpillars_kitti_1_pt";
std::string fusion_model_name = "clocs_fusion_cnn_pt";
auto clocs = vitis::ai::Clocs::create
(yolo_model_name, pp_model_0,
pp_model_1, fusion_model_name, true);
vector<ClocsInfo> batch_clocs_info(input_num);
// see the test sample to read ClocsInfo
//
auto batch_ret = clocs->run(batch_clocs_info);
...
please see the test sample for detail.
Quick Function Reference
The following table lists all the functions defined in the vitis::ai::Clocs
class:
Type | Name | Arguments |
---|---|---|
std::unique_ptr< Clocs > |
create |
|
int | getInputWidth |
|
int | getInputHeight |
|
size_t | get_input_batch |
|
int | getPointsDim |
|
ClocsResult | run |
|
ClocsResult | run |
|
std::vector< ClocsResult > | run |
|
std::vector< ClocsResult > | run |
|