FastDeploy  latest
Fast & Easy to Deploy!
Public Member Functions | List of all members
fastdeploy::vision::segmentation::PaddleSegPostprocessor Class Reference

Postprocessor object for PaddleSeg serials model. More...

#include <postprocessor.h>

Public Member Functions

 PaddleSegPostprocessor (const std::string &config_file)
 Create a postprocessor instance for PaddleSeg serials model. More...
 
virtual bool Run (const std::vector< FDTensor > &infer_results, std::vector< SegmentationResult > *results, const std::map< std::string, std::vector< std::array< int, 2 >>> &imgs_info)
 Process the result of runtime and fill to SegmentationResult structure. More...
 
bool GetApplySoftmax () const
 Get apply_softmax property of PaddleSeg model, default is false.
 
void SetApplySoftmax (bool value)
 Set apply_softmax value, bool type required.
 
bool GetStoreScoreMap () const
 Get store_score_map property of PaddleSeg model, default is false.
 
void SetStoreScoreMap (bool value)
 Set store_score_map value, bool type required.
 

Detailed Description

Postprocessor object for PaddleSeg serials model.

Constructor & Destructor Documentation

◆ PaddleSegPostprocessor()

fastdeploy::vision::segmentation::PaddleSegPostprocessor::PaddleSegPostprocessor ( const std::string &  config_file)
explicit

Create a postprocessor instance for PaddleSeg serials model.

Parameters
[in]config_filePath of configuration file for deployment, e.g ppliteseg/deploy.yaml

Member Function Documentation

◆ Run()

bool fastdeploy::vision::segmentation::PaddleSegPostprocessor::Run ( const std::vector< FDTensor > &  infer_results,
std::vector< SegmentationResult > *  results,
const std::map< std::string, std::vector< std::array< int, 2 >>> &  imgs_info 
)
virtual

Process the result of runtime and fill to SegmentationResult structure.

Parameters
[in]tensorsThe inference result from runtime
[in]resultThe output result of detection
[in]imgs_infoThe original input images shape info map, key is "shape_info", value is vector<array<int, 2>> a{{height, width}}
Returns
true if the postprocess successed, otherwise false

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