MyCaffe  1.12.2.41
Deep learning software for Windows C# programmers.
MyCaffe.basecode.MyCaffeModelData Class Reference

The MyCaffeModelData object contains the model descriptor, model weights and optionally the image mean. More...

Public Member Functions

 MyCaffeModelData (string strModelDesc, byte[] rgWeights, byte[] rgImageMean=null, string strSolverDescription=null, List< int > rgInputShape=null)
 The constructor. More...
 
void Save (string strFolder, string strName)
 Save the model data to the specified folder under the specified name. More...
 

Properties

List< int > InputShape [getset]
 Get/set the data input shape. More...
 
string ModelDescription [getset]
 Get/set the model descriptor. More...
 
string SolverDescription [getset]
 Get/set the solver description. More...
 
byte[] Weights [get]
 Returns the model weights. More...
 
byte[] ImageMean [get]
 Returns the image mean if one was specified, or null. More...
 
string OriginalDownloadFile [getset]
 Specifies the original download file, if any. More...
 
string LastSavedModeDescriptionFileName [get]
 Returns the file name of the last saved model description file. More...
 
string LastSaveSolverDescriptionFileName [get]
 Returns the file name of the last saved solver description file. More...
 
string LastSavedWeightsFileName [get]
 Returns the file name of the last saved weights file. More...
 
string LastSavedImageMeanFileName [get]
 Returns the file name of the last saved image mean file. More...
 

Detailed Description

The MyCaffeModelData object contains the model descriptor, model weights and optionally the image mean.

Definition at line 13 of file MyCaffeModelData.cs.

Constructor & Destructor Documentation

◆ MyCaffeModelData()

MyCaffe.basecode.MyCaffeModelData.MyCaffeModelData ( string  strModelDesc,
byte[]  rgWeights,
byte[]  rgImageMean = null,
string  strSolverDescription = null,
List< int >  rgInputShape = null 
)

The constructor.

Parameters
strModelDescSpecifies the model descriptor.
rgWeightsSpecifies the model weights.
rgImageMeanOptionally, specifies the image mean (default = null).
strSolverDescriptionOptionally, specifies the solver description.
rgInputShapeSpecifies the input data shape.

Definition at line 34 of file MyCaffeModelData.cs.

Member Function Documentation

◆ Save()

void MyCaffe.basecode.MyCaffeModelData.Save ( string  strFolder,
string  strName 
)

Save the model data to the specified folder under the specified name.

Parameters
strFolderSpecifies the folder where the data is to be saved.
strNameSpecifies the base name of the files.

Definition at line 102 of file MyCaffeModelData.cs.

Property Documentation

◆ ImageMean

byte [] MyCaffe.basecode.MyCaffeModelData.ImageMean
get

Returns the image mean if one was specified, or null.

Definition at line 83 of file MyCaffeModelData.cs.

◆ InputShape

List<int> MyCaffe.basecode.MyCaffeModelData.InputShape
getset

Get/set the data input shape.

Definition at line 48 of file MyCaffeModelData.cs.

◆ LastSavedImageMeanFileName

string MyCaffe.basecode.MyCaffeModelData.LastSavedImageMeanFileName
get

Returns the file name of the last saved image mean file.

Definition at line 195 of file MyCaffeModelData.cs.

◆ LastSavedModeDescriptionFileName

string MyCaffe.basecode.MyCaffeModelData.LastSavedModeDescriptionFileName
get

Returns the file name of the last saved model description file.

Definition at line 171 of file MyCaffeModelData.cs.

◆ LastSavedWeightsFileName

string MyCaffe.basecode.MyCaffeModelData.LastSavedWeightsFileName
get

Returns the file name of the last saved weights file.

Definition at line 187 of file MyCaffeModelData.cs.

◆ LastSaveSolverDescriptionFileName

string MyCaffe.basecode.MyCaffeModelData.LastSaveSolverDescriptionFileName
get

Returns the file name of the last saved solver description file.

Definition at line 179 of file MyCaffeModelData.cs.

◆ ModelDescription

string MyCaffe.basecode.MyCaffeModelData.ModelDescription
getset

Get/set the model descriptor.

Definition at line 57 of file MyCaffeModelData.cs.

◆ OriginalDownloadFile

string MyCaffe.basecode.MyCaffeModelData.OriginalDownloadFile
getset

Specifies the original download file, if any.

Definition at line 91 of file MyCaffeModelData.cs.

◆ SolverDescription

string MyCaffe.basecode.MyCaffeModelData.SolverDescription
getset

Get/set the solver description.

Definition at line 66 of file MyCaffeModelData.cs.

◆ Weights

byte [] MyCaffe.basecode.MyCaffeModelData.Weights
get

Returns the model weights.

Definition at line 75 of file MyCaffeModelData.cs.


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