ACMX 2.139.0
Dual-Backend Real-Time GPU Video Synthesis
Loading...
Searching...
No Matches
ac_dnn::PPHS::Impl Struct Reference

Public Member Functions

 Impl (const std::string &modelPath, int backendId, int targetId)
cv::Mat postprocessOutput (const cv::Mat &output)
cv::Mat preprocessImage (const cv::Mat &image)

Public Attributes

BackendState backend
cv::Mat blob
cv::Size currentSize
const cv::String inputName {"x"}
cv::Mat logit
cv::dnn::Net model
cv::Size modelInputSize {192, 192}
const cv::String outputName {"save_infer_model/scale_0.tmp_1"}
cv::Mat previousMask
cv::Mat probability
cv::Mat resizedMask

Detailed Description

Definition at line 530 of file dnn.cpp.

Constructor & Destructor Documentation

◆ Impl()

ac_dnn::PPHS::Impl::Impl ( const std::string & modelPath,
int backendId,
int targetId )
inline

Definition at line 543 of file dnn.cpp.

References backend, and model.

Member Function Documentation

◆ postprocessOutput()

cv::Mat ac_dnn::PPHS::Impl::postprocessOutput ( const cv::Mat & output)
inline

Definition at line 567 of file dnn.cpp.

References currentSize, logit, previousMask, probability, and resizedMask.

◆ preprocessImage()

cv::Mat ac_dnn::PPHS::Impl::preprocessImage ( const cv::Mat & image)
inline

Definition at line 558 of file dnn.cpp.

References blob, currentSize, and modelInputSize.

Member Data Documentation

◆ backend

BackendState ac_dnn::PPHS::Impl::backend

Definition at line 532 of file dnn.cpp.

Referenced by Impl().

◆ blob

cv::Mat ac_dnn::PPHS::Impl::blob

Definition at line 537 of file dnn.cpp.

Referenced by preprocessImage().

◆ currentSize

cv::Size ac_dnn::PPHS::Impl::currentSize

Definition at line 534 of file dnn.cpp.

Referenced by postprocessOutput(), and preprocessImage().

◆ inputName

const cv::String ac_dnn::PPHS::Impl::inputName {"x"}

Definition at line 535 of file dnn.cpp.

◆ logit

cv::Mat ac_dnn::PPHS::Impl::logit

Definition at line 538 of file dnn.cpp.

Referenced by postprocessOutput().

◆ model

cv::dnn::Net ac_dnn::PPHS::Impl::model

Definition at line 531 of file dnn.cpp.

Referenced by Impl().

◆ modelInputSize

cv::Size ac_dnn::PPHS::Impl::modelInputSize {192, 192}

Definition at line 533 of file dnn.cpp.

Referenced by preprocessImage().

◆ outputName

const cv::String ac_dnn::PPHS::Impl::outputName {"save_infer_model/scale_0.tmp_1"}

Definition at line 536 of file dnn.cpp.

◆ previousMask

cv::Mat ac_dnn::PPHS::Impl::previousMask

Definition at line 541 of file dnn.cpp.

Referenced by postprocessOutput().

◆ probability

cv::Mat ac_dnn::PPHS::Impl::probability

Definition at line 539 of file dnn.cpp.

Referenced by postprocessOutput().

◆ resizedMask

cv::Mat ac_dnn::PPHS::Impl::resizedMask

Definition at line 540 of file dnn.cpp.

Referenced by postprocessOutput().


The documentation for this struct was generated from the following file: