MyCaffe  1.11.7.7
Deep learning software for Windows C# programmers.
MyCaffe.converter.onnx.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)
 The constructor. More...
 
void Save (string strFolder, string strName)
 Save the model data to the specified folder under the specified name. More...
 

Properties

string ModelDescription [getset]
 Get/set the model descriptor. 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 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.converter.onnx.MyCaffeModelData.MyCaffeModelData ( string  strModelDesc,
byte[]  rgWeights,
byte[]  rgImageMean = null 
)

The constructor.

Parameters
strModelDescSpecifies the model descriptor.
rgWeightsSpecifies the model weights.
rgImageMeanOptionally, specifies the image mean (default = null).

Definition at line 29 of file MyCaffeModelData.cs.

Member Function Documentation

◆ Save()

void MyCaffe.converter.onnx.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 75 of file MyCaffeModelData.cs.

Property Documentation

◆ ImageMean

byte [] MyCaffe.converter.onnx.MyCaffeModelData.ImageMean
get

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

Definition at line 56 of file MyCaffeModelData.cs.

◆ LastSavedImageMeanFileName

string MyCaffe.converter.onnx.MyCaffeModelData.LastSavedImageMeanFileName
get

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

Definition at line 146 of file MyCaffeModelData.cs.

◆ LastSavedModeDescriptionFileName

string MyCaffe.converter.onnx.MyCaffeModelData.LastSavedModeDescriptionFileName
get

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

Definition at line 130 of file MyCaffeModelData.cs.

◆ LastSavedWeightsFileName

string MyCaffe.converter.onnx.MyCaffeModelData.LastSavedWeightsFileName
get

Returns the file name of the last saved weights file.

Definition at line 138 of file MyCaffeModelData.cs.

◆ ModelDescription

string MyCaffe.converter.onnx.MyCaffeModelData.ModelDescription
getset

Get/set the model descriptor.

Definition at line 39 of file MyCaffeModelData.cs.

◆ OriginalDownloadFile

string MyCaffe.converter.onnx.MyCaffeModelData.OriginalDownloadFile
getset

Specifies the original download file, if any.

Definition at line 64 of file MyCaffeModelData.cs.

◆ Weights

byte [] MyCaffe.converter.onnx.MyCaffeModelData.Weights
get

Returns the model weights.

Definition at line 48 of file MyCaffeModelData.cs.


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