vitis::ai::Clocs - 2.5 日本語

Vitis AI ライブラリ ユーザー ガイド (UG1354)

Document ID
UG1354
Release Date
2022-06-15
Version
2.5 日本語
clocs のベース クラス。

入力は、点データおよび関連するパラメーターです。

出力は、ClocsResult という名前の検出結果の構造体です。

サンプル コード:

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

関数クイック リファレンス

次の表に、vitis::ai::Clocs クラスに定義されているすべての関数を示します。

表 1. 関数クイック リファレンス
タイプ メンバー 引数
std::unique_ptr< Clocs > create
  • const std::string & yolo
  • const std::string & pointpillars_0
  • const std::string & pointpillars_1
  • const std::string & fusionnet
  • bool need_preprocess
int getInputWidth
  • void
int getInputHeight
  • void
size_t get_input_batch
  • void
int getPointsDim
  • void
ClocsResult run
ClocsResult run
std::vector< ClocsResult > run
std::vector< ClocsResult > run
  • const std::vector< std::vector< float > > & batch_detect2d_result
  • const std::vector< clocs::ClocsInfo > & batch_inputs