__init__.py 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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 .base import (
  15. build_dataset_checker,
  16. build_trainer,
  17. build_evaluater,
  18. build_exportor,
  19. build_predictor,
  20. create_model,
  21. PaddleInferenceOption,
  22. )
  23. from .image_classification import (
  24. ClsDatasetChecker,
  25. ClsTrainer,
  26. ClsEvaluator,
  27. ClsExportor,
  28. ClsPredictor,
  29. )
  30. from .multilabel_classification import (
  31. MLClsDatasetChecker,
  32. MLClsTrainer,
  33. MLClsEvaluator,
  34. MLClsExportor,
  35. MLClsPredictor,
  36. )
  37. from .anomaly_detection import (
  38. UadDatasetChecker,
  39. UadTrainer,
  40. UadEvaluator,
  41. UadExportor,
  42. UadPredictor,
  43. )
  44. from .general_recognition import (
  45. ShiTuRecDatasetChecker,
  46. ShiTuRecTrainer,
  47. ShiTuRecEvaluator,
  48. ShiTuRecExportor,
  49. )
  50. from .object_detection import (
  51. COCODatasetChecker,
  52. DetTrainer,
  53. DetEvaluator,
  54. DetExportor,
  55. DetPredictor,
  56. )
  57. from .text_detection import (
  58. TextDetDatasetChecker,
  59. TextDetTrainer,
  60. TextDetEvaluator,
  61. TextDetExportor,
  62. TextDetPredictor,
  63. )
  64. from .text_recognition import (
  65. TextRecDatasetChecker,
  66. TextRecTrainer,
  67. TextRecEvaluator,
  68. TextRecExportor,
  69. TextRecPredictor,
  70. )
  71. from .table_recognition import (
  72. TableRecDatasetChecker,
  73. TableRecTrainer,
  74. TableRecEvaluator,
  75. TableRecExportor,
  76. TableRecPredictor,
  77. )
  78. from .semantic_segmentation import (
  79. SegDatasetChecker,
  80. SegTrainer,
  81. SegEvaluator,
  82. SegExportor,
  83. SegPredictor,
  84. )
  85. from .instance_segmentation import (
  86. COCOInstSegDatasetChecker,
  87. InstanceSegTrainer,
  88. InstanceSegEvaluator,
  89. InstanceSegExportor,
  90. InstanceSegPredictor,
  91. )
  92. from .ts_anomaly_detection import (
  93. TSADDatasetChecker,
  94. TSADTrainer,
  95. TSADEvaluator,
  96. TSADExportor,
  97. TSADPredictor,
  98. )
  99. from .ts_classification import (
  100. TSCLSDatasetChecker,
  101. TSCLSTrainer,
  102. TSCLSEvaluator,
  103. TSCLSExportor,
  104. TSCLSPredictor,
  105. )
  106. from .ts_forecast import TSFCDatasetChecker, TSFCTrainer, TSFCEvaluator, TSFCPredictor
  107. from .image_unwarping import WarpPredictor
  108. from .base.predictor.transforms import image_common
  109. from .image_classification import transforms as cls_transforms
  110. from .object_detection import transforms as det_transforms
  111. from .text_detection import transforms as text_det_transforms
  112. from .text_recognition import transforms as text_rec_transforms
  113. from .table_recognition import transforms as table_rec_transforms
  114. from .semantic_segmentation import transforms as seg_transforms
  115. from .instance_segmentation import transforms as instance_seg_transforms
  116. from .image_unwarping import transforms as image_unwarping_transforms