ArmNN
 26.01
Loading...
Searching...
No Matches
StringifyLayerParameters< DetectionPostProcessDescriptor > Struct Reference

#include <SerializeLayerParameters.hpp>

Static Public Member Functions

static void Serialize (ParameterStringifyFunction &fn, const DetectionPostProcessDescriptor &desc)
 

Detailed Description

Definition at line 68 of file SerializeLayerParameters.hpp.

Member Function Documentation

◆ Serialize()

void Serialize ( ParameterStringifyFunction & fn,
const DetectionPostProcessDescriptor & desc )
static

Definition at line 140 of file SerializeLayerParameters.cpp.

142{
143 fn("MaxDetections", std::to_string(desc.m_MaxDetections));
144 fn("MaxClassesPerDetection", std::to_string(desc.m_MaxClassesPerDetection));
145 fn("DetectionsPerClass", std::to_string(desc.m_DetectionsPerClass));
146 fn("NmsScoreThreshold", std::to_string(desc.m_NmsScoreThreshold));
147 fn("NmsIouThreshold", std::to_string(desc.m_NmsIouThreshold));
148 fn("NumClasses", std::to_string(desc.m_NumClasses));
149 fn("UseRegularNms", (desc.m_UseRegularNms ? "true" : "false"));
150 {
151 std::stringstream ss;
152 ss << "(" << desc.m_ScaleX << "," << desc.m_ScaleY << ")";
153 fn("Scale(X,Y)", ss.str());
154 }
155
156 {
157 std::stringstream ss;
158 ss << "(" << desc.m_ScaleW << "," << desc.m_ScaleH << ")";
159 fn("Scale(W,H)", ss.str());
160 }
161}

References DetectionPostProcessDescriptor::m_DetectionsPerClass, DetectionPostProcessDescriptor::m_MaxClassesPerDetection, DetectionPostProcessDescriptor::m_MaxDetections, DetectionPostProcessDescriptor::m_NmsIouThreshold, DetectionPostProcessDescriptor::m_NmsScoreThreshold, DetectionPostProcessDescriptor::m_NumClasses, DetectionPostProcessDescriptor::m_ScaleH, DetectionPostProcessDescriptor::m_ScaleW, DetectionPostProcessDescriptor::m_ScaleX, DetectionPostProcessDescriptor::m_ScaleY, and DetectionPostProcessDescriptor::m_UseRegularNms.


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