pipeline_arguments.py 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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_unclip_ratio",
  53. "type": float,
  54. "help": "Sets the unclip ratio for text detection.",
  55. },
  56. {
  57. "name": "--text_rec_score_thresh",
  58. "type": float,
  59. "help": "Sets the score threshold for text recognition.",
  60. },
  61. ],
  62. "object_detection": [
  63. {
  64. "name": "--threshold",
  65. "type": float,
  66. "help": "Sets the threshold for object detection.",
  67. },
  68. ],
  69. "image_classification": [
  70. {
  71. "name": "--topk",
  72. "type": int,
  73. "help": "Sets the Top-K value for image classification.",
  74. },
  75. ],
  76. "image_multilabel_classification": [
  77. {
  78. "name": "--threshold",
  79. "type": float,
  80. "help": "Sets the threshold for image multilabel classification.",
  81. },
  82. ],
  83. "pedestrian_attribute_recognition": [
  84. {
  85. "name": "--det_threshold",
  86. "type": float,
  87. "help": "Sets the threshold for human detection.",
  88. },
  89. {
  90. "name": "--cls_threshold",
  91. "type": float,
  92. "help": "Sets the threshold for pedestrian attribute recognition.",
  93. },
  94. ],
  95. "vehicle_attribute_recognition": [
  96. {
  97. "name": "--det_threshold",
  98. "type": float,
  99. "help": "Sets the threshold for vehicle detection.",
  100. },
  101. {
  102. "name": "--cls_threshold",
  103. "type": float,
  104. "help": "Sets the threshold for vehicle attribute recognition.",
  105. },
  106. ],
  107. "ts_classification": None,
  108. "formula_recognition": None,
  109. "video_classification": [
  110. {
  111. "name": "--topk",
  112. "type": int,
  113. "help": "Sets the Top-K value for video classification.",
  114. },
  115. ],
  116. }