OpenCV 4.12.0
開源計算機視覺
載入中...
搜尋中...
無匹配項
cv::gapi::onnx::detail::ParamDesc 結構體參考

該結構體包含特定於 ONNX 模型的推理引數的描述。 更多...

#include <opencv2/gapi/infer/onnx.hpp>

cv::gapi::onnx::detail::ParamDesc 的協作圖

公共型別

using ConstInput = std::pair<cv::Mat, TraitAs>
 

公共屬性

std::unordered_map< std::string, ConstInputconst_inputs
 包含網路層名稱和 ConstInput 對的對映,ConstInput 將與該層關聯。
 
PostProc custom_post_proc
 後處理函式。
 
bool disable_mem_pattern
 
std::vector< cv::gapi::onnx::ep::EPexecution_providers
 
std::unordered_map< std::string, std::pair< cv::Scalar, cv::Scalar > > generic_mstd
 
std::unordered_map< std::string, bool > generic_norm
 
std::vector< std::string > input_names
 輸入網路層的名稱。
 
bool is_generic
 
std::vector< cv::Scalarmean
 用於預處理的平均值。
 
std::string model_path
 模型路徑。
 
std::vector< std::string > names_to_remap
 將在 PostProc 函式中處理的輸出層的名稱。
 
std::vector< bool > normalize
 布林值向量,用於啟用或停用輸入資料的歸一化。
 
std::size_t num_in
 操作中定義的輸入數量。
 
std::size_t num_out
 操作中定義的輸出數量。
 
cv::util::optional< int > opt_level
 
std::vector< cv::GMatDescout_metas
 有關輸出的元資訊(型別、維度)。
 
std::vector< std::string > output_names
 輸出網路層的名稱。
 
std::map< std::string, std::string > session_options
 
std::vector< cv::Scalarstdev
 用於預處理的標準差值。
 

詳細描述

該結構體包含特定於 ONNX 模型的推理引數的描述。

成員 Typedef 文件

◆ ConstInput

成員資料文件

◆ const_inputs

std::unordered_map<std::string, ConstInput> cv::gapi::onnx::detail::ParamDesc::const_inputs

包含網路層名稱和 ConstInput 對的對映,ConstInput 將與該層關聯。

◆ custom_post_proc

PostProc cv::gapi::onnx::detail::ParamDesc::custom_post_proc

後處理函式。

◆ disable_mem_pattern

bool cv::gapi::onnx::detail::ParamDesc::disable_mem_pattern

◆ execution_providers

std::vector<cv::gapi::onnx::ep::EP> cv::gapi::onnx::detail::ParamDesc::execution_providers

◆ generic_mstd

std::unordered_map<std::string, std::pair<cv::Scalar, cv::Scalar> > cv::gapi::onnx::detail::ParamDesc::generic_mstd

◆ generic_norm

std::unordered_map<std::string, bool> cv::gapi::onnx::detail::ParamDesc::generic_norm

◆ input_names

std::vector<std::string> cv::gapi::onnx::detail::ParamDesc::input_names

輸入網路層的名稱。

◆ is_generic

bool cv::gapi::onnx::detail::ParamDesc::is_generic

◆ mean

std::vector<cv::Scalar> cv::gapi::onnx::detail::ParamDesc::mean

用於預處理的平均值。

◆ model_path

std::string cv::gapi::onnx::detail::ParamDesc::model_path

模型路徑。

◆ names_to_remap

std::vector<std::string> cv::gapi::onnx::detail::ParamDesc::names_to_remap

將在 PostProc 函式中處理的輸出層的名稱。

◆ normalize

std::vector<bool> cv::gapi::onnx::detail::ParamDesc::normalize

布林值向量,用於啟用或停用輸入資料的歸一化。

◆ num_in

std::size_t cv::gapi::onnx::detail::ParamDesc::num_in

操作中定義的輸入數量。

◆ num_out

std::size_t cv::gapi::onnx::detail::ParamDesc::num_out

操作中定義的輸出數量。

◆ opt_level

cv::util::optional<int> cv::gapi::onnx::detail::ParamDesc::opt_level

◆ out_metas

std::vector<cv::GMatDesc> cv::gapi::onnx::detail::ParamDesc::out_metas

有關輸出的元資訊(型別、維度)。

◆ output_names

std::vector<std::string> cv::gapi::onnx::detail::ParamDesc::output_names

輸出網路層的名稱。

◆ session_options

std::map<std::string, std::string> cv::gapi::onnx::detail::ParamDesc::session_options

◆ stdev

std::vector<cv::Scalar> cv::gapi::onnx::detail::ParamDesc::stdev

用於預處理的標準差值。


此結構體的文件由以下檔案生成