MyCaffe
1.12.2.41
Deep learning software for Windows C# programmers.
|
Specifies a sample of batch of bboxes with provided constraints in SSD. More...
Public Member Functions | |
BatchSampler () | |
The BatchSampler constructor. More... | |
void | Save (BinaryWriter bw) |
Save the BatchSampler to a binary writer. More... | |
object | Load (BinaryReader br, bool bNewInstance) |
Load the BatchSampler from a binary reader. More... | |
BatchSampler | Clone () |
Creates a copy of the BatchSampler. More... | |
bool | Compare (BatchSampler bs) |
Compares this BatchSampler to another. More... | |
int | CompareTo (object obj) |
Compares this BatchSampler to another. More... | |
override RawProto | ToProto (string strName) |
Converts the BatchSampler to a RawProto. More... | |
override string | ToString () |
Return the string representation of the shape. More... | |
Public Member Functions inherited from MyCaffe.basecode.BaseParameter | |
BaseParameter () | |
Constructor for the parameter. More... | |
virtual bool | Compare (BaseParameter p) |
Compare this parameter to another parameter. More... | |
Static Public Member Functions | |
static BatchSampler | Load (BinaryReader br) |
Load the BatchSampler from a binary reader. More... | |
static BatchSampler | FromProto (RawProto rp) |
Parse a new BatchSampler from a RawProto. More... | |
Static Public Member Functions inherited from MyCaffe.basecode.BaseParameter | |
static double | ParseDouble (string strVal) |
Parse double values using the US culture if the decimal separator = '.', then using the native culture, and if then lastly trying the US culture to handle prototypes containing '.' as the separator, yet parsed in a culture that does not use '.' as a decimal. More... | |
static bool | TryParse (string strVal, out double df) |
Parse double values using the US culture if the decimal separator = '.', then using the native culture, and if then lastly trying the US culture to handle prototypes containing '.' as the separator, yet parsed in a culture that does not use '.' as a decimal. More... | |
static float | ParseFloat (string strVal) |
Parse float values using the US culture if the decimal separator = '.', then using the native culture, and if then lastly trying the US culture to handle prototypes containing '.' as the separator, yet parsed in a culture that does not use '.' as a decimal. More... | |
static bool | TryParse (string strVal, out float f) |
Parse doufloatble values using the US culture if the decimal separator = '.', then using the native culture, and if then lastly trying the US culture to handle prototypes containing '.' as the separator, yet parsed in a culture that does not use '.' as a decimal. More... | |
Properties | |
bool | use_original_image [getset] |
Use the original image as the source for sampling. More... | |
uint | max_sample [getset] |
If provided (greater than zero), break when found certain number of samples satisfying the sample constraint. More... | |
uint | max_trials [getset] |
Maximum number of trials for sampling to avoid an infinite loop. More... | |
Sampler | sampler [getset] |
Specifies the constraints for sampling the bbox More... | |
SamplerConstraint | sample_constraint [getset] |
Get/set the sample constraint. More... | |
Specifies a sample of batch of bboxes with provided constraints in SSD.
Definition at line 21 of file BatchSampler.cs.
MyCaffe.param.ssd.BatchSampler.BatchSampler | ( | ) |
The BatchSampler constructor.
Definition at line 32 of file BatchSampler.cs.
BatchSampler MyCaffe.param.ssd.BatchSampler.Clone | ( | ) |
Creates a copy of the BatchSampler.
Definition at line 131 of file BatchSampler.cs.
bool MyCaffe.param.ssd.BatchSampler.Compare | ( | BatchSampler | bs | ) |
Compares this BatchSampler to another.
bs | Specifies the other BatchSampler to compare this one to. |
Definition at line 158 of file BatchSampler.cs.
int MyCaffe.param.ssd.BatchSampler.CompareTo | ( | object | obj | ) |
Compares this BatchSampler to another.
obj | Specifies the other BatchSampler to compare this one to. |
Definition at line 183 of file BatchSampler.cs.
|
static |
Parse a new BatchSampler from a RawProto.
rp | Specifies the RawProto containing a representation of the BatchSampler. |
Definition at line 220 of file BatchSampler.cs.
|
static |
Load the BatchSampler from a binary reader.
br | The binary reader to use. |
Definition at line 76 of file BatchSampler.cs.
object MyCaffe.param.ssd.BatchSampler.Load | ( | BinaryReader | br, |
bool | bNewInstance | ||
) |
Load the BatchSampler from a binary reader.
br | The binary reader to use. |
bNewInstance | When true, a the BatchSampler is read into a new instance, otherwise it is read into the current instance. |
Implements MyCaffe.basecode.IBinaryPersist.
Definition at line 55 of file BatchSampler.cs.
void MyCaffe.param.ssd.BatchSampler.Save | ( | BinaryWriter | bw | ) |
Save the BatchSampler to a binary writer.
bw | The binary writer to use. |
Implements MyCaffe.basecode.IBinaryPersist.
Definition at line 40 of file BatchSampler.cs.
|
virtual |
Converts the BatchSampler to a RawProto.
strName | Specifies a name for the RawProto. |
Implements MyCaffe.basecode.BaseParameter.
Definition at line 201 of file BatchSampler.cs.
override string MyCaffe.param.ssd.BatchSampler.ToString | ( | ) |
Return the string representation of the shape.
Definition at line 249 of file BatchSampler.cs.
|
getset |
If provided (greater than zero), break when found certain number of samples satisfying the sample constraint.
Definition at line 94 of file BatchSampler.cs.
|
getset |
Maximum number of trials for sampling to avoid an infinite loop.
Definition at line 103 of file BatchSampler.cs.
|
getset |
Get/set the sample constraint.
Definition at line 121 of file BatchSampler.cs.
|
getset |
Specifies the constraints for sampling the bbox
Definition at line 112 of file BatchSampler.cs.
|
getset |
Use the original image as the source for sampling.
Definition at line 85 of file BatchSampler.cs.