MyCaffe  1.12.2.41
Deep learning software for Windows C# programmers.
MyCaffe.preprocessor.MyCaffeDataPreprocessor< T > Class Template Reference

The MyCaffeDataPreprocessor handles adding data from a streaming database to the GPU and then pre-processing the data once on the GPU making it ready for use with the Data Gym. More...

Inheritance diagram for MyCaffe.preprocessor.MyCaffeDataPreprocessor< T >:
System.ComponentModel.Component MyCaffe.preprocessor.IXMyCaffePreprocessor< T >

Public Member Functions

 MyCaffeDataPreprocessor ()
 The constructor. More...
 
 MyCaffeDataPreprocessor (IContainer container)
 The constructor. More...
 
void Initialize (IXMyCaffe< T > imycaffe, IXStreamDatabase idb, string strPreProcessorDLLPath, PropertySet properties)
 Initialize the Data Processor. More...
 
Tuple< Bitmap, SimpleDatumRender (SimpleDatum sd)
 Create and return the visualization data. More...
 
void Reset (int nStartOffset=0)
 Reset to the start of the data set, or to an offset from the start. More...
 
void Shutdown ()
 Shutdown the preprocessor. More...
 
Tuple< Blob< T >, SimpleDatumStep (bool bGetSimpleDatum, int nWait=1000)
 Step to the next data in the streaming database and process it. More...
 
- Public Member Functions inherited from System.ComponentModel.Component
 Component ()
 

Detailed Description

The MyCaffeDataPreprocessor handles adding data from a streaming database to the GPU and then pre-processing the data once on the GPU making it ready for use with the Data Gym.

Template Parameters
TSpecfies the base type of float or double.

Definition at line 23 of file MyCaffeDataPreprocessor.cs.

Constructor & Destructor Documentation

◆ MyCaffeDataPreprocessor() [1/2]

◆ MyCaffeDataPreprocessor() [2/2]

The constructor.

Parameters
containerSpecifies the container that holds this compoent.

Definition at line 39 of file MyCaffeDataPreprocessor.cs.

Member Function Documentation

◆ Initialize()

void MyCaffe.preprocessor.MyCaffeDataPreprocessor< T >.Initialize ( IXMyCaffe< T >  imycaffe,
IXStreamDatabase  idb,
string  strPreProcessorDLLPath,
PropertySet  properties 
)

Initialize the Data Processor.

Parameters
imycaffeSpecifies the instance of MyCaffe to use.
idbSpecifies the instance of the streaming database to use.
strPreProcessorDLLPathSpecifies the path to the preprocessing DLL to use.
propertiesSpecifies the property set to initialize with. The property set contains the 'Fields' and 'Depth' values where each must be > 0.

Implements MyCaffe.preprocessor.IXMyCaffePreprocessor< T >.

Definition at line 58 of file MyCaffeDataPreprocessor.cs.

◆ Render()

Create and return the visualization data.

Parameters
sdSpecifies the visualization data to render, this is the SimpleDatum returned from the Step function.
Returns
A tuple containing a bitmap and SimpleDatum of the visualization data are returned.

Implements MyCaffe.preprocessor.IXMyCaffePreprocessor< T >.

Definition at line 79 of file MyCaffeDataPreprocessor.cs.

◆ Reset()

void MyCaffe.preprocessor.MyCaffeDataPreprocessor< T >.Reset ( int  nStartOffset = 0)

Reset to the start of the data set, or to an offset from the start.

Parameters
nStartOffsetOptionally, specifies an offset from the start to use.

Implements MyCaffe.preprocessor.IXMyCaffePreprocessor< T >.

Definition at line 88 of file MyCaffeDataPreprocessor.cs.

◆ Shutdown()

Shutdown the preprocessor.

Implements MyCaffe.preprocessor.IXMyCaffePreprocessor< T >.

Definition at line 96 of file MyCaffeDataPreprocessor.cs.

◆ Step()

Tuple< Blob< T >, SimpleDatum > MyCaffe.preprocessor.MyCaffeDataPreprocessor< T >.Step ( bool  bGetSimpleDatum,
int  nWait = 1000 
)

Step to the next data in the streaming database and process it.

Parameters
bGetSimpleDatumSpecifies to get the simple datum for visualization purposes.
nWaitSpecifies an amount of time in ms. to wait for new data.
Returns
A tuple containing the Blob of processed data and optionally a SimpleDatum for visualiation is returned.

Implements MyCaffe.preprocessor.IXMyCaffePreprocessor< T >.

Definition at line 111 of file MyCaffeDataPreprocessor.cs.


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