[Model] Update PPDet Preprocess (#1006)

* 更新导航文档

* 更新导航文档

* 更新导航文档

* 更新导航文档

* 更新PPDet PreProcess

* 更新PPDet PreProcess

* 更新PPDet pybind and python

* 更新

* 更新ppdet
This commit is contained in:
Zheng-Bicheng
2022-12-29 21:15:23 +08:00
committed by GitHub
parent dd5759bd99
commit d275c3ba02
5 changed files with 74 additions and 27 deletions

View File

@@ -39,10 +39,21 @@ class FASTDEPLOY_DECL PaddleDetPreprocessor {
*/
bool Run(std::vector<FDMat>* images, std::vector<FDTensor>* outputs);
/// This function will disable normalize in preprocessing step.
void DisableNormalize();
/// This function will disable hwc2chw in preprocessing step.
void DisablePermute();
private:
bool BuildPreprocessPipelineFromConfig(const std::string& config_file);
bool BuildPreprocessPipelineFromConfig();
std::vector<std::shared_ptr<Processor>> processors_;
bool initialized_ = false;
// for recording the switch of hwc2chw
bool disable_permute_ = false;
// for recording the switch of normalize
bool disable_normalize_ = false;
// read config file
std::string config_file_;
};
} // namespace detection