Custom BatchStream class for Faster-RCNN because we use variable input dimensions and different image preprocessing.
More...
|
| BatchStream (int batchSize, int maxBatches, std::string prefix, std::string suffix, std::vector< std::string > directories) |
|
| BatchStream (int batchSize, int maxBatches, std::string prefix, std::vector< std::string > directories) |
|
| BatchStream (int batchSize, int maxBatches, nvinfer1::Dims dims, std::string listFile, std::vector< std::string > directories) |
|
void | reset (int firstBatch) override |
|
bool | next () override |
|
void | skip (int skipCount) override |
|
float * | getBatch () override |
|
float * | getLabels () override |
|
int | getBatchesRead () const override |
|
int | getBatchSize () const override |
|
nvinfer1::Dims | getDims () const override |
|
| BatchStream (int batchSize, int maxBatches, const std::string &prefix, const std::string &suffix, const std::vector< std::string > &directories) |
|
| BatchStream (int batchSize, int maxBatches, const std::string &prefix, const std::vector< std::string > &directories) |
|
| BatchStream (int batchSize, int maxBatches, const nvinfer1::Dims &dims, const std::string &listFile, const std::vector< std::string > &directories) |
|
void | reset (int firstBatch) |
|
bool | next () |
|
void | skip (int skipCount) |
|
float * | getBatch () |
|
float * | getLabels () |
|
int | getBatchesRead () const |
|
int | getBatchSize () const |
|
nvinfer1::Dims | getDims () const |
|
Custom BatchStream class for Faster-RCNN because we use variable input dimensions and different image preprocessing.
◆ BatchStream() [1/6]
BatchStream::BatchStream |
( |
int |
batchSize, |
|
|
int |
maxBatches, |
|
|
std::string |
prefix, |
|
|
std::string |
suffix, |
|
|
std::vector< std::string > |
directories |
|
) |
| |
|
inline |
◆ BatchStream() [2/6]
BatchStream::BatchStream |
( |
int |
batchSize, |
|
|
int |
maxBatches, |
|
|
std::string |
prefix, |
|
|
std::vector< std::string > |
directories |
|
) |
| |
|
inline |
◆ BatchStream() [3/6]
BatchStream::BatchStream |
( |
int |
batchSize, |
|
|
int |
maxBatches, |
|
|
nvinfer1::Dims |
dims, |
|
|
std::string |
listFile, |
|
|
std::vector< std::string > |
directories |
|
) |
| |
|
inline |
◆ BatchStream() [4/6]
BatchStream::BatchStream |
( |
int |
batchSize, |
|
|
int |
maxBatches, |
|
|
const std::string & |
prefix, |
|
|
const std::string & |
suffix, |
|
|
const std::vector< std::string > & |
directories |
|
) |
| |
|
inline |
◆ BatchStream() [5/6]
BatchStream::BatchStream |
( |
int |
batchSize, |
|
|
int |
maxBatches, |
|
|
const std::string & |
prefix, |
|
|
const std::vector< std::string > & |
directories |
|
) |
| |
|
inline |
◆ BatchStream() [6/6]
BatchStream::BatchStream |
( |
int |
batchSize, |
|
|
int |
maxBatches, |
|
|
const nvinfer1::Dims & |
dims, |
|
|
const std::string & |
listFile, |
|
|
const std::vector< std::string > & |
directories |
|
) |
| |
|
inline |
◆ reset() [1/2]
void BatchStream::reset |
( |
int |
firstBatch | ) |
|
|
inlineoverridevirtual |
◆ next() [1/2]
bool BatchStream::next |
( |
| ) |
|
|
inlineoverridevirtual |
◆ skip() [1/2]
void BatchStream::skip |
( |
int |
skipCount | ) |
|
|
inlineoverridevirtual |
◆ getBatch() [1/2]
float* BatchStream::getBatch |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getLabels() [1/2]
float* BatchStream::getLabels |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getBatchesRead() [1/2]
int BatchStream::getBatchesRead |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getBatchSize() [1/2]
int BatchStream::getBatchSize |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getDims() [1/2]
◆ getFileBatch() [1/2]
float* BatchStream::getFileBatch |
( |
| ) |
|
|
inlineprivate |
◆ getFileLabels() [1/2]
float* BatchStream::getFileLabels |
( |
| ) |
|
|
inlineprivate |
◆ update() [1/2]
bool BatchStream::update |
( |
| ) |
|
|
inlineprivate |
◆ reset() [2/2]
void BatchStream::reset |
( |
int |
firstBatch | ) |
|
|
inlinevirtual |
◆ next() [2/2]
bool BatchStream::next |
( |
| ) |
|
|
inlinevirtual |
◆ skip() [2/2]
void BatchStream::skip |
( |
int |
skipCount | ) |
|
|
inlinevirtual |
◆ getBatch() [2/2]
float* BatchStream::getBatch |
( |
| ) |
|
|
inlinevirtual |
◆ getLabels() [2/2]
float* BatchStream::getLabels |
( |
| ) |
|
|
inlinevirtual |
◆ getBatchesRead() [2/2]
int BatchStream::getBatchesRead |
( |
| ) |
const |
|
inlinevirtual |
◆ getBatchSize() [2/2]
int BatchStream::getBatchSize |
( |
| ) |
const |
|
inlinevirtual |
◆ getDims() [2/2]
◆ getFileBatch() [2/2]
float* BatchStream::getFileBatch |
( |
| ) |
|
|
inlineprivate |
◆ getFileLabels() [2/2]
float* BatchStream::getFileLabels |
( |
| ) |
|
|
inlineprivate |
◆ update() [2/2]
bool BatchStream::update |
( |
| ) |
|
|
inlineprivate |
◆ mBatchSize
int BatchStream::mBatchSize {0} |
|
private |
◆ mMaxBatches
int BatchStream::mMaxBatches {0} |
|
private |
◆ mBatchCount
int BatchStream::mBatchCount {0} |
|
private |
◆ mFileCount
int BatchStream::mFileCount {0} |
|
private |
◆ mFileBatchPos
int BatchStream::mFileBatchPos {0} |
|
private |
◆ mImageSize
int BatchStream::mImageSize {0} |
|
private |
◆ mBatch
std::vector< float > BatchStream::mBatch |
|
private |
◆ mLabels
std::vector< float > BatchStream::mLabels |
|
private |
◆ mFileBatch
std::vector< float > BatchStream::mFileBatch |
|
private |
◆ mFileLabels
std::vector< float > BatchStream::mFileLabels |
|
private |
◆ mPrefix
std::string BatchStream::mPrefix |
|
private |
◆ mSuffix
std::string BatchStream::mSuffix |
|
private |
◆ mDims
◆ mListFile
std::string BatchStream::mListFile |
|
private |
File name of the list of image names.
◆ mDataDir
std::vector< std::string > BatchStream::mDataDir |
|
private |
Directories where the files can be found.
The documentation for this class was generated from the following files:
- BatchStream.h
- frcnnUtils.h