|
bool | constructNetwork (SampleUniquePtr< nvinfer1::IBuilder > &builder, SampleUniquePtr< nvinfer1::INetworkDefinition > &network, SampleUniquePtr< nvuffparser::IUffParser > &parser) |
| Parses an UFF model for SSD and creates a TensorRT network. More...
|
|
bool | processInput (const samplesCommon::BufferManager &buffers) |
| Reads the input and mean data, preprocesses, and stores the result in a managed buffer. More...
|
|
bool | verifyOutput (const samplesCommon::BufferManager &buffers) |
| Filters output detections and verify results. More...
|
|
void | batch_inverse_transform_classifier (const float *roi_after_nms, int roi_num_per_img, const float *classifier_cls, const float *classifier_regr, std::vector< float > &pred_boxes, std::vector< int > &pred_cls_ids, std::vector< float > &pred_probs, std::vector< int > &box_num_per_img, int N) |
| Helper function to do post-processing(apply delta to ROIs). More...
|
|
std::vector< int > | nms_classifier (std::vector< float > &boxes_per_cls, std::vector< float > &probs_per_cls, float NMS_OVERLAP_THRESHOLD, int NMS_MAX_BOXES) |
| NMS helper function in post-processing. More...
|
|
void | visualize_boxes (int img_num, int class_num, std::vector< float > &pred_boxes, std::vector< float > &pred_probs, std::vector< int > &pred_cls_ids, std::vector< int > &box_num_per_img, std::vector< vPPM > &ppms) |
| Helper function to dump bbox-overlayed images as PPM files. More...
|
|
◆ SampleUniquePtr
◆ SampleUffFasterRcnn()
◆ build()
bool SampleUffFasterRcnn::build |
( |
| ) |
|
Function builds the network engine.
◆ infer()
bool SampleUffFasterRcnn::infer |
( |
| ) |
|
Runs the TensorRT inference engine for this sample.
◆ teardown()
bool SampleUffFasterRcnn::teardown |
( |
| ) |
|
Cleans up any state created in the sample class.
Clean up the libprotobuf files as the parsing is complete
- Note
- It is not safe to use any other part of the protocol buffers library after ShutdownProtobufLibrary() has been called.
◆ constructNetwork()
Parses an UFF model for SSD and creates a TensorRT network.
◆ processInput()
Reads the input and mean data, preprocesses, and stores the result in a managed buffer.
◆ verifyOutput()
Filters output detections and verify results.
◆ batch_inverse_transform_classifier()
void SampleUffFasterRcnn::batch_inverse_transform_classifier |
( |
const float * |
roi_after_nms, |
|
|
int |
roi_num_per_img, |
|
|
const float * |
classifier_cls, |
|
|
const float * |
classifier_regr, |
|
|
std::vector< float > & |
pred_boxes, |
|
|
std::vector< int > & |
pred_cls_ids, |
|
|
std::vector< float > & |
pred_probs, |
|
|
std::vector< int > & |
box_num_per_img, |
|
|
int |
N |
|
) |
| |
|
private |
Helper function to do post-processing(apply delta to ROIs).
Define the function to apply delta to ROIs.
◆ nms_classifier()
std::vector< int > SampleUffFasterRcnn::nms_classifier |
( |
std::vector< float > & |
boxes_per_cls, |
|
|
std::vector< float > & |
probs_per_cls, |
|
|
float |
NMS_OVERLAP_THRESHOLD, |
|
|
int |
NMS_MAX_BOXES |
|
) |
| |
|
private |
NMS helper function in post-processing.
NMS on CPU in post-processing of classifier outputs.
◆ visualize_boxes()
void SampleUffFasterRcnn::visualize_boxes |
( |
int |
img_num, |
|
|
int |
class_num, |
|
|
std::vector< float > & |
pred_boxes, |
|
|
std::vector< float > & |
pred_probs, |
|
|
std::vector< int > & |
pred_cls_ids, |
|
|
std::vector< int > & |
box_num_per_img, |
|
|
std::vector< vPPM > & |
ppms |
|
) |
| |
|
private |
Helper function to dump bbox-overlayed images as PPM files.
Dump the detection results(bboxes) as PPM images, overlayed on original image.
◆ mParams
The parameters for the sample.
◆ mInputDims
The dimensions of the input to the network.
◆ mEngine
The TensorRT engine used to run the network.
The documentation for this class was generated from the following file: