| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186 |
- # copyright (c) 2024 PaddlePaddle Authors. All Rights Reserve.
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # http://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- PIPELINE_ARGUMENTS = {
- "OCR": [
- {
- "name": "--use_doc_orientation_classify",
- "type": bool,
- "help": "Determines whether to use document orientation classification",
- },
- {
- "name": "--use_doc_unwarping",
- "type": bool,
- "help": "Determines whether to use document unwarping",
- },
- {
- "name": "--use_textline_orientation",
- "type": bool,
- "help": "Determines whether to consider text line orientation",
- },
- {
- "name": "--text_det_limit_side_len",
- "type": int,
- "help": "Sets the side length limit for text detection.",
- },
- {
- "name": "--text_det_limit_type",
- "type": str,
- "help": "Sets the limit type for text detection.",
- },
- {
- "name": "--text_det_thresh",
- "type": float,
- "help": "Sets the threshold for text detection.",
- },
- {
- "name": "--text_det_box_thresh",
- "type": float,
- "help": "Sets the box threshold for text detection.",
- },
- {
- "name": "--text_det_unclip_ratio",
- "type": float,
- "help": "Sets the unclip ratio for text detection.",
- },
- {
- "name": "--text_rec_score_thresh",
- "type": float,
- "help": "Sets the score threshold for text recognition.",
- },
- ],
- "object_detection": [
- {
- "name": "--threshold",
- "type": float,
- "help": "Sets the threshold for object detection.",
- },
- ],
- "image_classification": [
- {
- "name": "--topk",
- "type": int,
- "help": "Sets the Top-K value for image classification.",
- },
- ],
- "image_multilabel_classification": [
- {
- "name": "--threshold",
- "type": float,
- "help": "Sets the threshold for image multilabel classification.",
- },
- ],
- "pedestrian_attribute_recognition": [
- {
- "name": "--det_threshold",
- "type": float,
- "help": "Sets the threshold for human detection.",
- },
- {
- "name": "--cls_threshold",
- "type": float,
- "help": "Sets the threshold for pedestrian attribute recognition.",
- },
- ],
- "vehicle_attribute_recognition": [
- {
- "name": "--det_threshold",
- "type": float,
- "help": "Sets the threshold for vehicle detection.",
- },
- {
- "name": "--cls_threshold",
- "type": float,
- "help": "Sets the threshold for vehicle attribute recognition.",
- },
- ],
- "table_recognition": None,
- "layout_parsing": None,
- "seal_recognition": None,
- "ts_forecast": None,
- "ts_anomaly_detection": None,
- "ts_classification": None,
- "formula_recognition": [
- {
- "name": "--use_layout_detection",
- "type": bool,
- "help": "Determines whether to use layout detection",
- },
- {
- "name": "--use_doc_orientation_classify",
- "type": bool,
- "help": "Determines whether to use document orientation classification",
- },
- {
- "name": "--use_doc_unwarping",
- "type": bool,
- "help": "Determines whether to use document unwarping",
- },
- {
- "name": "--layout_threshold",
- "type": float,
- "help": "Sets the layout threshold for layout detection.",
- },
- {
- "name": "--layout_nms",
- "type": bool,
- "help": "Determines whether to use layout nms",
- },
- {
- "name": "--layout_unclip_ratio",
- "type": float,
- "help": "Sets the layout unclip ratio for layout detection.",
- },
- {
- "name": "--layout_merge_bboxes_mode",
- "type": str,
- "help": "Sets the layout merge bboxes mode for layout detection.",
- },
- ],
- "instance_segmentation": None,
- "semantic_segmentation": None,
- "small_object_detection": None,
- "anomaly_detection": None,
- "video_classification": [
- {
- "name": "--topk",
- "type": int,
- "help": "Sets the Top-K value for video classification.",
- },
- ],
- "video_detection": [
- {
- "name": "--nms_thresh",
- "type": float,
- "help": "Sets the NMS threshold for video detection.",
- },
- {
- "name": "--score_thresh",
- "type": float,
- "help": "Sets the confidence threshold for video detection.",
- },
- ],
- "doc_preprocessor": [
- {
- "name": "--use_doc_orientation_classify",
- "type": bool,
- "help": "Determines whether to use document orientation classification.",
- },
- {
- "name": "--use_doc_unwarping",
- "type": bool,
- "help": "Determines whether to use document unwarping.",
- },
- ],
- }
|