MyCaffe  1.12.2.41
Deep learning software for Windows C# programmers.
MyCaffe.param.ssd.LabelMap Class Reference

Specifies the LabelMap used with SSD. More...

Public Member Functions

 LabelMap ()
 The constructor. More...
 
LabelMapItem FindByLabel (int nLabel)
 Find a label with its label id. More...
 
LabelMapItem FindByName (string strName)
 Find a label with a given name. More...
 
Dictionary< int, string > MapToName (Log log, bool bStrict, bool bDisplayName)
 Map the labels into a dictionary. More...
 
Dictionary< string, int > MapToLabel (Log log, bool bStrict)
 Map the names to their labels. More...
 
void Copy (LabelMap src)
 Copy the source object. More...
 
LabelMap Clone ()
 Return a copy of this object. More...
 
RawProto ToProto (string strName)
 Convert this object to a raw proto. More...
 

Static Public Member Functions

static LabelMap FromProto (RawProto rp)
 Parses the parameter from a RawProto. More...
 

Properties

List< LabelMapItemitem [get]
 Specifies the list of label items. More...
 

Detailed Description

Specifies the LabelMap used with SSD.

See also
SSD: Single Shot MultiBox Detector by Wei Liu, Dragomir Anguelov, Dumitru Erhan, Christian Szegedy, Scott Reed, Cheng-Yang Fu, Alexander C. Berg, 2016.
GitHub: SSD: Single Shot MultiBox Detector, by weiliu89/caffe, 2016

Definition at line 21 of file LabelMap.cs.

Constructor & Destructor Documentation

◆ LabelMap()

MyCaffe.param.ssd.LabelMap.LabelMap ( )

The constructor.

Definition at line 28 of file LabelMap.cs.

Member Function Documentation

◆ Clone()

LabelMap MyCaffe.param.ssd.LabelMap.Clone ( )

Return a copy of this object.

Returns
A new copy of the object is returned.

Definition at line 159 of file LabelMap.cs.

◆ Copy()

void MyCaffe.param.ssd.LabelMap.Copy ( LabelMap  src)

Copy the source object.

Parameters
srcSpecifies the source data.

Definition at line 145 of file LabelMap.cs.

◆ FindByLabel()

LabelMapItem MyCaffe.param.ssd.LabelMap.FindByLabel ( int  nLabel)

Find a label with its label id.

Parameters
nLabelSpecifies the label id.
Returns
If a label item with a matching id is found, it is returned, otherwise null is returned.

Definition at line 37 of file LabelMap.cs.

◆ FindByName()

LabelMapItem MyCaffe.param.ssd.LabelMap.FindByName ( string  strName)

Find a label with a given name.

Parameters
strNameSpecifies the label name.
Returns
If a label item with a matching name is found, it is returned, otherwise null is returned.

Definition at line 53 of file LabelMap.cs.

◆ FromProto()

static LabelMap MyCaffe.param.ssd.LabelMap.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 191 of file LabelMap.cs.

◆ MapToLabel()

Dictionary< string, int > MyCaffe.param.ssd.LabelMap.MapToLabel ( Log  log,
bool  bStrict 
)

Map the names to their labels.

Parameters
logSpecifies the output log.
bStrictSpecifies whether or not to allow duplicates, when allowed, the duplicate overwrites previous labels with the same ID.
Returns
The name to label mapping is returned.

Definition at line 105 of file LabelMap.cs.

◆ MapToName()

Dictionary< int, string > MyCaffe.param.ssd.LabelMap.MapToName ( Log  log,
bool  bStrict,
bool  bDisplayName 
)

Map the labels into a dictionary.

Parameters
logSpecifies the output log.
bStrictSpecifies whether or not to allow duplicates, when allowed, the duplicate overwrites previous labels with the same ID.
bDisplayNameSpecifies whether or not to use the display name (true) or name (false)
Returns
The label to name dictionary is returned.

Definition at line 71 of file LabelMap.cs.

◆ ToProto()

RawProto MyCaffe.param.ssd.LabelMap.ToProto ( string  strName)

Convert this object to a raw proto.

Parameters
strNameSpecifies the name of the proto.
Returns
The new proto is returned.

Definition at line 171 of file LabelMap.cs.

Property Documentation

◆ item

List<LabelMapItem> MyCaffe.param.ssd.LabelMap.item
get

Specifies the list of label items.

Definition at line 136 of file LabelMap.cs.


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