MyCaffe
1.12.2.41
Deep learning software for Windows C# programmers.
|
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< LabelMapItem > | item [get] |
Specifies the list of label items. More... | |
Specifies the LabelMap used with SSD.
Definition at line 21 of file LabelMap.cs.
MyCaffe.param.ssd.LabelMap.LabelMap | ( | ) |
The constructor.
Definition at line 28 of file LabelMap.cs.
LabelMap MyCaffe.param.ssd.LabelMap.Clone | ( | ) |
Return a copy of this object.
Definition at line 159 of file LabelMap.cs.
void MyCaffe.param.ssd.LabelMap.Copy | ( | LabelMap | src | ) |
Copy the source object.
src | Specifies the source data. |
Definition at line 145 of file LabelMap.cs.
LabelMapItem MyCaffe.param.ssd.LabelMap.FindByLabel | ( | int | nLabel | ) |
Find a label with its label id.
nLabel | Specifies the label id. |
Definition at line 37 of file LabelMap.cs.
LabelMapItem MyCaffe.param.ssd.LabelMap.FindByName | ( | string | strName | ) |
Find a label with a given name.
strName | Specifies the label name. |
Definition at line 53 of file LabelMap.cs.
Parses the parameter from a RawProto.
rp | Specifies the RawProto to parse. |
Definition at line 191 of file LabelMap.cs.
Dictionary< string, int > MyCaffe.param.ssd.LabelMap.MapToLabel | ( | Log | log, |
bool | bStrict | ||
) |
Map the names to their labels.
log | Specifies the output log. |
bStrict | Specifies whether or not to allow duplicates, when allowed, the duplicate overwrites previous labels with the same ID. |
Definition at line 105 of file LabelMap.cs.
Dictionary< int, string > MyCaffe.param.ssd.LabelMap.MapToName | ( | Log | log, |
bool | bStrict, | ||
bool | bDisplayName | ||
) |
Map the labels into a dictionary.
log | Specifies the output log. |
bStrict | Specifies whether or not to allow duplicates, when allowed, the duplicate overwrites previous labels with the same ID. |
bDisplayName | Specifies whether or not to use the display name (true) or name (false) |
Definition at line 71 of file LabelMap.cs.
RawProto MyCaffe.param.ssd.LabelMap.ToProto | ( | string | strName | ) |
Convert this object to a raw proto.
strName | Specifies the name of the proto. |
Definition at line 171 of file LabelMap.cs.
|
get |
Specifies the list of label items.
Definition at line 136 of file LabelMap.cs.