2using System.Collections.Generic;
7using System.Threading.Tasks;
20 [TypeConverter(typeof(ExpandableObjectConverter))]
23 float m_fNmsThreshold = 0.3f;
38 [Description(
"Get/set the threshold to be used in nms.")]
41 get {
return m_fNmsThreshold; }
42 set { m_fNmsThreshold = value; }
48 [Description(
"Get/set the maximum number of results kept.")]
51 get {
return m_nTopK; }
52 set { m_nTopK = value; }
58 [Description(
"Get/set the parameter for adaptive nms.")]
61 get {
return m_fEta; }
62 set { m_fEta = value; }
100 RawProto rpBase = base.ToProto(
"option");
103 rgChildren.
Add(rpBase);
111 return new RawProto(strName,
"", rgChildren);
125 if (rpOption !=
null)
128 if ((strVal = rp.
FindValue(
"nms_threshold")) !=
null)
131 if ((strVal = rp.
FindValue(
"top_k")) !=
null)
132 p.
top_k =
int.Parse(strVal);
134 if ((strVal = rp.
FindValue(
"eta")) !=
null)
The BaseParameter class is the base class for all other parameter classes.
static float ParseFloat(string strVal)
Parse float values using the US culture if the decimal separator = '.', then using the native culture...
The RawProtoCollection class is a list of RawProto objects.
void Add(RawProto p)
Adds a RawProto to the collection.
The RawProto class is used to parse and output Google prototxt file data.
RawProto FindChild(string strName)
Searches for a given node.
string FindValue(string strName)
Searches for a falue of a node within this nodes children.
The OptionalParameter is the base class for parameters that are optional such as the MaskParameter,...
static OptionalParameter FromProto(RawProto rp)
Parses the parameter from a RawProto.
OptionalParameter(bool bActive=false)
The constructor.
bool Active
When active, the parameter is used, otherwise it is ignored.
Specifies the parameters for the NonMaximumSuppressionParameter used with SSD.
float eta
Get/set the parameter for adaptive nms.
int? top_k
Get/set the maximum number of results kept.
float nms_threshold
Get/set the threshold to be used in nms.
override void Copy(OptionalParameter src)
Copy the object.
override RawProto ToProto(string strName)
Convert this object to a raw proto.
NonMaximumSuppressionParameter(bool bActive)
The constructor.
NonMaximumSuppressionParameter Clone()
Return a clone of the object.
static new NonMaximumSuppressionParameter FromProto(RawProto rp)
Parses the parameter from a RawProto.
The MyCaffe.basecode contains all generic types used throughout MyCaffe.
The MyCaffe.param.ssd namespace contains all SSD related parameter objects that correspond to the nat...
The MyCaffe namespace contains the main body of MyCaffe code that closesly tracks the C++ Caffe open-...