__init__.py 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. # copyright (c) 2024 PaddlePaddle Authors. All Rights Reserve.
  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. from importlib import import_module
  15. from .base import (
  16. build_dataset_checker,
  17. build_trainer,
  18. build_evaluater,
  19. build_exportor,
  20. )
  21. from .image_classification import (
  22. ClsDatasetChecker,
  23. ClsTrainer,
  24. ClsEvaluator,
  25. ClsExportor,
  26. )
  27. from .multilabel_classification import (
  28. MLClsDatasetChecker,
  29. MLClsTrainer,
  30. MLClsEvaluator,
  31. MLClsExportor,
  32. )
  33. from .anomaly_detection import (
  34. UadDatasetChecker,
  35. UadTrainer,
  36. UadEvaluator,
  37. UadExportor,
  38. )
  39. from .general_recognition import (
  40. ShiTuRecDatasetChecker,
  41. ShiTuRecTrainer,
  42. ShiTuRecEvaluator,
  43. ShiTuRecExportor,
  44. )
  45. from .object_detection import (
  46. COCODatasetChecker,
  47. DetTrainer,
  48. DetEvaluator,
  49. DetExportor,
  50. )
  51. from .text_detection import (
  52. TextDetDatasetChecker,
  53. TextDetTrainer,
  54. TextDetEvaluator,
  55. TextDetExportor,
  56. )
  57. from .text_recognition import (
  58. TextRecDatasetChecker,
  59. TextRecTrainer,
  60. TextRecEvaluator,
  61. TextRecExportor,
  62. )
  63. from .table_recognition import (
  64. TableRecDatasetChecker,
  65. TableRecTrainer,
  66. TableRecEvaluator,
  67. TableRecExportor,
  68. )
  69. from .semantic_segmentation import (
  70. SegDatasetChecker,
  71. SegTrainer,
  72. SegEvaluator,
  73. SegExportor,
  74. )
  75. from .instance_segmentation import (
  76. COCOInstSegDatasetChecker,
  77. InstanceSegTrainer,
  78. InstanceSegEvaluator,
  79. InstanceSegExportor,
  80. )
  81. from .ts_anomaly_detection import (
  82. TSADDatasetChecker,
  83. TSADTrainer,
  84. TSADEvaluator,
  85. TSADExportor,
  86. )
  87. from .ts_classification import (
  88. TSCLSDatasetChecker,
  89. TSCLSTrainer,
  90. TSCLSEvaluator,
  91. TSCLSExportor,
  92. )
  93. from .face_recognition import (
  94. FaceRecDatasetChecker,
  95. FaceRecTrainer,
  96. FaceRecEvaluator,
  97. FaceRecExportor,
  98. )
  99. from .ts_forecast import TSFCDatasetChecker, TSFCTrainer, TSFCEvaluator
  100. module_3d_bev_detection = import_module(".3d_bev_detection", "paddlex.modules")
  101. BEVFusionDatasetChecker = getattr(module_3d_bev_detection, "BEVFusionDatasetChecker")
  102. BEVFusionTrainer = getattr(module_3d_bev_detection, "BEVFusionTrainer")
  103. BEVFusionEvaluator = getattr(module_3d_bev_detection, "BEVFusionEvaluator")
  104. BEVFusionExportor = getattr(module_3d_bev_detection, "BEVFusionExportor")
  105. from .keypoint_detection import (
  106. KeypointDatasetChecker,
  107. KeypointTrainer,
  108. KeypointEvaluator,
  109. KeypointExportor,
  110. )
  111. from .video_classification import (
  112. VideoClsDatasetChecker,
  113. VideoClsTrainer,
  114. VideoClsEvaluator,
  115. VideoClsExportor,
  116. )
  117. from .video_detection import (
  118. VideoDetDatasetChecker,
  119. VideoDetTrainer,
  120. VideoDetEvaluator,
  121. VideoDetExportor,
  122. )
  123. from .multilingual_speech_recognition import (
  124. WhisperDatasetChecker,
  125. WhisperTrainer,
  126. WhisperEvaluator,
  127. WhisperExportor,
  128. )