
    9ieh                     
   S SK Jr  S SKJrJrJrJrJrJr  S SK	J
r
Jr  S r0 SS\SS.S	\S
S.S\SS.S\SS.S\SS.S\SS.S\SS.S\SS.S\SS.S\SS./
_SS\" \\\\\\4   4      5      SS./_SS\S S./_S!S\S"S./_S#S$\S%S.S&\S'S./_S(S$\S)S.S&\S*S./_S+S$\" \\   5      S%S./_S,S-\S.S.S\S/S.S	\S
S.S0\S1S.S2\S3S.S\SS.S\SS.S\SS.S\SS.S\SS.S\SS./_S4S-\S.S.S5\S6S.S7\S8S.S\S/S.S	\S
S.S0\S1S.S2\S3S.S\SS.S\SS.S\SS.S\SS.S\SS.S\SS./_S9S\S/S.S	\S
S.S0\S1S.S:\" \\\\\\4   4      5      S;S.S<\S=S.S>\" \\\\\\4   \\\4   4      5      S?S.S@\" \\\\\\4   4      5      SAS.SB\SS.SC\SDS.SE\SS.SF\SS.SG\SS.SH\SS./_SIS\SS.S	\S
S.SJ\SKS.S\SS.SL\SMS.SN\SOS.SP\SQS.S:\" \\\\\\4   4      5      S;S.S<\S=S.S>\" \\\\\\4   \\\4   4      5      S?S.S@\" \\\\\\4   4      5      SAS.SB\SS.SC\SDS.SE\SS.SF\SS.SG\SS.SH\SS.S\SS.S\SS.S\SS.S\SS.S\SS.S\SS./_SRS\SS.S	\S
S.SJ\SKS.S\SS.SL\SMS.SN\SOS.SP\SQS.S:\" \\\\\\4   4      5      S;S.S<\S=S.S>\" \\\\\\4   \\\4   4      5      S?S.S@\" \\\\\\4   4      5      SAS.SB\SS.SC\SDS.SE\SS.SF\SS.SG\SS.SH\SS.S\SS.S\SS.S\SS.S\SS.S\SS.S\SS.S-\S.S.S5\S6S.S7\S8S./_SSS\SS.S	\S
S.S0\STS.SU\SVS.S:\" \\\\\\4   4      5      S;S.S<\S=S.S>\" \\\\\\4   \\\4   4      5      S?S.S@\" \\\\\\4   4      5      SAS.SW\SXS.SY\" \\   5      SZS.S[\S\S.S]\" \\   5      S^S.S_\" \\   5      S`S.Sa\" \\   5      SbS.Sc\" \\   5      SdS.Se\" \\   5      SfS./_SgSh_SiSh_SjSh_SkS0\STS.S\SS.S	\S
S.S:\" \\\\\\4   4      5      SlS.S<\SmS.S>\" \\\\\\4   \\\4   4      5      SnS.S@\" \\\\\\4   4      5      SoS./_S\" \\   5      SpS./Sq\" \\\\\\4   \Sr   4      5      SsS./S\" \\\\\\4   4      5      StS./ShS\SuS./Sv\SwS.Sx\SyS./S\SzS.S	\S{S./S\" \\\\\\4   4      5      S|S./S}\" \\\4   5      S~S.S\SS./S\SS.S\" \\\      5      SS./ShShS.Ergh)    )literal_eval)DictListLiteralOptionalTupleUnion)TypeAdapterValidationErrorc                 (   ^  S[         ST 4U 4S jjnU$ )z;Create validator for CLI input conversion and type checking	cli_inputreturnc                   >  [        U 5      n [        T5      R                  U5      $ ! [        [        [        [        [
        4 a  nSU < SU 3n[        U5      UeS nAff = f! [         a  nST SU < S3n[        U5      UeS nAff = f)Nz&Malformed input:
            - Input: z
            - Error: z,Invalid input type:
            - Expected: z
            - Received: z
            )	r   
ValueErrorSyntaxError	TypeErrorMemoryErrorRecursionErrorr
   validate_pythonr   )r   parsedexcerrcli_expected_types       `/var/www/html/land-doc-ocr/venv/lib/python3.13/site-packages/paddlex/utils/pipeline_arguments.py	validatorcustom_type.<locals>.validator   s    	+!),F	+01AA&II KKP 	+] #UC S/s*		+  	+*+ ," &C S/s*	+s,   ) A% A"AA"%
B
/BB
)str)r   r   s   ` r   custom_typer      s    +S +%6 +$     OCRz--use_doc_orientation_classifyz=Determines whether to use document orientation classification)nametypehelpz--use_doc_unwarpingz,Determines whether to use document unwarpingz--use_textline_orientationz4Determines whether to consider text line orientationz--text_det_limit_side_lenz.Sets the side length limit for text detection.z--text_det_limit_typez'Sets the limit type for text detection.z--text_det_threshz&Sets the threshold for text detection.z--text_det_box_threshz*Sets the box threshold for text detection.z--text_det_unclip_ratioz)Sets the unclip ratio for text detection.z--text_rec_score_threshz.Sets the score threshold for text recognition.z--return_word_boxz%Determines whether to return word boxobject_detectionz--thresholdz(Sets the threshold for object detection.image_classificationz--topkz.Sets the Top-K value for image classification.image_multilabel_classificationz7Sets the threshold for image multilabel classification. pedestrian_attribute_recognitionz--det_thresholdz'Sets the threshold for human detection.z--cls_thresholdz8Sets the threshold for pedestrian attribute recognition.vehicle_attribute_recognitionz)Sets the threshold for vehicle detection.z5Sets the threshold for vehicle attribute recognition.human_keypoint_detectiontable_recognitionz--use_table_cells_ocr_resultsz+Determines whether to use cells OCR resultsz0Determines whether to use document preprocessingz--use_layout_detectionz3Determines whether to use document layout detectionz--use_ocr_modelzDetermines whether to use OCRtable_recognition_v2z--use_e2e_wired_table_rec_modelzBDetermines whether to use end-to-end wired table recognition modelz"--use_e2e_wireless_table_rec_modelzEDetermines whether to use end-to-end wireless table recognition modelseal_recognitionz--layout_thresholdz4Determines confidence threshold for layout detectionz--layout_nmsz1Determines whether to use non maximum suppressionz--layout_unclip_ratioz2Determines unclip ratio for layout detection boxesz--layout_merge_bboxes_modezNDetermines merge mode for layout detection bboxes, 'union', 'large' or 'small'z--seal_det_limit_side_lenz--seal_det_limit_typez5Sets the limit type for text detection, 'min', 'max'.z--seal_det_threshz--seal_det_box_threshz--seal_det_unclip_ratioz--seal_rec_score_threshlayout_parsingz--use_general_ocrz%Determines whether to use general ocrz--use_seal_recognitionz*Determines whether to use seal recognitionz--use_table_recognitionz+Determines whether to use table recognitionz--use_formula_recognitionz-Determines whether to use formula recognitionzPP-StructureV3zPaddleOCR-VLz*Determines whether to use layout detectionz--use_chart_recognitionz4Determines whether to use document chart recognitionz--use_queuesz Determines whether to use queuesz--prompt_labelz5Sets the prompt label when not using layout detectionz--format_block_contentz*Determines whether to format block contentz--repetition_penalty z--temperaturez%Temperature parameter for VLLM model.z--top_pzTop-p parameter for VLLM model.z--min_pixelsz'Sets the minimum pixels for VLLM model.z--max_pixelsz*Sets the max_pixels pixels for VLLM model.ts_forecastNts_anomaly_detectionts_classificationformula_recognitionz/Sets the layout threshold for layout detection.z$Determines whether to use layout nmsz2Sets the layout unclip ratio for layout detection.z7Sets the layout merge bboxes mode for layout detection.z-Sets the threshold for instance segmentation.z--target_sizez>Sets the inference image resolution for semantic segmentation.z.Sets the threshold for small object detection.z.Sets the Top-K value for video classification.z--nms_threshz+Sets the NMS threshold for video detection.z--score_threshz2Sets the confidence threshold for video detection.z>Determines whether to use document orientation classification.z-Determines whether to use document unwarping.z0Sets the threshold for rotated object detection.z--thresholdsz2Sets the thresholds for open vocabulary detection.z--promptz.Sets the prompt for open vocabulary detection.z--prompt_typez6Sets the prompt type for open vocabulary segmentation.z1Sets the prompt for open vocabulary segmentation.)instance_segmentationsemantic_segmentationsmall_object_detectionanomaly_detectionvideo_classificationvideo_detectiondoc_preprocessorrotated_object_detectionopen_vocabulary_detectionopen_vocabulary_segmentation3d_bev_detectionmultilingual_speech_recognition)astr   typingr   r   r   r   r   r	   pydanticr
   r   r   boolintr   floatPIPELINE_ARGUMENTS r   r   <module>rH      s    > > 10{	4S	
 *B	
 1J	
 0D	
 ,=	
 (<	
 ,@	
 .?	
 .D	
 (;	
]3{j !ud3:6F/F)G HI>	
k{x D	
y{F &!M	
(G{T '%=	
 &N	
)U{l $%?	
 &K	
&m{D %0=	
!E{R 3A	
 5F	
 *B	
 -I	
 &3	
 0D	
 ,=	
 (<	
 ,@	
 .?	
 .D	
g8S{D 3A	
 6X	
 9[	
 5F	
 *B	
 -I	
 &3	
 0D	
 ,=	
 (<	
 ,@	
 .?	
 .D	
{BE{J 4F	
 *B	
 -I	
 )ud3:6F/F)G HIJ	
 #G	
 ,ueE5L&94U
;KKLM I	
 1sDcN/B)C DEd	
 0D	
 ,K	
 (<	
 ,@	
 .?	
 .D	
DK{T	 4S	
 *B	
 (;	
 1J	
 -@	
 .A	
 0C	
 )ud3:6F/F)G HIJ	
 #G	
 ,ueE5L&94U
;KKLM I	
 1sDcN/B)C DEd	
 0D	
 ,K	
 (<	
 ,@	
 .?	
 .D	
 0D	
 ,=	
 (<	
 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