MyCaffe  1.12.2.41
Deep learning software for Windows C# programmers.
MyCaffe.param.beta.DataSequenceParameter Class Reference

Specifies the parameters for the DataSequenceLayer. More...

Inheritance diagram for MyCaffe.param.beta.DataSequenceParameter:
MyCaffe.param.LayerParameterBase MyCaffe.basecode.BaseParameter MyCaffe.basecode.IBinaryPersist

Public Member Functions

 DataSequenceParameter ()
 Constructor for the parameter. More...
 
override object Load (System.IO.BinaryReader br, bool bNewInstance=true)
 Load the parameter from a binary reader. More...
 
override void Copy (LayerParameterBase src)
 Copy on parameter to another. More...
 
override LayerParameterBase Clone ()
 Creates a new copy of this instance of the parameter. More...
 
override RawProto ToProto (string strName)
 Convert the parameter into a RawProto. More...
 
- Public Member Functions inherited from MyCaffe.param.LayerParameterBase
 LayerParameterBase ()
 Constructor for the parameter. More...
 
virtual string PrepareRunModelInputs ()
 This method gives derivative classes a chance specify model inputs required by the run model. More...
 
virtual void PrepareRunModel (LayerParameter p)
 This method gives derivative classes a chance to prepare the layer for a run-model. More...
 
void Save (BinaryWriter bw)
 Save this parameter to a binary writer. More...
 
abstract object Load (BinaryReader br, bool bNewInstance=true)
 Load the parameter from a binary reader. 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 DataSequenceParameter FromProto (RawProto rp)
 Parses the parameter 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

int cache_size [getset]
 Specifies the cache size used for each labeled image cache, which should be at least 4 x the batch size used (default = 256). More...
 
int k [getset]
 Specifies the 'k' number of negatively matched labled images (default = 0, maximum = 10). When specifying 0, the output is just the anchor and one alternating negatively/positive matched image. More...
 
bool balance_matches [getset]
 Specifies to balance the matching image between negative and positive matches. This setting only applies when k=0 (default = true). More...
 
bool output_labels [getset]
 Specifies whether or not to output the labels in an additional top output. (default = true). More...
 
int label_count [getset]
 Specifies the number of labels in the data set, or 0 to use dynamic label discovery (requires large enough batch sizes to cover all labels within first batch) - (default = 0). More...
 
int label_start [getset]
 Specifies the first label in the label set (default = 0). More...
 

Additional Inherited Members

- Public Types inherited from MyCaffe.param.LayerParameterBase
enum  LABEL_TYPE { NONE , SINGLE , MULTIPLE , ONLY_ONE }
 Defines the label type. More...
 

Detailed Description

Specifies the parameters for the DataSequenceLayer.

Definition at line 21 of file DataSequenceParameter.cs.

Constructor & Destructor Documentation

◆ DataSequenceParameter()

MyCaffe.param.beta.DataSequenceParameter.DataSequenceParameter ( )

Constructor for the parameter.

Definition at line 31 of file DataSequenceParameter.cs.

Member Function Documentation

◆ Clone()

override LayerParameterBase MyCaffe.param.beta.DataSequenceParameter.Clone ( )
virtual

Creates a new copy of this instance of the parameter.

Returns
A new instance of this parameter is returned.

Implements MyCaffe.param.LayerParameterBase.

Definition at line 148 of file DataSequenceParameter.cs.

◆ Copy()

override void MyCaffe.param.beta.DataSequenceParameter.Copy ( LayerParameterBase  src)
virtual

Copy on parameter to another.

Parameters
srcSpecifies the parameter to copy.

Implements MyCaffe.param.LayerParameterBase.

Definition at line 133 of file DataSequenceParameter.cs.

◆ FromProto()

static DataSequenceParameter MyCaffe.param.beta.DataSequenceParameter.FromProto ( RawProto  rp)
static

Parses the parameter from a RawProto.

Parameters
rpSpecifies the RawProto to parse.
Returns
A new instance of the parameter is returned.

Definition at line 179 of file DataSequenceParameter.cs.

◆ Load()

override object MyCaffe.param.beta.DataSequenceParameter.Load ( System.IO.BinaryReader  br,
bool  bNewInstance = true 
)

Load the parameter from a binary reader.

Parameters
brSpecifies the binary reader.
bNewInstanceWhen true a new instance is created (the default), otherwise the existing instance is loaded from the binary reader.
Returns
Returns an instance of the parameter.

Definition at line 118 of file DataSequenceParameter.cs.

◆ ToProto()

override RawProto MyCaffe.param.beta.DataSequenceParameter.ToProto ( string  strName)
virtual

Convert the parameter into a RawProto.

Parameters
strNameSpecifies the name to associate with the RawProto.
Returns
The new RawProto is returned.

Implements MyCaffe.basecode.BaseParameter.

Definition at line 160 of file DataSequenceParameter.cs.

Property Documentation

◆ balance_matches

bool MyCaffe.param.beta.DataSequenceParameter.balance_matches
getset

Specifies to balance the matching image between negative and positive matches. This setting only applies when k=0 (default = true).

Definition at line 68 of file DataSequenceParameter.cs.

◆ cache_size

int MyCaffe.param.beta.DataSequenceParameter.cache_size
getset

Specifies the cache size used for each labeled image cache, which should be at least 4 x the batch size used (default = 256).

The cache size should be higher than the maximum number of items for a given label within a batch, otherwise items within a given batch will overrite other items from the batch for a given label.

NOTE: The batch size must also be large enough to contain at least two items from each label.

Definition at line 45 of file DataSequenceParameter.cs.

◆ k

int MyCaffe.param.beta.DataSequenceParameter.k
getset

Specifies the 'k' number of negatively matched labled images (default = 0, maximum = 10). When specifying 0, the output is just the anchor and one alternating negatively/positive matched image.

When specifying k>0, the anchor is output with a positive match and 'k' number of negative matches.

Definition at line 58 of file DataSequenceParameter.cs.

◆ label_count

int MyCaffe.param.beta.DataSequenceParameter.label_count
getset

Specifies the number of labels in the data set, or 0 to use dynamic label discovery (requires large enough batch sizes to cover all labels within first batch) - (default = 0).

Definition at line 96 of file DataSequenceParameter.cs.

◆ label_start

int MyCaffe.param.beta.DataSequenceParameter.label_start
getset

Specifies the first label in the label set (default = 0).

Definition at line 106 of file DataSequenceParameter.cs.

◆ output_labels

bool MyCaffe.param.beta.DataSequenceParameter.output_labels
getset

Specifies whether or not to output the labels in an additional top output. (default = true).

Labels areoutput in order per tuplet, so if k = 0 (e.g. output anchor and one negative) the output lables are as follows: 0 anchor label 0 negative label 1 anchor label 1 negative label :

Definition at line 86 of file DataSequenceParameter.cs.


The documentation for this class was generated from the following file: