We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
温馨提示:根据社区不完全统计,按照模板提问,可以加快回复和解决问题的速度
fastdeploy::vision::DetectionResult res; //重写后处理的子类 fastdeploy::vision::detection::YOLOv5PostprocessorImpl post; model.Predict(&det_image, &res, &post));
但发现YOLOv5的postprocessor_成员不是指针,
protected: bool Initialize(); YOLOv5Preprocessor preprocessor_; YOLOv5Postprocessor postprocessor_;
因此无法实现多态。如果修改postprocessor的成员为指针,其他方法的访问也需要修改。请问有什么更好的方法么? 从个人理解来看,每一个算法的后处理部分应该变化较多,做成一个可继承接口是不是更好些?
The text was updated successfully, but these errors were encountered:
赞同你的想法。
Sorry, something went wrong.
juncaipeng
No branches or pull requests
温馨提示:根据社区不完全统计,按照模板提问,可以加快回复和解决问题的速度
环境
问题日志及出现问题的操作流程
考虑重载一个YOLOv5::Predict(cv::Mat* im, DetectionResult* result, YOLOv5PostprocessorImpl* post);
方法来使用YOLOv5PostprocessorImpl继承YOLOv5Postprocessor,实现多态,如:
但发现YOLOv5的postprocessor_成员不是指针,
因此无法实现多态。如果修改postprocessor的成员为指针,其他方法的访问也需要修改。请问有什么更好的方法么?
从个人理解来看,每一个算法的后处理部分应该变化较多,做成一个可继承接口是不是更好些?
The text was updated successfully, but these errors were encountered: