クラス
YOLOvX
の派生クラスのインスタンスを取得するファクトリ関数。
プロトタイプ
std::unique_ptr<
YOLOvX
> create(const std::string &model_name, xir::Attrs *attrs, bool need_preprocess=true);
パラメーター
次の表に、create 関数の引数を示します。
| タイプ | メンバー | 説明 |
|---|---|---|
| const std::string & | model_name | モデル名 |
| xir::Attrs * | attrs | XIR 属性。複数の異なるモデルを同じ DPU コアにバインドするのに使用されます。 |
| bool | need_preprocess | 平均値/スケール値で正規化するかどうか。デフォルト値は true。 |
戻り値
クラスYOLOvX
のインスタンス。