ACMX 2.136.0
Dual-Backend Real-Time GPU Video Synthesis
Loading...
Searching...
No Matches
acmxvk::dnn::anonymous_namespace{edge_dnn.cpp} Namespace Reference

Classes

struct  BackendState
struct  TimedOutput

Functions

bool backendAvailable (cv::dnn::Backend backend, cv::dnn::Target target)
TimedOutput benchmarkBackend (cv::dnn::Net &net, const cv::Mat &blob, const cv::String &input_name, const cv::String &output_name)
cv::Mat buildHardenedFloatAlpha (const cv::Mat &image, const cv::Mat &mask, float black_point, float white_point)
cv::String lastOutputName (const cv::dnn::Net &net)
bool readBoolean (const cv::FileNode &node, bool default_value, std::string_view context)
int readInteger (const cv::FileNode &node, int default_value, std::string_view context)
double readNumber (const cv::FileNode &node, double default_value, std::string_view context)
std::string readString (const cv::FileNode &node, std::string_view context, bool allow_empty=false)
std::string readYamlText (const std::filesystem::path &path)
cv::Mat runForward (cv::dnn::Net &net, const cv::Mat &blob, const cv::String &input_name, const cv::String &output_name)
cv::Mat selectBackendAndForward (cv::dnn::Net &net, BackendState &state, const cv::Mat &blob, const cv::String &input_name, const cv::String &output_name)
void setCpuBackend (cv::dnn::Net &net)
void setCudaBackend (cv::dnn::Net &net, bool fp16)
cv::Mat spatialPlane (const cv::Mat &output)
void validateMapKeys (const cv::FileNode &node, const std::set< std::string > &allowed, std::string_view context)
void validateTensorName (std::string_view name)

Function Documentation

◆ backendAvailable()

bool acmxvk::dnn::anonymous_namespace{edge_dnn.cpp}::backendAvailable ( cv::dnn::Backend backend,
cv::dnn::Target target )
nodiscard

Definition at line 37 of file edge_dnn.cpp.

References backendAvailable().

Referenced by backendAvailable(), and selectBackendAndForward().

◆ benchmarkBackend()

TimedOutput acmxvk::dnn::anonymous_namespace{edge_dnn.cpp}::benchmarkBackend ( cv::dnn::Net & net,
const cv::Mat & blob,
const cv::String & input_name,
const cv::String & output_name )
nodiscard

◆ buildHardenedFloatAlpha()

cv::Mat acmxvk::dnn::anonymous_namespace{edge_dnn.cpp}::buildHardenedFloatAlpha ( const cv::Mat & image,
const cv::Mat & mask,
float black_point,
float white_point )
nodiscard

Definition at line 295 of file edge_dnn.cpp.

References buildHardenedFloatAlpha().

Referenced by buildHardenedFloatAlpha().

◆ lastOutputName()

cv::String acmxvk::dnn::anonymous_namespace{edge_dnn.cpp}::lastOutputName ( const cv::dnn::Net & net)
nodiscard

Definition at line 141 of file edge_dnn.cpp.

References lastOutputName().

Referenced by lastOutputName().

◆ readBoolean()

bool acmxvk::dnn::anonymous_namespace{edge_dnn.cpp}::readBoolean ( const cv::FileNode & node,
bool default_value,
std::string_view context )
nodiscard

Definition at line 222 of file edge_dnn.cpp.

References readBoolean().

Referenced by readBoolean().

◆ readInteger()

int acmxvk::dnn::anonymous_namespace{edge_dnn.cpp}::readInteger ( const cv::FileNode & node,
int default_value,
std::string_view context )
nodiscard

Definition at line 209 of file edge_dnn.cpp.

References readInteger(), and readNumber().

Referenced by readInteger().

◆ readNumber()

double acmxvk::dnn::anonymous_namespace{edge_dnn.cpp}::readNumber ( const cv::FileNode & node,
double default_value,
std::string_view context )
nodiscard

Definition at line 191 of file edge_dnn.cpp.

References readNumber().

Referenced by readInteger(), and readNumber().

◆ readString()

std::string acmxvk::dnn::anonymous_namespace{edge_dnn.cpp}::readString ( const cv::FileNode & node,
std::string_view context,
bool allow_empty = false )
nodiscard

Definition at line 177 of file edge_dnn.cpp.

References acmxvk::input::Path, readString(), and acmxvk::input::validate_string().

Referenced by readString().

◆ readYamlText()

std::string acmxvk::dnn::anonymous_namespace{edge_dnn.cpp}::readYamlText ( const std::filesystem::path & path)
nodiscard

Definition at line 255 of file edge_dnn.cpp.

References readYamlText(), and acmxvk::input::validate_text_file().

Referenced by readYamlText().

◆ runForward()

cv::Mat acmxvk::dnn::anonymous_namespace{edge_dnn.cpp}::runForward ( cv::dnn::Net & net,
const cv::Mat & blob,
const cv::String & input_name,
const cv::String & output_name )
nodiscard

Definition at line 60 of file edge_dnn.cpp.

References runForward().

Referenced by benchmarkBackend(), runForward(), and selectBackendAndForward().

◆ selectBackendAndForward()

cv::Mat acmxvk::dnn::anonymous_namespace{edge_dnn.cpp}::selectBackendAndForward ( cv::dnn::Net & net,
BackendState & state,
const cv::Mat & blob,
const cv::String & input_name,
const cv::String & output_name )
nodiscard

◆ setCpuBackend()

void acmxvk::dnn::anonymous_namespace{edge_dnn.cpp}::setCpuBackend ( cv::dnn::Net & net)

Definition at line 49 of file edge_dnn.cpp.

References setCpuBackend().

Referenced by selectBackendAndForward(), and setCpuBackend().

◆ setCudaBackend()

void acmxvk::dnn::anonymous_namespace{edge_dnn.cpp}::setCudaBackend ( cv::dnn::Net & net,
bool fp16 )

Definition at line 54 of file edge_dnn.cpp.

References setCudaBackend().

Referenced by selectBackendAndForward(), and setCudaBackend().

◆ spatialPlane()

cv::Mat acmxvk::dnn::anonymous_namespace{edge_dnn.cpp}::spatialPlane ( const cv::Mat & output)
nodiscard

Definition at line 147 of file edge_dnn.cpp.

References spatialPlane().

Referenced by spatialPlane().

◆ validateMapKeys()

void acmxvk::dnn::anonymous_namespace{edge_dnn.cpp}::validateMapKeys ( const cv::FileNode & node,
const std::set< std::string > & allowed,
std::string_view context )

Definition at line 159 of file edge_dnn.cpp.

References validateMapKeys().

Referenced by validateMapKeys().

◆ validateTensorName()

void acmxvk::dnn::anonymous_namespace{edge_dnn.cpp}::validateTensorName ( std::string_view name)

Definition at line 278 of file edge_dnn.cpp.

References validateTensorName().

Referenced by validateTensorName().