mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-07 01:22:59 +08:00
@@ -87,6 +87,12 @@ void BindPPDet(pybind11::module& m) {
|
|||||||
[](vision::detection::PaddleDetPostprocessor& self) {
|
[](vision::detection::PaddleDetPostprocessor& self) {
|
||||||
self.ApplyNMS();
|
self.ApplyNMS();
|
||||||
})
|
})
|
||||||
|
.def("apply_nms",
|
||||||
|
[](vision::detection::PaddleDetPostprocessor& self,
|
||||||
|
vision::detection::NMSOption& option) {
|
||||||
|
self.ApplyNMS();
|
||||||
|
self.SetNMSOption(option);
|
||||||
|
})
|
||||||
.def("run", [](vision::detection::PaddleDetPostprocessor& self,
|
.def("run", [](vision::detection::PaddleDetPostprocessor& self,
|
||||||
std::vector<pybind11::array>& input_array) {
|
std::vector<pybind11::array>& input_array) {
|
||||||
std::vector<vision::DetectionResult> results;
|
std::vector<vision::DetectionResult> results;
|
||||||
|
@@ -494,7 +494,6 @@ class PaddleYOLOv5(PPYOLOE):
|
|||||||
|
|
||||||
super(PPYOLOE, self).__init__(runtime_option)
|
super(PPYOLOE, self).__init__(runtime_option)
|
||||||
|
|
||||||
assert model_format == ModelFormat.PADDLE, "PaddleYOLOv5 model only support model format of ModelFormat.Paddle now."
|
|
||||||
self._model = C.vision.detection.PaddleYOLOv5(
|
self._model = C.vision.detection.PaddleYOLOv5(
|
||||||
model_file, params_file, config_file, self._runtime_option,
|
model_file, params_file, config_file, self._runtime_option,
|
||||||
model_format)
|
model_format)
|
||||||
|
Reference in New Issue
Block a user