paddlex/configs has been updated to paddlex/configs/modules.anomaly_detection updated to image_anomaly_detectionface_recognition updated to face_featuregeneral_recognition updated to image_featuremultilabel_classification updated to image_multilabel_classificationpedestrian_attribute updated to pedestrian_attribute_recognitionstructure_analysis updated to layout_detectiontable_recognition updated to table_structure_recognitiontext_detection_seal updated to seal_text_detectionvehicle_attribute updated to vehicle_attribute_recognitioncreate_model()Parameter Change:
model_name: Only accepts model name.model_dir: Specifies the local directory for inference model files, defaults to None, which means automatically downloading and using the official model.batch_size: Specifies the batch size during inference, defaults to 1.topk.use_hpip and hpi_params: For supporting high-performance inference, not enabled by default.Function Updates:
dict type, but the format has changed: from {'key1': val} to {"res": {'key': val}}, using "res" as the key with the original result data as the value.save_to_xxx() method to save prediction results, if save_path is a directory, the name for stored files has changed. For example, saving in JSON format is {input_file_prefix}_res.json; saving in image format is {input_file_prefix}_res_img.{input_file_extension}.paddlex/pipelines updated to paddlex/configs/pipelines.ts_fc updated to ts_forecastts_ad updated to ts_anomaly_detectionts_cls updated to ts_classification--topk parameter to specify the topk results to return.--serial_number, high-performance inference no longer requires the serial number.create_pipeline()serial_number parameter in high-performance inference hpi_params, high-performance inference no longer requires the serial number.batch_size, thresholds, etc.save_to_xxx() method to save prediction results, if save_path is a directory, the name for stored files has updated.page_index field, which indicates the page number of the current prediction result only when the input sample is a PDF file.text_det_params field in the OCR pipeline, with values for the post-processing settings of the text detection model.Configuration File Format Update:
After updating the content of the pipeline configuration file, it is divided into three parts: pipeline name, pipeline-related parameter settings, and sub-pipelines and sub-modules composition. For example:
pipeline_name: pipeline # Pipeline Name
threshold: 0.5 # Pipeline Inference Related Parameters
SubPipelines: # Sub-pipelines
DocPreprocessor:
pipeline_name: doc_preprocessor
use_doc_unwarping: True # Settings related to the sub-pipeline DocPreprocessor
SubModules: # Sub-modules
TextDetection:
module_name: text_detection
model_name: PP-OCRv4_mobile_det
model_dir: null
limit_side_len: 960 # Settings related to the sub-module TextDetection
limit_type: max
max_side_limit: 4000
thresh: 0.3
box_thresh: 0.6
unclip_ratio: 1.5
OCR.yaml configuration file.New Features:
Updated Features: