meta.py 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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. __all__ = ['get_all_repo_names']
  15. # REPO_NAMES = [
  16. # 'PaddleSeg', 'Paddle3D', 'PaddleClas', 'PaddleDetection', 'PaddleOCR',
  17. # 'PaddleTS', 'PaddleNLP', 'PaddleSpeech', 'PARL', 'PaddleMIX']
  18. REPO_NAMES = [
  19. 'PaddleClas', 'PaddleOCR', 'PaddleDetection', 'PaddleSeg', 'PaddleNLP',
  20. 'PaddleTS'
  21. ]
  22. REPO_META = {
  23. 'PaddleSeg': {
  24. 'repo_url': '/PaddlePaddle/PaddleSeg.git',
  25. 'branch': 'develop',
  26. 'pkg_name': 'paddleseg',
  27. 'lib_name': 'paddleseg',
  28. 'pdx_pkg_name': 'PaddleSeg_api',
  29. 'editable': False,
  30. 'extra_req_files': ['Matting/requirements.txt'],
  31. 'path_env': 'PADDLE_PDX_PADDLESEG_PATH',
  32. },
  33. 'Paddle3D': {
  34. 'repo_url': '/PaddlePaddle/Paddle3D.git',
  35. 'branch': 'develop',
  36. 'pkg_name': 'paddle3d',
  37. 'lib_name': 'paddle3d',
  38. 'pdx_pkg_name': 'Paddle3D_api',
  39. 'editable': False,
  40. 'path_env': 'PADDLE_PDX_PADDLE3D_PATH',
  41. 'requires': ['PaddleSeg', 'PaddleDetection'],
  42. 'pdx_pkg_deps': ['nuscenes-devkit', 'pyquaternion'],
  43. },
  44. 'PaddleClas': {
  45. 'repo_url': '/PaddlePaddle/PaddleClas.git',
  46. 'branch': 'develop',
  47. 'pkg_name': 'paddleclas',
  48. 'lib_name': 'paddleclas',
  49. 'pdx_pkg_name': 'PaddleClas_api',
  50. # PaddleClas must be installed in non-editable mode, otherwise it throws
  51. # an Import error.
  52. 'editable': False,
  53. 'path_env': 'PADDLE_PDX_PADDLECLAS_PATH',
  54. },
  55. 'PaddleDetection': {
  56. 'repo_url': '/PaddlePaddle/PaddleDetection.git',
  57. 'branch': 'develop',
  58. 'pkg_name': 'paddledet',
  59. 'lib_name': 'ppdet',
  60. 'pdx_pkg_name': 'PaddleDetection_api',
  61. 'editable': False,
  62. 'path_env': 'PADDLE_PDX_PADDLEDETECTION_PATH',
  63. },
  64. 'PaddleOCR': {
  65. 'repo_url': '/PaddlePaddle/PaddleOCR.git',
  66. 'platform': 'github',
  67. 'branch': 'release/2.6.1',
  68. 'pkg_name': 'paddleocr',
  69. 'lib_name': 'paddleocr',
  70. 'pdx_pkg_name': 'PaddleOCR_api',
  71. 'editable': False,
  72. 'extra_req_files': ['ppstructure/kie/requirements.txt'],
  73. 'path_env': 'PADDLE_PDX_PADDLEOCR_PATH',
  74. 'requires': ['PaddleNLP'],
  75. },
  76. 'PaddleTS': {
  77. 'repo_url': '/PaddlePaddle/PaddleTS.git',
  78. 'branch': 'release_v1.1',
  79. 'pkg_name': 'paddlets',
  80. 'lib_name': 'paddlets',
  81. 'pdx_pkg_name': 'PaddleTS_api',
  82. 'editable': False,
  83. 'path_env': 'PADDLE_PDX_PADDLETS_PATH',
  84. 'pdx_pkg_deps': ['pandas', 'ruamel.yaml'],
  85. },
  86. 'PaddleNLP': {
  87. 'repo_url': '/PaddlePaddle/PaddleNLP.git',
  88. 'branch': 'develop',
  89. 'pkg_name': 'paddlenlp',
  90. 'lib_name': 'paddlenlp',
  91. 'pdx_pkg_name': 'PaddleNLP_api',
  92. 'editable': False,
  93. 'path_env': 'PADDLE_PDX_PADDLENLP_PATH',
  94. },
  95. 'PaddleSpeech': {
  96. 'repo_url': '/PaddlePaddle/PaddleSpeech.git',
  97. 'branch': 'develop',
  98. 'pkg_name': 'paddlespeech',
  99. 'lib_name': 'paddlespeech',
  100. 'pdx_pkg_name': 'PaddleSpeech_api',
  101. 'editable': False,
  102. 'path_env': 'PADDLE_PDX_PADDLESPEECH_PATH',
  103. 'requires': ['PaddleNLP'],
  104. },
  105. 'PARL': {
  106. 'repo_url': '/PaddlePaddle/PARL.git',
  107. 'branch': 'develop',
  108. 'pkg_name': 'parl',
  109. 'lib_name': 'parl',
  110. 'pdx_pkg_name': 'PARL_api',
  111. 'editable': False,
  112. 'path_env': 'PADDLE_PDX_PARL_PATH',
  113. },
  114. 'PaddleMIX': {
  115. 'repo_url': '/PaddlePaddle/PaddleMIX.git',
  116. 'branch': 'develop',
  117. 'pkg_name': 'paddlemix',
  118. 'lib_name': 'paddlemix',
  119. 'pdx_pkg_name': 'PaddleMIX_api',
  120. 'editable': True,
  121. 'extra_editable': 'ppdiffusers',
  122. 'path_env': 'PADDLE_PDX_PADDLEMIX_PATH',
  123. 'requires': ['PaddleNLP'],
  124. },
  125. }
  126. def get_repo_meta(repo_name):
  127. """ get_repo_meta """
  128. return REPO_META[repo_name]
  129. def get_all_repo_names():
  130. """ get_all_repo_names """
  131. return REPO_NAMES