|
FastDeploy
latest
Fast & Easy to Deploy!
|
Postprocessor object for PaddleClas serials model. More...
#include <postprocessor.h>
Public Member Functions | |
| PaddleClasPostprocessor (int topk=1) | |
| Create a postprocessor instance for PaddleClas serials model. More... | |
| bool | Run (const std::vector< FDTensor > &tensors, std::vector< ClassifyResult > *result) |
| Process the result of runtime and fill to ClassifyResult structure. More... | |
| void | SetTopk (int topk) |
| Set topk value. | |
| int | GetTopk () const |
| Get topk value. | |
Postprocessor object for PaddleClas serials model.
|
explicit |
Create a postprocessor instance for PaddleClas serials model.
| [in] | topk | The topk result filtered by the classify confidence score, default 1 |
| bool fastdeploy::vision::classification::PaddleClasPostprocessor::Run | ( | const std::vector< FDTensor > & | tensors, |
| std::vector< ClassifyResult > * | result | ||
| ) |
Process the result of runtime and fill to ClassifyResult structure.
| [in] | tensors | The inference result from runtime |
| [in] | result | The output result of classification |
1.8.13