2using System.Collections.Generic;
7using System.Threading.Tasks;
20 [TypeConverter(typeof(ExpandableObjectConverter))]
24 float m_fMaxExpandRatio = 1.0f;
37 [Description(
"Get/set probability of using this expansion policy.")]
40 get {
return m_fProb; }
41 set { m_fProb = value; }
47 [Description(
"Get/set the ratio to expand the image.")]
50 get {
return m_fMaxExpandRatio; }
51 set { m_fMaxExpandRatio = value; }
88 RawProto rpBase = base.ToProto(
"option");
91 rgChildren.
Add(rpBase);
96 return new RawProto(strName,
"", rgChildren);
110 if (rpOption !=
null)
113 if ((strVal = rp.
FindValue(
"prob")) !=
null)
116 if ((strVal = rp.
FindValue(
"max_expand_ratio")) !=
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 ExpansionParameter used with SSD.
float max_expand_ratio
Get/set the ratio to expand the image.
float prob
Get/set probability of using this expansion policy.
static new ExpansionParameter FromProto(RawProto rp)
Parses the parameter from a RawProto.
override RawProto ToProto(string strName)
Convert this object to a raw proto.
ExpansionParameter Clone()
Return a clone of the object.
override void Copy(OptionalParameter src)
Copy the object.
ExpansionParameter(bool bActive)
The constructor.
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-...