pipeline_arguments.py 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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. PIPELINE_ARGUMENTS = {
  15. "OCR": [
  16. {
  17. "name": "--use_doc_orientation_classify",
  18. "type": bool,
  19. "help": "Determines whether to use document orientation classification",
  20. },
  21. {
  22. "name": "--use_doc_unwarping",
  23. "type": bool,
  24. "help": "Determines whether to use document unwarping",
  25. },
  26. {
  27. "name": "--use_textline_orientation",
  28. "type": bool,
  29. "help": "Determines whether to consider text line orientation",
  30. },
  31. {
  32. "name": "--text_det_limit_side_len",
  33. "type": int,
  34. "help": "Sets the side length limit for text detection.",
  35. },
  36. {
  37. "name": "--text_det_limit_type",
  38. "type": str,
  39. "help": "Sets the limit type for text detection.",
  40. },
  41. {
  42. "name": "--text_det_thresh",
  43. "type": float,
  44. "help": "Sets the threshold for text detection.",
  45. },
  46. {
  47. "name": "--text_det_box_thresh",
  48. "type": float,
  49. "help": "Sets the box threshold for text detection.",
  50. },
  51. {
  52. "name": "--text_det_max_candidates",
  53. "type": int,
  54. "help": "Sets the maximum number of candidate boxes for text detection.",
  55. },
  56. {
  57. "name": "--text_det_unclip_ratio",
  58. "type": float,
  59. "help": "Sets the unclip ratio for text detection.",
  60. },
  61. {
  62. "name": "--text_det_use_dilation",
  63. "type": bool,
  64. "help": "Determines whether to use dilation in text detection.",
  65. },
  66. {
  67. "name": "--text_rec_score_thresh",
  68. "type": float,
  69. "help": "Sets the score threshold for text recognition.",
  70. },
  71. ],
  72. "object_detection": [
  73. {
  74. "name": "--threshold",
  75. "type": float,
  76. "help": "Sets the threshold for object detection.",
  77. },
  78. ],
  79. "image_classification": [
  80. {
  81. "name": "--topk",
  82. "type": int,
  83. "help": "Sets the Top-K value for image classification.",
  84. },
  85. ],
  86. "image_multilabel_classification": [
  87. {
  88. "name": "--threshold",
  89. "type": float,
  90. "help": "Sets the threshold for image multilabel classification.",
  91. },
  92. ],
  93. "pedestrian_attribute_recognition": [
  94. {
  95. "name": "--det_threshold",
  96. "type": float,
  97. "help": "Sets the threshold for human detection.",
  98. },
  99. {
  100. "name": "--cls_threshold",
  101. "type": float,
  102. "help": "Sets the threshold for pedestrian attribute recognition.",
  103. },
  104. ],
  105. "vehicle_attribute_recognition": [
  106. {
  107. "name": "--det_threshold",
  108. "type": float,
  109. "help": "Sets the threshold for vehicle detection.",
  110. },
  111. {
  112. "name": "--cls_threshold",
  113. "type": float,
  114. "help": "Sets the threshold for vehicle attribute recognition.",
  115. },
  116. ],
  117. "ts_classification": None,
  118. "formula_recognition": None,
  119. "video_classification": [
  120. {
  121. "name": "--topk",
  122. "type": int,
  123. "help": "Sets the Top-K value for video classification.",
  124. },
  125. ],
  126. }