15 #include "fastdeploy/fastdeploy_model.h"    16 #include "fastdeploy/vision/common/processors/transform.h"    17 #include "fastdeploy/vision/common/result.h"    18 #include "fastdeploy/vision/utils/utils.h"    22 namespace segmentation {
    41     const std::vector<FDTensor>& infer_results,
    42     std::vector<SegmentationResult>* results,
    43     const std::map<std::string, std::vector<std::array<int, 2>>>& imgs_info);
    48     return apply_softmax_;
    53     apply_softmax_ = value;
    58     return store_score_map_;
    63     store_score_map_ = value;
    67   virtual bool ReadFromConfig(
const std::string& config_file);
    69   virtual bool SliceOneResultFromBatchInferResults(
    72                   const std::vector<int64_t>& infer_result_shape,
    73                   const int64_t& start_idx);
    75   virtual bool ProcessWithScoreResult(
const FDTensor& infer_result,
    76                                       const int64_t& out_num,
    79   virtual bool ProcessWithLabelResult(
const FDTensor& infer_result,
    80                                       const int64_t& out_num,
    83   bool is_with_softmax_ = 
false;
    85   bool is_with_argmax_ = 
true;
    87   bool apply_softmax_ = 
false;
    89   bool store_score_map_ = 
false;
    91   bool initialized_ = 
false;
 void SetApplySoftmax(bool value)
Set apply_softmax value, bool type required. 
Definition: postprocessor.h:52
 
bool GetStoreScoreMap() const
Get store_score_map property of PaddleSeg model, default is false. 
Definition: postprocessor.h:57
 
Segmentation result structure for all the segmentation models. 
Definition: result.h:270
 
FDTensor object used to represend data matrix. 
Definition: fd_tensor.h:31
 
void SetStoreScoreMap(bool value)
Set store_score_map value, bool type required. 
Definition: postprocessor.h:62
 
Postprocessor object for PaddleSeg serials model. 
Definition: postprocessor.h:25
 
bool GetApplySoftmax() const
Get apply_softmax property of PaddleSeg model, default is false. 
Definition: postprocessor.h:47
 
All C++ FastDeploy APIs are defined inside this namespace. 
Definition: option.h:16