detection_pybind.cc 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. // Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. #include "ultra_infer/pybind/main.h"
  15. namespace ultra_infer {
  16. void BindYOLOv7(pybind11::module &m);
  17. void BindScaledYOLOv4(pybind11::module &m);
  18. void BindYOLOR(pybind11::module &m);
  19. void BindYOLOv6(pybind11::module &m);
  20. void BindYOLOv5Lite(pybind11::module &m);
  21. void BindYOLOv5(pybind11::module &m);
  22. void BindYOLOv5Seg(pybind11::module &m);
  23. void BindFastestDet(pybind11::module &m);
  24. void BindYOLOX(pybind11::module &m);
  25. void BindNanoDetPlus(pybind11::module &m);
  26. void BindPPDet(pybind11::module &m);
  27. void BindYOLOv7End2EndTRT(pybind11::module &m);
  28. void BindYOLOv7End2EndORT(pybind11::module &m);
  29. void BindYOLOv8(pybind11::module &m);
  30. void BindRKYOLO(pybind11::module &m);
  31. void BindDetection(pybind11::module &m) {
  32. auto detection_module =
  33. m.def_submodule("detection", "Image object detection models.");
  34. BindPPDet(detection_module);
  35. BindYOLOv7(detection_module);
  36. BindScaledYOLOv4(detection_module);
  37. BindYOLOR(detection_module);
  38. BindYOLOv6(detection_module);
  39. BindYOLOv5Lite(detection_module);
  40. BindYOLOv5(detection_module);
  41. BindYOLOv5Seg(detection_module);
  42. BindFastestDet(detection_module);
  43. BindYOLOX(detection_module);
  44. BindNanoDetPlus(detection_module);
  45. BindYOLOv7End2EndTRT(detection_module);
  46. BindYOLOv7End2EndORT(detection_module);
  47. BindYOLOv8(detection_module);
  48. BindRKYOLO(detection_module);
  49. }
  50. } // namespace ultra_infer