├── paddlex
├── .version
├── repo_manager
│ └── repos
│ │ └── .gitkeep
├── configs
│ ├── pipelines
│ │ ├── ts_forecast.yaml
│ │ ├── anomaly_detection.yaml
│ │ ├── ts_classification.yaml
│ │ ├── 3d_bev_detection.yaml
│ │ ├── doc_understanding.yaml
│ │ ├── ts_anomaly_detection.yaml
│ │ ├── image_classification.yaml
│ │ ├── video_detection.yaml
│ │ ├── object_detection.yaml
│ │ ├── instance_segmentation.yaml
│ │ ├── semantic_segmentation.yaml
│ │ ├── small_object_detection.yaml
│ │ ├── video_classification.yaml
│ │ ├── rotated_object_detection.yaml
│ │ ├── multilingual_speech_recognition.yaml
│ │ ├── image_multilabel_classification.yaml
│ │ ├── open_vocabulary_detection.yaml
│ │ ├── doc_preprocessor.yaml
│ │ ├── open_vocabulary_segmentation.yaml
│ │ ├── PP-ShiTuV2.yaml
│ │ ├── face_recognition.yaml
│ │ ├── vehicle_attribute_recognition.yaml
│ │ ├── pedestrian_attribute_recognition.yaml
│ │ └── human_keypoint_detection.yaml
│ └── modules
│ │ ├── multilingual_speech_recognition
│ │ ├── whisper_base.yaml
│ │ ├── whisper_large.yaml
│ │ ├── whisper_small.yaml
│ │ ├── whisper_tiny.yaml
│ │ └── whisper_medium.yaml
│ │ ├── image_unwarping
│ │ └── UVDoc.yaml
│ │ ├── chart_parsing
│ │ └── PP-Chart2Table.yaml
│ │ ├── doc_vlm
│ │ ├── PP-DocBee-2B.yaml
│ │ ├── PP-DocBee-7B.yaml
│ │ └── PP-DocBee2-3B.yaml
│ │ ├── open_vocabulary_detection
│ │ ├── GroundingDINO-T.yaml
│ │ └── YOLO-Worldv2-L.yaml
│ │ └── open_vocabulary_segmentation
│ │ ├── SAM-H_point.yaml
│ │ └── SAM-H_box.yaml
├── repo_apis
│ ├── PaddleTS_api
│ │ ├── configs
│ │ │ ├── DLinear.yaml
│ │ │ ├── DLinear_ad.yaml
│ │ │ ├── AutoEncoder_ad.yaml
│ │ │ ├── RLinear.yaml
│ │ │ ├── PatchTST_ad.yaml
│ │ │ ├── Nonstationary.yaml
│ │ │ ├── NLinear.yaml
│ │ │ ├── Nonstationary_ad.yaml
│ │ │ ├── TimesNet_ad.yaml
│ │ │ └── PatchTST.yaml
│ │ ├── ts_base
│ │ │ └── __init__.py
│ │ ├── ts_ad
│ │ │ └── __init__.py
│ │ ├── ts_fc
│ │ │ └── __init__.py
│ │ └── ts_cls
│ │ │ └── __init__.py
│ ├── __init__.py
│ ├── PaddleNLP_api
│ │ └── __init__.py
│ ├── base
│ │ └── utils
│ │ │ └── __init__.py
│ ├── PaddleSeg_api
│ │ ├── __init__.py
│ │ └── seg
│ │ │ └── __init__.py
│ ├── PaddleOCR_api
│ │ ├── table_rec
│ │ │ └── __init__.py
│ │ ├── text_det
│ │ │ └── __init__.py
│ │ ├── text_rec
│ │ │ └── __init__.py
│ │ └── formula_rec
│ │ │ └── __init__.py
│ ├── Paddle3D_api
│ │ └── bev_fusion
│ │ │ └── __init__.py
│ ├── PaddleClas_api
│ │ ├── shitu_rec
│ │ │ ├── __init__.py
│ │ │ └── model.py
│ │ └── __init__.py
│ └── PaddleDetection_api
│ │ └── instance_seg
│ │ └── __init__.py
├── utils
│ ├── __init__.py
│ └── errors
│ │ └── __init__.py
├── inference
│ ├── common
│ │ └── __init__.py
│ ├── utils
│ │ └── __init__.py
│ ├── genai
│ │ ├── configs
│ │ │ └── __init__.py
│ │ ├── backends
│ │ │ └── __init__.py
│ │ ├── chat_templates
│ │ │ └── __init__.py
│ │ ├── constants.py
│ │ └── __init__.py
│ ├── serving
│ │ ├── infra
│ │ │ └── __init__.py
│ │ ├── schemas
│ │ │ ├── __init__.py
│ │ │ └── shared
│ │ │ │ └── __init__.py
│ │ ├── basic_serving
│ │ │ └── _pipeline_apps
│ │ │ │ └── _common
│ │ │ │ └── __init__.py
│ │ └── __init__.py
│ ├── models
│ │ ├── common
│ │ │ ├── vlm
│ │ │ │ ├── __init__.py
│ │ │ │ └── transformers
│ │ │ │ │ └── __init__.py
│ │ │ └── ts
│ │ │ │ └── __init__.py
│ │ ├── doc_vlm
│ │ │ ├── modeling
│ │ │ │ └── paddleocr_vl
│ │ │ │ │ ├── _refined_recompute
│ │ │ │ │ └── __init__.py
│ │ │ │ │ └── __init__.py
│ │ │ ├── __init__.py
│ │ │ └── processors
│ │ │ │ └── paddleocr_vl
│ │ │ │ └── __init__.py
│ │ ├── base
│ │ │ ├── __init__.py
│ │ │ └── predictor
│ │ │ │ └── __init__.py
│ │ ├── anomaly_detection
│ │ │ └── __init__.py
│ │ ├── image_unwarping
│ │ │ └── __init__.py
│ │ ├── keypoint_detection
│ │ │ └── __init__.py
│ │ ├── object_detection
│ │ │ └── __init__.py
│ │ ├── text_detection
│ │ │ └── __init__.py
│ │ ├── ts_classification
│ │ │ └── __init__.py
│ │ ├── ts_forecasting
│ │ │ └── __init__.py
│ │ ├── face_feature
│ │ │ └── __init__.py
│ │ ├── image_classification
│ │ │ └── __init__.py
│ │ ├── image_feature
│ │ │ └── __init__.py
│ │ ├── m_3d_bev_detection
│ │ │ └── __init__.py
│ │ ├── semantic_segmentation
│ │ │ └── __init__.py
│ │ ├── text_recognition
│ │ │ └── __init__.py
│ │ ├── ts_anomaly_detection
│ │ │ └── __init__.py
│ │ ├── video_detection
│ │ │ └── __init__.py
│ │ ├── formula_recognition
│ │ │ └── __init__.py
│ │ ├── instance_segmentation
│ │ │ └── __init__.py
│ │ ├── open_vocabulary_detection
│ │ │ └── __init__.py
│ │ ├── table_structure_recognition
│ │ │ └── __init__.py
│ │ ├── video_classification
│ │ │ └── __init__.py
│ │ ├── image_multilabel_classification
│ │ │ └── __init__.py
│ │ ├── open_vocabulary_segmentation
│ │ │ ├── __init__.py
│ │ │ ├── results
│ │ │ │ └── __init__.py
│ │ │ └── processors
│ │ │ │ └── __init__.py
│ │ └── multilingual_speech_recognition
│ │ │ └── __init__.py
│ └── pipelines
│ │ ├── components
│ │ ├── utils
│ │ │ └── __init__.py
│ │ ├── chat_server
│ │ │ └── __init__.py
│ │ └── retriever
│ │ │ └── __init__.py
│ │ ├── ocr
│ │ └── __init__.py
│ │ ├── pp_shitu_v2
│ │ └── __init__.py
│ │ ├── ts_forecasting
│ │ └── __init__.py
│ │ ├── face_recognition
│ │ └── __init__.py
│ │ ├── m_3d_bev_detection
│ │ └── __init__.py
│ │ ├── paddleocr_vl
│ │ └── __init__.py
│ │ ├── ts_classification
│ │ └── __init__.py
│ │ ├── doc_preprocessor
│ │ └── __init__.py
│ │ ├── object_detection
│ │ └── __init__.py
│ │ ├── seal_recognition
│ │ └── __init__.py
│ │ ├── video_detection
│ │ └── __init__.py
│ │ ├── anomaly_detection
│ │ └── __init__.py
│ │ ├── doc_understanding
│ │ └── __init__.py
│ │ ├── keypoint_detection
│ │ └── __init__.py
│ │ ├── pp_doctranslation
│ │ └── __init__.py
│ │ ├── ts_anomaly_detection
│ │ └── __init__.py
│ │ ├── formula_recognition
│ │ └── __init__.py
│ │ ├── image_classification
│ │ └── __init__.py
│ │ ├── instance_segmentation
│ │ └── __init__.py
│ │ ├── semantic_segmentation
│ │ └── __init__.py
│ │ ├── video_classification
│ │ └── __init__.py
│ │ ├── layout_parsing
│ │ ├── xycut_enhanced
│ │ │ └── __init__.py
│ │ └── __init__.py
│ │ ├── rotated_object_detection
│ │ └── __init__.py
│ │ ├── small_object_detection
│ │ └── __init__.py
│ │ ├── open_vocabulary_detection
│ │ └── __init__.py
│ │ ├── open_vocabulary_segmentation
│ │ └── __init__.py
│ │ ├── image_multilabel_classification
│ │ └── __init__.py
│ │ ├── multilingual_speech_recognition
│ │ └── __init__.py
│ │ ├── attribute_recognition
│ │ └── __init__.py
│ │ ├── pp_chatocr
│ │ └── __init__.py
│ │ └── table_recognition
│ │ └── __init__.py
├── modules
│ ├── base
│ │ ├── utils
│ │ │ └── __init__.py
│ │ └── dataset_checker
│ │ │ └── __init__.py
│ ├── image_unwarping
│ │ ├── __init__.py
│ │ └── model_list.py
│ ├── face_recognition
│ │ ├── dataset_checker
│ │ │ └── dataset_src
│ │ │ │ ├── utils
│ │ │ │ └── __init__.py
│ │ │ │ └── __init__.py
│ │ └── model_list.py
│ ├── object_detection
│ │ └── dataset_checker
│ │ │ └── dataset_src
│ │ │ └── utils
│ │ │ └── __init__.py
│ ├── video_detection
│ │ ├── model_list.py
│ │ └── dataset_checker
│ │ │ └── dataset_src
│ │ │ └── __init__.py
│ ├── anomaly_detection
│ │ ├── dataset_checker
│ │ │ └── dataset_src
│ │ │ │ └── utils
│ │ │ │ └── __init__.py
│ │ └── model_list.py
│ ├── general_recognition
│ │ ├── dataset_checker
│ │ │ └── dataset_src
│ │ │ │ └── utils
│ │ │ │ └── __init__.py
│ │ └── model_list.py
│ ├── image_classification
│ │ └── dataset_checker
│ │ │ └── dataset_src
│ │ │ └── utils
│ │ │ └── __init__.py
│ ├── instance_segmentation
│ │ └── dataset_checker
│ │ │ └── dataset_src
│ │ │ └── utils
│ │ │ └── __init__.py
│ ├── keypoint_detection
│ │ ├── dataset_checker
│ │ │ └── dataset_src
│ │ │ │ ├── utils
│ │ │ │ └── __init__.py
│ │ │ │ └── __init__.py
│ │ └── model_list.py
│ ├── semantic_segmentation
│ │ └── dataset_checker
│ │ │ └── dataset_src
│ │ │ └── utils
│ │ │ └── __init__.py
│ ├── multilabel_classification
│ │ └── dataset_checker
│ │ │ └── dataset_src
│ │ │ └── utils
│ │ │ └── __init__.py
│ ├── m_3d_bev_detection
│ │ ├── model_list.py
│ │ └── dataset_checker
│ │ │ └── dataset_src
│ │ │ └── __init__.py
│ ├── ts_classification
│ │ └── model_list.py
│ ├── open_vocabulary_detection
│ │ └── model_list.py
│ ├── open_vocabulary_segmentation
│ │ └── model_list.py
│ └── table_recognition
│ │ └── model_list.py
└── constants.py
├── .github
├── pull_request_template.md
└── ISSUE_TEMPLATE
│ ├── 4_gui.md
│ ├── 1_data.md
│ ├── 6_hardware_contribute.md
│ └── 5_other.md
├── deploy
├── hps
│ ├── sdk
│ │ ├── tests
│ │ │ └── .gitkeep
│ │ ├── .gitignore
│ │ ├── pipelines
│ │ │ ├── PP-ShiTuV2
│ │ │ │ ├── server
│ │ │ │ │ ├── .isort.cfg
│ │ │ │ │ ├── model_repo
│ │ │ │ │ │ └── shitu-index-remove
│ │ │ │ │ │ │ └── config.pbtxt
│ │ │ │ │ ├── pipeline_config.yaml
│ │ │ │ │ └── shared_mods
│ │ │ │ │ │ └── common
│ │ │ │ │ │ └── __init__.py
│ │ │ │ └── client
│ │ │ │ │ └── requirements.txt
│ │ │ ├── face_recognition
│ │ │ │ ├── server
│ │ │ │ │ ├── .isort.cfg
│ │ │ │ │ ├── model_repo
│ │ │ │ │ │ └── face-recognition-index-remove
│ │ │ │ │ │ │ └── config.pbtxt
│ │ │ │ │ ├── pipeline_config.yaml
│ │ │ │ │ └── shared_mods
│ │ │ │ │ │ └── common
│ │ │ │ │ │ └── __init__.py
│ │ │ │ └── client
│ │ │ │ │ └── requirements.txt
│ │ │ ├── OCR
│ │ │ │ ├── client
│ │ │ │ │ └── requirements.txt
│ │ │ │ └── server
│ │ │ │ │ └── model_repo
│ │ │ │ │ └── ocr
│ │ │ │ │ ├── config_cpu.pbtxt
│ │ │ │ │ └── config_gpu.pbtxt
│ │ │ ├── PP-StructureV3
│ │ │ │ ├── client
│ │ │ │ │ └── requirements.txt
│ │ │ │ └── server
│ │ │ │ │ └── model_repo
│ │ │ │ │ └── layout-parsing
│ │ │ │ │ ├── config_cpu.pbtxt
│ │ │ │ │ └── config_gpu.pbtxt
│ │ │ ├── PaddleOCR-VL
│ │ │ │ ├── client
│ │ │ │ │ └── requirements.txt
│ │ │ │ └── server
│ │ │ │ │ └── model_repo
│ │ │ │ │ └── layout-parsing
│ │ │ │ │ ├── config_cpu.pbtxt
│ │ │ │ │ └── config_gpu.pbtxt
│ │ │ ├── layout_parsing
│ │ │ │ └── client
│ │ │ │ │ └── requirements.txt
│ │ │ ├── ts_forecast
│ │ │ │ ├── client
│ │ │ │ │ └── requirements.txt
│ │ │ │ └── server
│ │ │ │ │ └── pipeline_config.yaml
│ │ │ ├── 3d_bev_detection
│ │ │ │ ├── client
│ │ │ │ │ └── requirements.txt
│ │ │ │ └── server
│ │ │ │ │ └── pipeline_config.yaml
│ │ │ ├── PP-ChatOCRv3-doc
│ │ │ │ ├── client
│ │ │ │ │ └── requirements.txt
│ │ │ │ └── server
│ │ │ │ │ └── model_repo
│ │ │ │ │ ├── chatocr-chat
│ │ │ │ │ └── config.pbtxt
│ │ │ │ │ └── chatocr-vector
│ │ │ │ │ └── config.pbtxt
│ │ │ ├── PP-ChatOCRv4-doc
│ │ │ │ ├── client
│ │ │ │ │ └── requirements.txt
│ │ │ │ └── server
│ │ │ │ │ └── model_repo
│ │ │ │ │ ├── chatocr-chat
│ │ │ │ │ └── config.pbtxt
│ │ │ │ │ ├── chatocr-mllm
│ │ │ │ │ └── config.pbtxt
│ │ │ │ │ └── chatocr-vector
│ │ │ │ │ └── config.pbtxt
│ │ │ ├── PP-DocTranslation
│ │ │ │ ├── client
│ │ │ │ │ └── requirements.txt
│ │ │ │ └── server
│ │ │ │ │ └── model_repo
│ │ │ │ │ └── doctrans-translate
│ │ │ │ │ └── config.pbtxt
│ │ │ ├── anomaly_detection
│ │ │ │ ├── client
│ │ │ │ │ └── requirements.txt
│ │ │ │ └── server
│ │ │ │ │ └── pipeline_config.yaml
│ │ │ ├── doc_preprocessor
│ │ │ │ ├── client
│ │ │ │ │ └── requirements.txt
│ │ │ │ └── server
│ │ │ │ │ └── pipeline_config.yaml
│ │ │ ├── doc_understanding
│ │ │ │ ├── client
│ │ │ │ │ └── requirements.txt
│ │ │ │ └── server
│ │ │ │ │ └── pipeline_config.yaml
│ │ │ ├── formula_recognition
│ │ │ │ └── client
│ │ │ │ │ └── requirements.txt
│ │ │ ├── object_detection
│ │ │ │ ├── client
│ │ │ │ │ └── requirements.txt
│ │ │ │ └── server
│ │ │ │ │ └── pipeline_config.yaml
│ │ │ ├── seal_recognition
│ │ │ │ └── client
│ │ │ │ │ └── requirements.txt
│ │ │ ├── table_recognition
│ │ │ │ └── client
│ │ │ │ │ └── requirements.txt
│ │ │ ├── ts_classification
│ │ │ │ ├── client
│ │ │ │ │ └── requirements.txt
│ │ │ │ └── server
│ │ │ │ │ └── pipeline_config.yaml
│ │ │ ├── video_detection
│ │ │ │ ├── client
│ │ │ │ │ └── requirements.txt
│ │ │ │ └── server
│ │ │ │ │ └── pipeline_config.yaml
│ │ │ ├── human_keypoint_detection
│ │ │ │ ├── client
│ │ │ │ │ └── requirements.txt
│ │ │ │ └── server
│ │ │ │ │ └── pipeline_config.yaml
│ │ │ ├── image_classification
│ │ │ │ ├── client
│ │ │ │ │ └── requirements.txt
│ │ │ │ └── server
│ │ │ │ │ └── pipeline_config.yaml
│ │ │ ├── instance_segmentation
│ │ │ │ ├── client
│ │ │ │ │ └── requirements.txt
│ │ │ │ └── server
│ │ │ │ │ └── pipeline_config.yaml
│ │ │ ├── rotated_object_detection
│ │ │ │ ├── client
│ │ │ │ │ └── requirements.txt
│ │ │ │ └── server
│ │ │ │ │ └── pipeline_config.yaml
│ │ │ ├── semantic_segmentation
│ │ │ │ ├── client
│ │ │ │ │ └── requirements.txt
│ │ │ │ └── server
│ │ │ │ │ └── pipeline_config.yaml
│ │ │ ├── small_object_detection
│ │ │ │ ├── client
│ │ │ │ │ └── requirements.txt
│ │ │ │ └── server
│ │ │ │ │ └── pipeline_config.yaml
│ │ │ ├── table_recognition_v2
│ │ │ │ └── client
│ │ │ │ │ └── requirements.txt
│ │ │ ├── ts_anomaly_detection
│ │ │ │ ├── client
│ │ │ │ │ └── requirements.txt
│ │ │ │ └── server
│ │ │ │ │ └── pipeline_config.yaml
│ │ │ ├── video_classification
│ │ │ │ ├── client
│ │ │ │ │ └── requirements.txt
│ │ │ │ └── server
│ │ │ │ │ └── pipeline_config.yaml
│ │ │ ├── open_vocabulary_detection
│ │ │ │ ├── client
│ │ │ │ │ └── requirements.txt
│ │ │ │ └── server
│ │ │ │ │ └── pipeline_config.yaml
│ │ │ ├── open_vocabulary_segmentation
│ │ │ │ ├── client
│ │ │ │ │ └── requirements.txt
│ │ │ │ └── server
│ │ │ │ │ └── pipeline_config.yaml
│ │ │ ├── vehicle_attribute_recognition
│ │ │ │ ├── client
│ │ │ │ │ └── requirements.txt
│ │ │ │ └── server
│ │ │ │ │ └── pipeline_config.yaml
│ │ │ ├── image_multilabel_classification
│ │ │ │ ├── client
│ │ │ │ │ └── requirements.txt
│ │ │ │ └── server
│ │ │ │ │ └── pipeline_config.yaml
│ │ │ ├── multilingual_speech_recognition
│ │ │ │ ├── client
│ │ │ │ │ └── requirements.txt
│ │ │ │ └── server
│ │ │ │ │ └── pipeline_config.yaml
│ │ │ └── pedestrian_attribute_recognition
│ │ │ │ ├── client
│ │ │ │ └── requirements.txt
│ │ │ │ └── server
│ │ │ │ └── pipeline_config.yaml
│ │ ├── paddlex-hps-client
│ │ │ ├── scripts
│ │ │ │ └── build_wheel.sh
│ │ │ ├── requirements.txt
│ │ │ ├── pyproject.toml
│ │ │ └── src
│ │ │ │ └── paddlex_hps_client
│ │ │ │ └── constants.py
│ │ ├── scripts
│ │ │ ├── sync_configs.sh
│ │ │ ├── _assemble.sh
│ │ │ └── assemble.sh
│ │ └── common
│ │ │ ├── config_cpu.pbtxt
│ │ │ └── config_gpu.pbtxt
│ └── server_env
│ │ ├── cpu_version.txt
│ │ ├── gpu_version.txt
│ │ ├── requirements
│ │ ├── cpu_dev.in
│ │ ├── gpu_dev.in
│ │ ├── cpu.in
│ │ ├── gpu.in
│ │ ├── app.in
│ │ ├── gpu_hpi.in
│ │ ├── cpu_hpi.in
│ │ ├── cpu_dev.txt
│ │ └── gpu_dev.txt
│ │ ├── scripts
│ │ ├── prepare_deployment_images.sh
│ │ ├── remove_images.sh
│ │ ├── freeze_requirements.sh
│ │ ├── tag_and_push_images.sh
│ │ └── prepare_rc_images.sh
│ │ └── paddlex-hps-server
│ │ ├── pyproject.toml
│ │ └── src
│ │ └── paddlex_hps_server
│ │ └── constants.py
└── ultra-infer
│ ├── VERSION_NUMBER
│ ├── ultra_infer
│ └── CMakeLists.txt
│ ├── python
│ ├── requirements.txt
│ ├── scripts
│ │ ├── build_gpu.sh
│ │ └── __init__.py
│ ├── __init__.py
│ └── ultra_infer
│ │ ├── vision
│ │ ├── ocr
│ │ │ ├── ppocr
│ │ │ │ └── utils
│ │ │ │ │ ├── __init__.py
│ │ │ │ │ └── ser_vi_layoutxlm
│ │ │ │ │ └── __init__.py
│ │ │ └── __init__.py
│ │ ├── facedet
│ │ │ └── contrib
│ │ │ │ └── __init__.py
│ │ ├── headpose
│ │ │ ├── contrib
│ │ │ │ └── __init__.py
│ │ │ └── __init__.py
│ │ ├── matting
│ │ │ └── contrib
│ │ │ │ └── __init__.py
│ │ ├── detection
│ │ │ └── contrib
│ │ │ │ ├── __init__.py
│ │ │ │ └── rkyolo
│ │ │ │ └── __init__.py
│ │ ├── facealign
│ │ │ └── contrib
│ │ │ │ └── __init__.py
│ │ ├── generation
│ │ │ ├── contrib
│ │ │ │ └── __init__.py
│ │ │ └── __init__.py
│ │ ├── perception
│ │ │ └── paddle3d
│ │ │ │ └── __init__.py
│ │ ├── classification
│ │ │ └── contrib
│ │ │ │ └── __init__.py
│ │ ├── faceid
│ │ │ ├── __init__.py
│ │ │ └── contrib
│ │ │ │ └── __init__.py
│ │ ├── segmentation
│ │ │ └── __init__.py
│ │ ├── sr
│ │ │ └── __init__.py
│ │ └── keypointdetection
│ │ │ └── __init__.py
│ │ ├── utils
│ │ └── __init__.py
│ │ ├── py_only
│ │ ├── ts
│ │ │ └── __init__.py
│ │ ├── vision
│ │ │ └── __init__.py
│ │ └── __init__.py
│ │ ├── ts
│ │ ├── classification
│ │ │ └── __init__.py
│ │ ├── forecasting
│ │ │ └── __init__.py
│ │ └── anomalydetection
│ │ │ └── __init__.py
│ │ └── pipeline
│ │ └── __init__.py
│ ├── cmake
│ ├── sophgo.cmake
│ └── UltraInferConfig.cmake
│ ├── cpack
│ ├── rpm_postrm.in
│ └── debian_prerm.in
│ ├── scripts
│ ├── clean_sdk.sh
│ ├── __init__.py
│ └── patch_lib.sh
│ └── UltraInferCSharp.cmake.in
├── docs
├── practical_tutorials
│ └── high_performance_npu_tutorial.en.md
└── data_annotations
│ ├── cv_modules
│ ├── keypoint_detection.md
│ └── keypoint_detection.en.md
│ └── time_series_modules
│ ├── time_series_anomaly_detection.md
│ ├── time_series_forecasting.md
│ ├── time_series_classification.md
│ └── time_series_anomaly_detection.en.md
├── .style.yapf
├── overrides
└── main.html
├── .precommit
└── clang_format.hook
└── main.py
/paddlex/.version:
--------------------------------------------------------------------------------
1 | 3.3.12
2 |
--------------------------------------------------------------------------------
/.github/pull_request_template.md:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/tests/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/.gitignore:
--------------------------------------------------------------------------------
1 | /output/
2 |
--------------------------------------------------------------------------------
/paddlex/repo_manager/repos/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/deploy/ultra-infer/VERSION_NUMBER:
--------------------------------------------------------------------------------
1 | 1.2.0
2 |
--------------------------------------------------------------------------------
/deploy/hps/server_env/cpu_version.txt:
--------------------------------------------------------------------------------
1 | 0.3.11
2 |
--------------------------------------------------------------------------------
/deploy/hps/server_env/gpu_version.txt:
--------------------------------------------------------------------------------
1 | 0.3.12
2 |
--------------------------------------------------------------------------------
/deploy/hps/server_env/requirements/cpu_dev.in:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/deploy/hps/server_env/requirements/gpu_dev.in:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/deploy/ultra-infer/ultra_infer/CMakeLists.txt:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/docs/practical_tutorials/high_performance_npu_tutorial.en.md:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/.style.yapf:
--------------------------------------------------------------------------------
1 | [style]
2 | based_on_style = pep8
3 | column_limit = 80
4 |
--------------------------------------------------------------------------------
/docs/data_annotations/cv_modules/keypoint_detection.md:
--------------------------------------------------------------------------------
1 | Coming soon...
2 |
--------------------------------------------------------------------------------
/docs/data_annotations/cv_modules/keypoint_detection.en.md:
--------------------------------------------------------------------------------
1 | Coming soon...
2 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/PP-ShiTuV2/server/.isort.cfg:
--------------------------------------------------------------------------------
1 | [settings]
2 | profile=black
3 | known_first_party=common
4 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/face_recognition/server/.isort.cfg:
--------------------------------------------------------------------------------
1 | [settings]
2 | profile=black
3 | known_first_party=common
4 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/paddlex-hps-client/scripts/build_wheel.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | python -m pip wheel -w wheels --no-deps .
4 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/OCR/client/requirements.txt:
--------------------------------------------------------------------------------
1 | # paddlex-hps-client
2 | protobuf == 3.19.6
3 | tritonclient [grpc] == 2.15
4 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/PP-ShiTuV2/client/requirements.txt:
--------------------------------------------------------------------------------
1 | # paddlex-hps-client
2 | protobuf == 3.19.6
3 | tritonclient [grpc] == 2.15
4 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/PP-StructureV3/client/requirements.txt:
--------------------------------------------------------------------------------
1 | # paddlex-hps-client
2 | protobuf == 3.19.6
3 | tritonclient [grpc] == 2.15
4 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/PaddleOCR-VL/client/requirements.txt:
--------------------------------------------------------------------------------
1 | # paddlex-hps-client
2 | protobuf == 3.19.6
3 | tritonclient [grpc] == 2.15
4 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/layout_parsing/client/requirements.txt:
--------------------------------------------------------------------------------
1 | # paddlex-hps-client
2 | protobuf == 3.19.6
3 | tritonclient [grpc] == 2.15
4 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/ts_forecast/client/requirements.txt:
--------------------------------------------------------------------------------
1 | # paddlex-hps-client
2 | protobuf == 3.19.6
3 | tritonclient [grpc] == 2.15
4 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/3d_bev_detection/client/requirements.txt:
--------------------------------------------------------------------------------
1 | # paddlex-hps-client
2 | protobuf == 3.19.6
3 | tritonclient [grpc] == 2.15
4 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/PP-ChatOCRv3-doc/client/requirements.txt:
--------------------------------------------------------------------------------
1 | # paddlex-hps-client
2 | protobuf == 3.19.6
3 | tritonclient [grpc] == 2.15
4 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/PP-ChatOCRv4-doc/client/requirements.txt:
--------------------------------------------------------------------------------
1 | # paddlex-hps-client
2 | protobuf == 3.19.6
3 | tritonclient [grpc] == 2.15
4 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/PP-DocTranslation/client/requirements.txt:
--------------------------------------------------------------------------------
1 | # paddlex-hps-client
2 | protobuf == 3.19.6
3 | tritonclient [grpc] == 2.15
4 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/anomaly_detection/client/requirements.txt:
--------------------------------------------------------------------------------
1 | # paddlex-hps-client
2 | protobuf == 3.19.6
3 | tritonclient [grpc] == 2.15
4 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/doc_preprocessor/client/requirements.txt:
--------------------------------------------------------------------------------
1 | # paddlex-hps-client
2 | protobuf == 3.19.6
3 | tritonclient [grpc] == 2.15
4 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/doc_understanding/client/requirements.txt:
--------------------------------------------------------------------------------
1 | # paddlex-hps-client
2 | protobuf == 3.19.6
3 | tritonclient [grpc] == 2.15
4 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/face_recognition/client/requirements.txt:
--------------------------------------------------------------------------------
1 | # paddlex-hps-client
2 | protobuf == 3.19.6
3 | tritonclient [grpc] == 2.15
4 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/formula_recognition/client/requirements.txt:
--------------------------------------------------------------------------------
1 | # paddlex-hps-client
2 | protobuf == 3.19.6
3 | tritonclient [grpc] == 2.15
4 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/object_detection/client/requirements.txt:
--------------------------------------------------------------------------------
1 | # paddlex-hps-client
2 | protobuf == 3.19.6
3 | tritonclient [grpc] == 2.15
4 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/seal_recognition/client/requirements.txt:
--------------------------------------------------------------------------------
1 | # paddlex-hps-client
2 | protobuf == 3.19.6
3 | tritonclient [grpc] == 2.15
4 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/table_recognition/client/requirements.txt:
--------------------------------------------------------------------------------
1 | # paddlex-hps-client
2 | protobuf == 3.19.6
3 | tritonclient [grpc] == 2.15
4 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/ts_classification/client/requirements.txt:
--------------------------------------------------------------------------------
1 | # paddlex-hps-client
2 | protobuf == 3.19.6
3 | tritonclient [grpc] == 2.15
4 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/video_detection/client/requirements.txt:
--------------------------------------------------------------------------------
1 | # paddlex-hps-client
2 | protobuf == 3.19.6
3 | tritonclient [grpc] == 2.15
4 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/human_keypoint_detection/client/requirements.txt:
--------------------------------------------------------------------------------
1 | # paddlex-hps-client
2 | protobuf == 3.19.6
3 | tritonclient [grpc] == 2.15
4 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/image_classification/client/requirements.txt:
--------------------------------------------------------------------------------
1 | # paddlex-hps-client
2 | protobuf == 3.19.6
3 | tritonclient [grpc] == 2.15
4 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/instance_segmentation/client/requirements.txt:
--------------------------------------------------------------------------------
1 | # paddlex-hps-client
2 | protobuf == 3.19.6
3 | tritonclient [grpc] == 2.15
4 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/rotated_object_detection/client/requirements.txt:
--------------------------------------------------------------------------------
1 | # paddlex-hps-client
2 | protobuf == 3.19.6
3 | tritonclient [grpc] == 2.15
4 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/semantic_segmentation/client/requirements.txt:
--------------------------------------------------------------------------------
1 | # paddlex-hps-client
2 | protobuf == 3.19.6
3 | tritonclient [grpc] == 2.15
4 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/small_object_detection/client/requirements.txt:
--------------------------------------------------------------------------------
1 | # paddlex-hps-client
2 | protobuf == 3.19.6
3 | tritonclient [grpc] == 2.15
4 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/table_recognition_v2/client/requirements.txt:
--------------------------------------------------------------------------------
1 | # paddlex-hps-client
2 | protobuf == 3.19.6
3 | tritonclient [grpc] == 2.15
4 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/ts_anomaly_detection/client/requirements.txt:
--------------------------------------------------------------------------------
1 | # paddlex-hps-client
2 | protobuf == 3.19.6
3 | tritonclient [grpc] == 2.15
4 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/video_classification/client/requirements.txt:
--------------------------------------------------------------------------------
1 | # paddlex-hps-client
2 | protobuf == 3.19.6
3 | tritonclient [grpc] == 2.15
4 |
--------------------------------------------------------------------------------
/deploy/ultra-infer/python/requirements.txt:
--------------------------------------------------------------------------------
1 | wheel
2 | requests
3 | tqdm
4 | numpy
5 | # Compatible with paddlex
6 | opencv-contrib-python
7 | pyyaml
8 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/paddlex-hps-client/requirements.txt:
--------------------------------------------------------------------------------
1 | numpy >= 1.24
2 | # XXX: Not sure about the backward compatibility
3 | tritonclient [grpc] >= 2.15.0
4 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/open_vocabulary_detection/client/requirements.txt:
--------------------------------------------------------------------------------
1 | # paddlex-hps-client
2 | protobuf == 3.19.6
3 | tritonclient [grpc] == 2.15
4 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/open_vocabulary_segmentation/client/requirements.txt:
--------------------------------------------------------------------------------
1 | # paddlex-hps-client
2 | protobuf == 3.19.6
3 | tritonclient [grpc] == 2.15
4 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/vehicle_attribute_recognition/client/requirements.txt:
--------------------------------------------------------------------------------
1 | # paddlex-hps-client
2 | protobuf == 3.19.6
3 | tritonclient [grpc] == 2.15
4 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/image_multilabel_classification/client/requirements.txt:
--------------------------------------------------------------------------------
1 | # paddlex-hps-client
2 | protobuf == 3.19.6
3 | tritonclient [grpc] == 2.15
4 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/multilingual_speech_recognition/client/requirements.txt:
--------------------------------------------------------------------------------
1 | # paddlex-hps-client
2 | protobuf == 3.19.6
3 | tritonclient [grpc] == 2.15
4 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/pedestrian_attribute_recognition/client/requirements.txt:
--------------------------------------------------------------------------------
1 | # paddlex-hps-client
2 | protobuf == 3.19.6
3 | tritonclient [grpc] == 2.15
4 |
--------------------------------------------------------------------------------
/deploy/hps/server_env/requirements/cpu.in:
--------------------------------------------------------------------------------
1 | paddlepaddle @ https://paddle-whl.bj.bcebos.com/stable/cpu/paddlepaddle/paddlepaddle-3.2.1-cp310-cp310-linux_x86_64.whl
2 |
--------------------------------------------------------------------------------
/deploy/hps/server_env/requirements/gpu.in:
--------------------------------------------------------------------------------
1 | paddlepaddle-gpu @ https://paddle-model-ecology.bj.bcebos.com/paddlex/PaddleX3.0/deploy/deps/paddlepaddle/paddlepaddle_gpu-3.2.1%2Bfc-cp310-cp310-linux_x86_64.whl
2 |
--------------------------------------------------------------------------------
/paddlex/configs/pipelines/ts_forecast.yaml:
--------------------------------------------------------------------------------
1 | pipeline_name: ts_forecast
2 |
3 | SubModules:
4 | TSForecast:
5 | module_name: ts_forecast
6 | model_name: DLinear
7 | model_dir: null
8 | batch_size: 1
9 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/scripts/sync_configs.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | for file in ../../../paddlex/configs/pipelines/*.yaml; do
4 | cp "${file}" "pipelines/$(basename ${file%.yaml})/server/pipeline_config.yaml"
5 | done
6 |
--------------------------------------------------------------------------------
/deploy/hps/server_env/requirements/app.in:
--------------------------------------------------------------------------------
1 | faiss-cpu >= 1.8
2 | numpy >= 1.24
3 | # HACK: For compatibility with `paddlex`
4 | opencv-contrib-python == 4.10.0.84
5 | pycocotools >= 2
6 | pydantic >= 2
7 | typing-extensions >= 4.11
8 |
--------------------------------------------------------------------------------
/deploy/hps/server_env/scripts/prepare_deployment_images.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | for device_type in 'gpu' 'cpu'; do
4 | bash scripts/build_deployment_image.sh -k "${device_type}" -t "latest-${device_type}" "$@"
5 | done
6 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/scripts/_assemble.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | python scripts/assemble.py "$@"
4 |
5 | # TODO: Better way to handle the permission problem
6 | if [ -d output ]; then
7 | chown -R "${OUID}":"${OGID}" output
8 | fi
9 |
--------------------------------------------------------------------------------
/overrides/main.html:
--------------------------------------------------------------------------------
1 | {% extends "base.html" %}
2 |
3 | {% block outdated %}
4 | You're not viewing the latest version.
5 |
6 | Click here to go to latest.
7 |
8 | {% endblock %}
9 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/ts_forecast/server/pipeline_config.yaml:
--------------------------------------------------------------------------------
1 | pipeline_name: ts_forecast
2 |
3 | SubModules:
4 | TSForecast:
5 | module_name: ts_forecast
6 | model_name: DLinear
7 | model_dir: null
8 | batch_size: 1
9 |
--------------------------------------------------------------------------------
/paddlex/configs/pipelines/anomaly_detection.yaml:
--------------------------------------------------------------------------------
1 | pipeline_name: anomaly_detection
2 |
3 | SubModules:
4 | AnomalyDetection:
5 | module_name: anomaly_detection
6 | model_name: STFPM
7 | model_dir: null
8 | batch_size: 1
9 |
--------------------------------------------------------------------------------
/paddlex/configs/pipelines/ts_classification.yaml:
--------------------------------------------------------------------------------
1 | pipeline_name: ts_classification
2 |
3 | SubModules:
4 | TSClassification:
5 | module_name: ts_classification
6 | model_name: TimesNet_cls
7 | model_dir: null
8 | batch_size: 1
9 |
--------------------------------------------------------------------------------
/paddlex/configs/pipelines/3d_bev_detection.yaml:
--------------------------------------------------------------------------------
1 |
2 | pipeline_name: 3d_bev_detection
3 |
4 | SubModules:
5 | 3DBEVDetection:
6 | module_name: 3d_bev_detection
7 | model_name: BEVFusion
8 | model_dir: null
9 | batch_size: 1
10 |
--------------------------------------------------------------------------------
/paddlex/configs/pipelines/doc_understanding.yaml:
--------------------------------------------------------------------------------
1 |
2 | pipeline_name: doc_understanding
3 |
4 | SubModules:
5 | DocUnderstanding:
6 | module_name: doc_vlm
7 | model_name: PP-DocBee2-3B
8 | model_dir: null
9 | batch_size: 1
10 |
--------------------------------------------------------------------------------
/paddlex/configs/pipelines/ts_anomaly_detection.yaml:
--------------------------------------------------------------------------------
1 | pipeline_name: ts_anomaly_detection
2 |
3 | SubModules:
4 | TSAnomalyDetection:
5 | module_name: ts_anomaly_detection
6 | model_name: DLinear_ad
7 | model_dir: null
8 | batch_size: 1
9 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/anomaly_detection/server/pipeline_config.yaml:
--------------------------------------------------------------------------------
1 | pipeline_name: anomaly_detection
2 |
3 | SubModules:
4 | AnomalyDetection:
5 | module_name: anomaly_detection
6 | model_name: STFPM
7 | model_dir: null
8 | batch_size: 1
9 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/ts_classification/server/pipeline_config.yaml:
--------------------------------------------------------------------------------
1 | pipeline_name: ts_classification
2 |
3 | SubModules:
4 | TSClassification:
5 | module_name: ts_classification
6 | model_name: TimesNet_cls
7 | model_dir: null
8 | batch_size: 1
9 |
--------------------------------------------------------------------------------
/deploy/hps/server_env/requirements/gpu_hpi.in:
--------------------------------------------------------------------------------
1 | paddle2onnx == 2.0.2rc3
2 | ultra-infer-gpu-python @ https://paddle-model-ecology.bj.bcebos.com/paddlex/PaddleX3.0/deploy/hpi/ultra_infer/releases/new_hpi/v1.2.0/ultra_infer_gpu_python-1.2.0-cp310-cp310-linux_x86_64.whl
3 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/3d_bev_detection/server/pipeline_config.yaml:
--------------------------------------------------------------------------------
1 |
2 | pipeline_name: 3d_bev_detection
3 |
4 | SubModules:
5 | 3DBEVDetection:
6 | module_name: 3d_bev_detection
7 | model_name: BEVFusion
8 | model_dir: null
9 | batch_size: 1
10 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/doc_understanding/server/pipeline_config.yaml:
--------------------------------------------------------------------------------
1 |
2 | pipeline_name: doc_understanding
3 |
4 | SubModules:
5 | DocUnderstanding:
6 | module_name: doc_vlm
7 | model_name: PP-DocBee2-3B
8 | model_dir: null
9 | batch_size: 1
10 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/ts_anomaly_detection/server/pipeline_config.yaml:
--------------------------------------------------------------------------------
1 | pipeline_name: ts_anomaly_detection
2 |
3 | SubModules:
4 | TSAnomalyDetection:
5 | module_name: ts_anomaly_detection
6 | model_name: DLinear_ad
7 | model_dir: null
8 | batch_size: 1
9 |
--------------------------------------------------------------------------------
/deploy/hps/server_env/requirements/cpu_hpi.in:
--------------------------------------------------------------------------------
1 | onnxruntime == 1.22.0
2 | paddle2onnx == 2.0.2rc3
3 | ultra-infer-python @ https://paddle-model-ecology.bj.bcebos.com/paddlex/PaddleX3.0/deploy/hpi/ultra_infer/releases/new_hpi/v1.2.0/ultra_infer_python-1.2.0-cp310-cp310-linux_x86_64.whl
4 |
--------------------------------------------------------------------------------
/deploy/ultra-infer/cmake/sophgo.cmake:
--------------------------------------------------------------------------------
1 | CMAKE_MINIMUM_REQUIRED (VERSION 3.10)
2 |
3 | find_package(libsophon REQUIRED)
4 | message(${LIBSOPHON_LIB_DIRS})
5 | include_directories(${LIBSOPHON_INCLUDE_DIRS})
6 | message(${LIBSOPHON_LIB_DIRS})
7 | set(SOPHGO_RT_LIB ${LIBSOPHON_LIB_DIRS}/libbmrt.so)
8 |
--------------------------------------------------------------------------------
/deploy/ultra-infer/cpack/rpm_postrm.in:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | rm -f /etc/ld.so.conf.d/@CPACK_PACKAGE_NAME@.conf
4 | rm @CMAKE_INSTALL_PREFIX@/@CPACK_PACKAGE_NAME@.conf
5 | rm -rf @CMAKE_INSTALL_PREFIX@/third_libs/install/tensorrt/lib/
6 |
7 | ldconfig
8 | echo "UltraInfer has been uninstalled."
9 |
--------------------------------------------------------------------------------
/paddlex/configs/pipelines/image_classification.yaml:
--------------------------------------------------------------------------------
1 |
2 | pipeline_name: image_classification
3 |
4 | SubModules:
5 | ImageClassification:
6 | module_name: image_classification
7 | model_name: PP-LCNet_x0_5
8 | model_dir: null
9 | batch_size: 4
10 | topk: 5
11 |
--------------------------------------------------------------------------------
/paddlex/configs/pipelines/video_detection.yaml:
--------------------------------------------------------------------------------
1 | pipeline_name: video_detection
2 |
3 | SubModules:
4 | VideoDetection:
5 | module_name: video_detection
6 | model_name: YOWO
7 | model_dir: null
8 | batch_size: 1
9 | nms_thresh: 0.5
10 | score_thresh: 0.8
11 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/scripts/assemble.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | docker run \
4 | -it \
5 | -e OUID="$(id -u)" \
6 | -e OGID="$(id -g)" \
7 | -v "$(pwd)":/workspace \
8 | -w /workspace \
9 | --rm \
10 | python:3.10 \
11 | /bin/bash scripts/_assemble.sh "$@"
12 |
--------------------------------------------------------------------------------
/paddlex/configs/pipelines/object_detection.yaml:
--------------------------------------------------------------------------------
1 | pipeline_name: object_detection
2 |
3 | SubModules:
4 | ObjectDetection:
5 | module_name: object_detection
6 | model_name: PicoDet-S
7 | model_dir: null
8 | batch_size: 1
9 | img_size: null
10 | threshold: null
11 |
--------------------------------------------------------------------------------
/paddlex/configs/pipelines/instance_segmentation.yaml:
--------------------------------------------------------------------------------
1 |
2 | pipeline_name: instance_segmentation
3 |
4 | SubModules:
5 | InstanceSegmentation:
6 | module_name: instance_segmentation
7 | model_name: Mask-RT-DETR-S
8 | model_dir: null
9 | batch_size: 1
10 | threshold: 0.5
11 |
--------------------------------------------------------------------------------
/paddlex/configs/pipelines/semantic_segmentation.yaml:
--------------------------------------------------------------------------------
1 |
2 | pipeline_name: semantic_segmentation
3 |
4 | SubModules:
5 | SemanticSegmentation:
6 | module_name: semantic_segmentation
7 | model_name: PP-LiteSeg-T
8 | model_dir: null
9 | batch_size: 1
10 | target_size: None
11 |
--------------------------------------------------------------------------------
/paddlex/configs/pipelines/small_object_detection.yaml:
--------------------------------------------------------------------------------
1 |
2 | pipeline_name: small_object_detection
3 |
4 | SubModules:
5 | SmallObjectDetection:
6 | module_name: small_object_detection
7 | model_name: PP-YOLOE_plus_SOD-L
8 | model_dir: null
9 | batch_size: 1
10 | threshold: 0.5
11 |
--------------------------------------------------------------------------------
/paddlex/configs/pipelines/video_classification.yaml:
--------------------------------------------------------------------------------
1 | pipeline_name: video_classification
2 |
3 | SubModules:
4 | VideoClassification:
5 | module_name: video_classification
6 | model_name: PP-TSMv2-LCNetV2_8frames_uniform
7 | model_dir: null
8 | batch_size: 1
9 | topk: 1
10 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/image_classification/server/pipeline_config.yaml:
--------------------------------------------------------------------------------
1 |
2 | pipeline_name: image_classification
3 |
4 | SubModules:
5 | ImageClassification:
6 | module_name: image_classification
7 | model_name: PP-LCNet_x0_5
8 | model_dir: null
9 | batch_size: 4
10 | topk: 5
11 |
--------------------------------------------------------------------------------
/docs/data_annotations/time_series_modules/time_series_anomaly_detection.md:
--------------------------------------------------------------------------------
1 | ---
2 | comments: true
3 | ---
4 |
5 | # PaddleX时序异常检测任务模块数据标注教程
6 |
7 | 时序异常检测是一个无监督学习任务,因此不需要标注训练数据。收集的训练样本尽可能保证都是正常数据,即没有异常(用0表示无异常),训练集中表示异常的标签列均设置为 0,或者不设置标签列也是可以的。验证集为了评估模型精度,需要进行标注,对于在某个时间点是异常的点,将该时间点的标签设置为 1 即可,其他正常的时间点的标签为设置为0。
8 |
--------------------------------------------------------------------------------
/paddlex/configs/pipelines/rotated_object_detection.yaml:
--------------------------------------------------------------------------------
1 |
2 | pipeline_name: rotated_object_detection
3 |
4 | SubModules:
5 | RotatedObjectDetection:
6 | module_name: rotated_object_detection
7 | model_name: PP-YOLOE-R-L
8 | model_dir: null
9 | batch_size: 1
10 | threshold: 0.5
11 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/object_detection/server/pipeline_config.yaml:
--------------------------------------------------------------------------------
1 | pipeline_name: object_detection
2 |
3 | SubModules:
4 | ObjectDetection:
5 | module_name: object_detection
6 | model_name: PicoDet-S
7 | model_dir: null
8 | batch_size: 1
9 | img_size: null
10 | threshold: null
11 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/video_detection/server/pipeline_config.yaml:
--------------------------------------------------------------------------------
1 | pipeline_name: video_detection
2 |
3 | SubModules:
4 | VideoDetection:
5 | module_name: video_detection
6 | model_name: YOWO
7 | model_dir: null
8 | batch_size: 1
9 | nms_thresh: 0.5
10 | score_thresh: 0.8
11 |
--------------------------------------------------------------------------------
/paddlex/configs/pipelines/multilingual_speech_recognition.yaml:
--------------------------------------------------------------------------------
1 |
2 | pipeline_name: multilingual_speech_recognition
3 |
4 | SubModules:
5 | MultilingualSpeechRecognition:
6 | module_name: multilingual_speech_recognition
7 | model_name: whisper_large
8 | model_dir: null
9 | batch_size: 1
10 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/instance_segmentation/server/pipeline_config.yaml:
--------------------------------------------------------------------------------
1 |
2 | pipeline_name: instance_segmentation
3 |
4 | SubModules:
5 | InstanceSegmentation:
6 | module_name: instance_segmentation
7 | model_name: Mask-RT-DETR-S
8 | model_dir: null
9 | batch_size: 1
10 | threshold: 0.5
11 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/semantic_segmentation/server/pipeline_config.yaml:
--------------------------------------------------------------------------------
1 |
2 | pipeline_name: semantic_segmentation
3 |
4 | SubModules:
5 | SemanticSegmentation:
6 | module_name: semantic_segmentation
7 | model_name: PP-LiteSeg-T
8 | model_dir: null
9 | batch_size: 1
10 | target_size: None
11 |
--------------------------------------------------------------------------------
/paddlex/configs/pipelines/image_multilabel_classification.yaml:
--------------------------------------------------------------------------------
1 |
2 | pipeline_name: image_multilabel_classification
3 |
4 | SubModules:
5 | ImageMultiLabelClassification:
6 | module_name: image_multilabel_classification
7 | model_name: PP-HGNetV2-B6_ML
8 | model_dir: null
9 | batch_size: 4
10 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/video_classification/server/pipeline_config.yaml:
--------------------------------------------------------------------------------
1 | pipeline_name: video_classification
2 |
3 | SubModules:
4 | VideoClassification:
5 | module_name: video_classification
6 | model_name: PP-TSMv2-LCNetV2_8frames_uniform
7 | model_dir: null
8 | batch_size: 1
9 | topk: 1
10 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/rotated_object_detection/server/pipeline_config.yaml:
--------------------------------------------------------------------------------
1 |
2 | pipeline_name: rotated_object_detection
3 |
4 | SubModules:
5 | RotatedObjectDetection:
6 | module_name: rotated_object_detection
7 | model_name: PP-YOLOE-R-L
8 | model_dir: null
9 | batch_size: 1
10 | threshold: 0.5
11 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/small_object_detection/server/pipeline_config.yaml:
--------------------------------------------------------------------------------
1 |
2 | pipeline_name: small_object_detection
3 |
4 | SubModules:
5 | SmallObjectDetection:
6 | module_name: small_object_detection
7 | model_name: PP-YOLOE_plus_SOD-L
8 | model_dir: null
9 | batch_size: 1
10 | threshold: 0.5
11 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/image_multilabel_classification/server/pipeline_config.yaml:
--------------------------------------------------------------------------------
1 |
2 | pipeline_name: image_multilabel_classification
3 |
4 | SubModules:
5 | ImageMultiLabelClassification:
6 | module_name: image_multilabel_classification
7 | model_name: PP-HGNetV2-B6_ML
8 | model_dir: null
9 | batch_size: 4
10 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/multilingual_speech_recognition/server/pipeline_config.yaml:
--------------------------------------------------------------------------------
1 |
2 | pipeline_name: multilingual_speech_recognition
3 |
4 | SubModules:
5 | MultilingualSpeechRecognition:
6 | module_name: multilingual_speech_recognition
7 | model_name: whisper_large
8 | model_dir: null
9 | batch_size: 1
10 |
--------------------------------------------------------------------------------
/deploy/ultra-infer/scripts/clean_sdk.sh:
--------------------------------------------------------------------------------
1 | origin_install_dir=$1
2 |
3 | rm -rf $origin_install_dir/include/onnx $origin_install_dir/include/paddle2onnx
4 | mv $origin_install_dir/lib $origin_install_dir/lib_bak
5 | mkdir $origin_install_dir/lib
6 | cp $origin_install_dir/lib_bak/*ultra_infer* $origin_install_dir/lib
7 | rm -rf $origin_install_dir/lib_bak
8 |
--------------------------------------------------------------------------------
/paddlex/configs/pipelines/open_vocabulary_detection.yaml:
--------------------------------------------------------------------------------
1 |
2 | pipeline_name: open_vocabulary_detection
3 |
4 | SubModules:
5 | OpenVocabularyDetection:
6 | module_name: open_vocabulary_detection
7 | model_name: GroundingDINO-T
8 | model_dir: null
9 | batch_size: 1
10 | thresholds:
11 | box_threshold: 0.3
12 | text_threshold: 0.25
13 |
--------------------------------------------------------------------------------
/paddlex/configs/modules/multilingual_speech_recognition/whisper_base.yaml:
--------------------------------------------------------------------------------
1 | Global:
2 | model: whisper_base
3 | mode: predict # only support predict
4 | device: gpu:0
5 | output: "output"
6 |
7 | Predict:
8 | batch_size: 1
9 | model_dir: "whisper_base"
10 | input: "https://paddlespeech.bj.bcebos.com/PaddleAudio/zh.wav"
11 | kernel_option:
12 | run_mode: paddle
13 |
--------------------------------------------------------------------------------
/paddlex/configs/modules/multilingual_speech_recognition/whisper_large.yaml:
--------------------------------------------------------------------------------
1 | Global:
2 | model: whisper_large
3 | mode: predict # only support predict
4 | device: gpu:0
5 | output: "output"
6 |
7 | Predict:
8 | batch_size: 1
9 | model_dir: "whisper_large"
10 | input: "https://paddlespeech.bj.bcebos.com/PaddleAudio/zh.wav"
11 | kernel_option:
12 | run_mode: paddle
13 |
--------------------------------------------------------------------------------
/paddlex/configs/modules/multilingual_speech_recognition/whisper_small.yaml:
--------------------------------------------------------------------------------
1 | Global:
2 | model: whisper_small
3 | mode: predict # only support predict
4 | device: gpu:0
5 | output: "output"
6 |
7 | Predict:
8 | batch_size: 1
9 | model_dir: "whisper_small"
10 | input: "https://paddlespeech.bj.bcebos.com/PaddleAudio/zh.wav"
11 | kernel_option:
12 | run_mode: paddle
13 |
--------------------------------------------------------------------------------
/paddlex/configs/modules/multilingual_speech_recognition/whisper_tiny.yaml:
--------------------------------------------------------------------------------
1 | Global:
2 | model: whisper_tiny
3 | mode: predict # only support predict
4 | device: gpu:0
5 | output: "output"
6 |
7 | Predict:
8 | batch_size: 1
9 | model_dir: "whisper_tiny"
10 | input: "https://paddlespeech.bj.bcebos.com/PaddleAudio/zh.wav"
11 | kernel_option:
12 | run_mode: paddle
13 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/open_vocabulary_detection/server/pipeline_config.yaml:
--------------------------------------------------------------------------------
1 |
2 | pipeline_name: open_vocabulary_detection
3 |
4 | SubModules:
5 | OpenVocabularyDetection:
6 | module_name: open_vocabulary_detection
7 | model_name: GroundingDINO-T
8 | model_dir: null
9 | batch_size: 1
10 | thresholds:
11 | box_threshold: 0.3
12 | text_threshold: 0.25
13 |
--------------------------------------------------------------------------------
/paddlex/configs/modules/multilingual_speech_recognition/whisper_medium.yaml:
--------------------------------------------------------------------------------
1 | Global:
2 | model: whisper_medium
3 | mode: predict # only support predict
4 | device: gpu:0
5 | output: "output"
6 |
7 | Predict:
8 | batch_size: 1
9 | model_dir: "whisper_medium"
10 | input: "https://paddlespeech.bj.bcebos.com/PaddleAudio/zh.wav"
11 | kernel_option:
12 | run_mode: paddle
13 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/common/config_cpu.pbtxt:
--------------------------------------------------------------------------------
1 | backend: "python"
2 | max_batch_size: 1
3 | input [
4 | {
5 | name: "input"
6 | data_type: TYPE_STRING
7 | dims: [ 1 ]
8 | }
9 | ]
10 | output [
11 | {
12 | name: "output"
13 | data_type: TYPE_STRING
14 | dims: [ 1 ]
15 | }
16 | ]
17 | instance_group [
18 | {
19 | count: 1
20 | kind: KIND_CPU
21 | }
22 | ]
23 |
--------------------------------------------------------------------------------
/deploy/hps/server_env/requirements/cpu_dev.txt:
--------------------------------------------------------------------------------
1 | #
2 | # This file is autogenerated by pip-compile with Python 3.10
3 | # by the following command:
4 | #
5 | # pip-compile --allow-unsafe --cert=None --client-cert=None --constraint=requirements/cpu.txt --index-url=None --no-emit-index-url --no-emit-trusted-host --output-file=requirements/cpu_dev.txt --pip-args=None --strip-extras requirements/cpu_dev.in
6 | #
7 |
--------------------------------------------------------------------------------
/deploy/hps/server_env/requirements/gpu_dev.txt:
--------------------------------------------------------------------------------
1 | #
2 | # This file is autogenerated by pip-compile with Python 3.10
3 | # by the following command:
4 | #
5 | # pip-compile --allow-unsafe --cert=None --client-cert=None --constraint=requirements/gpu.txt --index-url=None --no-emit-index-url --no-emit-trusted-host --output-file=requirements/gpu_dev.txt --pip-args=None --strip-extras requirements/gpu_dev.in
6 | #
7 |
--------------------------------------------------------------------------------
/paddlex/configs/modules/image_unwarping/UVDoc.yaml:
--------------------------------------------------------------------------------
1 | Global:
2 | model: UVDoc
3 | mode: predict # check_dataset/train/evaluate/predict
4 | device: gpu:0
5 | output: "output"
6 |
7 | Predict:
8 | batch_size: 1
9 | model_dir: "output/best_accuracy"
10 | input: "https://paddle-model-ecology.bj.bcebos.com/paddlex/imgs/demo_image/doc_test.jpg"
11 | kernel_option:
12 | run_mode: paddle
13 |
--------------------------------------------------------------------------------
/deploy/hps/server_env/paddlex-hps-server/pyproject.toml:
--------------------------------------------------------------------------------
1 | [build-system]
2 | requires = ["setuptools >= 69"]
3 | build-backend = "setuptools.build_meta"
4 |
5 | [project]
6 | name = "paddlex-hps-server"
7 | version = "0.3.1"
8 | # `paddlex` is not included here
9 | dependencies = [
10 | "colorlog >= 6.9",
11 | "pydantic >= 2",
12 | ]
13 |
14 | [tool.isort]
15 | profile = "black"
16 | src_paths = ["src"]
17 |
--------------------------------------------------------------------------------
/deploy/ultra-infer/cpack/debian_prerm.in:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | case "$1" in
4 | remove|deconfigure)
5 | rm -f /etc/ld.so.conf.d/@CPACK_PACKAGE_NAME@.conf
6 | rm @CMAKE_INSTALL_PREFIX@/@CPACK_PACKAGE_NAME@.conf
7 | rm -rf @CMAKE_INSTALL_PREFIX@/third_libs/install/tensorrt/lib/
8 |
9 | ldconfig
10 | echo "UltraInfer is going to be uninstalled."
11 | ;;
12 | esac
13 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/common/config_gpu.pbtxt:
--------------------------------------------------------------------------------
1 | backend: "python"
2 | max_batch_size: 1
3 | input [
4 | {
5 | name: "input"
6 | data_type: TYPE_STRING
7 | dims: [ 1 ]
8 | }
9 | ]
10 | output [
11 | {
12 | name: "output"
13 | data_type: TYPE_STRING
14 | dims: [ 1 ]
15 | }
16 | ]
17 | instance_group [
18 | {
19 | count: 1
20 | kind: KIND_GPU
21 | gpus: [ 0 ]
22 | }
23 | ]
24 |
--------------------------------------------------------------------------------
/docs/data_annotations/time_series_modules/time_series_forecasting.md:
--------------------------------------------------------------------------------
1 | ---
2 | comments: true
3 | ---
4 |
5 | # PaddleX时序预测任务模块数据标注教程
6 |
7 | 时序预测任务的数据是无需标注的,只要收集真实数据,将所有数据按照时间的顺序排列在csv文件中即可。训练时会将数据自动切分为多个时间片段,组合训练样本,如下图所示,历史的时间序列数据和未来的序列分别表示训练模型输入数据和其对应的预测目标。为了保证数据的质量和完整性,可以基于专家经验或统计方法进行缺失值填充。
8 |
9 |
10 |
--------------------------------------------------------------------------------
/paddlex/configs/modules/chart_parsing/PP-Chart2Table.yaml:
--------------------------------------------------------------------------------
1 | Global:
2 | model: PP-Chart2Table
3 | mode: predict # only support predict
4 | device: gpu:0
5 | output: "output"
6 |
7 | Predict:
8 | batch_size: 1
9 | model_dir: "/path/to/PP-Chart2Table"
10 | input:
11 | image: "https://paddle-model-ecology.bj.bcebos.com/paddlex/imgs/demo_image/chart_parsing_02.png"
12 | kernel_option:
13 | run_mode: paddle
14 |
--------------------------------------------------------------------------------
/paddlex/configs/pipelines/doc_preprocessor.yaml:
--------------------------------------------------------------------------------
1 |
2 | pipeline_name: doc_preprocessor
3 |
4 | use_doc_orientation_classify: True
5 | use_doc_unwarping: True
6 |
7 | SubModules:
8 | DocOrientationClassify:
9 | module_name: doc_text_orientation
10 | model_name: PP-LCNet_x1_0_doc_ori
11 | model_dir: null
12 | DocUnwarping:
13 | module_name: image_unwarping
14 | model_name: UVDoc
15 | model_dir: null
16 |
--------------------------------------------------------------------------------
/paddlex/configs/pipelines/open_vocabulary_segmentation.yaml:
--------------------------------------------------------------------------------
1 | pipeline_name: open_vocabulary_segmentation
2 |
3 | SubModules:
4 | BoxPromptSegmentation:
5 | module_name: box_prompt_segmentation
6 | model_name: SAM-H_box
7 | model_dir: null
8 | batch_size: 1
9 | PointPromptSegmentation:
10 | module_name: point_prompt_segmentation
11 | model_name: SAM-H_point
12 | model_dir: null
13 | batch_size: 1
14 |
--------------------------------------------------------------------------------
/paddlex/configs/modules/doc_vlm/PP-DocBee-2B.yaml:
--------------------------------------------------------------------------------
1 | Global:
2 | model: PP-DocBee-2B
3 | mode: predict # only support predict
4 | device: gpu:0
5 | output: "output"
6 |
7 | Predict:
8 | batch_size: 1
9 | model_dir: "/path/to/PP-DocBee-2B"
10 | input:
11 | image: "https://paddle-model-ecology.bj.bcebos.com/paddlex/imgs/demo_image/medal_table.png"
12 | query: "识别这份表格的内容"
13 | kernel_option:
14 | run_mode: paddle
15 |
--------------------------------------------------------------------------------
/paddlex/configs/modules/doc_vlm/PP-DocBee-7B.yaml:
--------------------------------------------------------------------------------
1 | Global:
2 | model: PP-DocBee-7B
3 | mode: predict # only support predict
4 | device: gpu:0
5 | output: "output"
6 |
7 | Predict:
8 | batch_size: 1
9 | model_dir: "/path/to/PP-DocBee-7B"
10 | input:
11 | image: "https://paddle-model-ecology.bj.bcebos.com/paddlex/imgs/demo_image/medal_table.png"
12 | query: "识别这份表格的内容"
13 | kernel_option:
14 | run_mode: paddle
15 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/paddlex-hps-client/pyproject.toml:
--------------------------------------------------------------------------------
1 | [build-system]
2 | requires = ["setuptools >= 69"]
3 | build-backend = "setuptools.build_meta"
4 |
5 | [project]
6 | name = "paddlex-hps-client"
7 | version = "0.2.0"
8 | dependencies = [
9 | "numpy >= 1.24",
10 | # XXX: Not sure about the backward compatibility
11 | "tritonclient [grpc] >= 2.15.0",
12 | ]
13 |
14 | [tool.isort]
15 | profile = "black"
16 | src_paths = ["src"]
17 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/PP-ChatOCRv3-doc/server/model_repo/chatocr-chat/config.pbtxt:
--------------------------------------------------------------------------------
1 | backend: "python"
2 | max_batch_size: 1
3 | input [
4 | {
5 | name: "input"
6 | data_type: TYPE_STRING
7 | dims: [ 1 ]
8 | }
9 | ]
10 | output [
11 | {
12 | name: "output"
13 | data_type: TYPE_STRING
14 | dims: [ 1 ]
15 | }
16 | ]
17 | instance_group [
18 | {
19 | count: 1
20 | kind: KIND_CPU
21 | }
22 | ]
23 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/PP-ChatOCRv3-doc/server/model_repo/chatocr-vector/config.pbtxt:
--------------------------------------------------------------------------------
1 | backend: "python"
2 | max_batch_size: 1
3 | input [
4 | {
5 | name: "input"
6 | data_type: TYPE_STRING
7 | dims: [ 1 ]
8 | }
9 | ]
10 | output [
11 | {
12 | name: "output"
13 | data_type: TYPE_STRING
14 | dims: [ 1 ]
15 | }
16 | ]
17 | instance_group [
18 | {
19 | count: 1
20 | kind: KIND_CPU
21 | }
22 | ]
23 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/PP-ChatOCRv4-doc/server/model_repo/chatocr-chat/config.pbtxt:
--------------------------------------------------------------------------------
1 | backend: "python"
2 | max_batch_size: 1
3 | input [
4 | {
5 | name: "input"
6 | data_type: TYPE_STRING
7 | dims: [ 1 ]
8 | }
9 | ]
10 | output [
11 | {
12 | name: "output"
13 | data_type: TYPE_STRING
14 | dims: [ 1 ]
15 | }
16 | ]
17 | instance_group [
18 | {
19 | count: 1
20 | kind: KIND_CPU
21 | }
22 | ]
23 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/PP-ChatOCRv4-doc/server/model_repo/chatocr-mllm/config.pbtxt:
--------------------------------------------------------------------------------
1 | backend: "python"
2 | max_batch_size: 1
3 | input [
4 | {
5 | name: "input"
6 | data_type: TYPE_STRING
7 | dims: [ 1 ]
8 | }
9 | ]
10 | output [
11 | {
12 | name: "output"
13 | data_type: TYPE_STRING
14 | dims: [ 1 ]
15 | }
16 | ]
17 | instance_group [
18 | {
19 | count: 1
20 | kind: KIND_CPU
21 | }
22 | ]
23 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/PP-ChatOCRv4-doc/server/model_repo/chatocr-vector/config.pbtxt:
--------------------------------------------------------------------------------
1 | backend: "python"
2 | max_batch_size: 1
3 | input [
4 | {
5 | name: "input"
6 | data_type: TYPE_STRING
7 | dims: [ 1 ]
8 | }
9 | ]
10 | output [
11 | {
12 | name: "output"
13 | data_type: TYPE_STRING
14 | dims: [ 1 ]
15 | }
16 | ]
17 | instance_group [
18 | {
19 | count: 1
20 | kind: KIND_CPU
21 | }
22 | ]
23 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/PP-ShiTuV2/server/model_repo/shitu-index-remove/config.pbtxt:
--------------------------------------------------------------------------------
1 | backend: "python"
2 | max_batch_size: 1
3 | input [
4 | {
5 | name: "input"
6 | data_type: TYPE_STRING
7 | dims: [ 1 ]
8 | }
9 | ]
10 | output [
11 | {
12 | name: "output"
13 | data_type: TYPE_STRING
14 | dims: [ 1 ]
15 | }
16 | ]
17 | instance_group [
18 | {
19 | count: 1
20 | kind: KIND_CPU
21 | }
22 | ]
23 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/PP-DocTranslation/server/model_repo/doctrans-translate/config.pbtxt:
--------------------------------------------------------------------------------
1 | backend: "python"
2 | max_batch_size: 1
3 | input [
4 | {
5 | name: "input"
6 | data_type: TYPE_STRING
7 | dims: [ 1 ]
8 | }
9 | ]
10 | output [
11 | {
12 | name: "output"
13 | data_type: TYPE_STRING
14 | dims: [ 1 ]
15 | }
16 | ]
17 | instance_group [
18 | {
19 | count: 1
20 | kind: KIND_CPU
21 | }
22 | ]
23 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/OCR/server/model_repo/ocr/config_cpu.pbtxt:
--------------------------------------------------------------------------------
1 | backend: "python"
2 | max_batch_size: 8
3 | input [
4 | {
5 | name: "input"
6 | data_type: TYPE_STRING
7 | dims: [ -1 ]
8 | }
9 | ]
10 | output [
11 | {
12 | name: "output"
13 | data_type: TYPE_STRING
14 | dims: [ -1 ]
15 | }
16 | ]
17 | instance_group [
18 | {
19 | count: 1
20 | kind: KIND_CPU
21 | }
22 | ]
23 | dynamic_batching { }
24 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/doc_preprocessor/server/pipeline_config.yaml:
--------------------------------------------------------------------------------
1 |
2 | pipeline_name: doc_preprocessor
3 |
4 | use_doc_orientation_classify: True
5 | use_doc_unwarping: True
6 |
7 | SubModules:
8 | DocOrientationClassify:
9 | module_name: doc_text_orientation
10 | model_name: PP-LCNet_x1_0_doc_ori
11 | model_dir: null
12 | DocUnwarping:
13 | module_name: image_unwarping
14 | model_name: UVDoc
15 | model_dir: null
16 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/face_recognition/server/model_repo/face-recognition-index-remove/config.pbtxt:
--------------------------------------------------------------------------------
1 | backend: "python"
2 | max_batch_size: 1
3 | input [
4 | {
5 | name: "input"
6 | data_type: TYPE_STRING
7 | dims: [ 1 ]
8 | }
9 | ]
10 | output [
11 | {
12 | name: "output"
13 | data_type: TYPE_STRING
14 | dims: [ 1 ]
15 | }
16 | ]
17 | instance_group [
18 | {
19 | count: 1
20 | kind: KIND_CPU
21 | }
22 | ]
23 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/open_vocabulary_segmentation/server/pipeline_config.yaml:
--------------------------------------------------------------------------------
1 | pipeline_name: open_vocabulary_segmentation
2 |
3 | SubModules:
4 | BoxPromptSegmentation:
5 | module_name: box_prompt_segmentation
6 | model_name: SAM-H_box
7 | model_dir: null
8 | batch_size: 1
9 | PointPromptSegmentation:
10 | module_name: point_prompt_segmentation
11 | model_name: SAM-H_point
12 | model_dir: null
13 | batch_size: 1
14 |
--------------------------------------------------------------------------------
/deploy/ultra-infer/python/scripts/build_gpu.sh:
--------------------------------------------------------------------------------
1 | export ENABLE_ORT_BACKEND=ON
2 | export ENABLE_OPENVINO_BACKEND=ON
3 | export ENABLE_PADDLE_BACKEND=ON
4 | export ENABLE_TRT_BACKEND=ON
5 | export TRT_DIRECTORY=/ultra_infer/libs/TensorRT-8.4.1.5
6 | export CUDA_DIRECTORY=/usr/local/cuda
7 | export ENABLE_VISION=ON
8 | export WITH_GPU=ON
9 | export CMAKE_CXX_COMPILER=/usr/local/gcc-8.2/bin/g++
10 |
11 | python setup.py build
12 | python setup.py bdist_wheel
13 |
--------------------------------------------------------------------------------
/paddlex/configs/modules/doc_vlm/PP-DocBee2-3B.yaml:
--------------------------------------------------------------------------------
1 | Global:
2 | model: PP-DocBee2-3B
3 | mode: predict # only support predict
4 | device: gpu:0
5 | output: "output"
6 |
7 | Predict:
8 | batch_size: 1
9 | model_dir: "/path/to/PP-DocBee2-3B"
10 | input:
11 | image: "https://paddle-model-ecology.bj.bcebos.com/paddlex/imgs/demo_image/medal_table.png"
12 | query: "识别这份表格的内容, 以markdown格式输出"
13 | kernel_option:
14 | run_mode: paddle
15 |
--------------------------------------------------------------------------------
/paddlex/configs/pipelines/PP-ShiTuV2.yaml:
--------------------------------------------------------------------------------
1 | pipeline_name: PP-ShiTuV2
2 |
3 | index: None
4 | det_threshold: 0.5
5 | rec_threshold: 0.5
6 | rec_topk: 5
7 |
8 | SubModules:
9 | Detection:
10 | module_name: text_detection
11 | model_name: PP-ShiTuV2_det
12 | model_dir: null
13 | batch_size: 1
14 | Recognition:
15 | module_name: text_recognition
16 | model_name: PP-ShiTuV2_rec
17 | model_dir: null
18 | batch_size: 1
19 |
--------------------------------------------------------------------------------
/paddlex/configs/pipelines/face_recognition.yaml:
--------------------------------------------------------------------------------
1 | pipeline_name: face_recognition
2 |
3 | index: None
4 | det_threshold: 0.6
5 | rec_threshold: 0.4
6 | rec_topk: 5
7 |
8 | SubModules:
9 | Detection:
10 | module_name: face_detection
11 | model_name: PP-YOLOE_plus-S_face
12 | model_dir: null
13 | batch_size: 1
14 | Recognition:
15 | module_name: face_feature
16 | model_name: ResNet50_face
17 | model_dir: null
18 | batch_size: 1
19 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/OCR/server/model_repo/ocr/config_gpu.pbtxt:
--------------------------------------------------------------------------------
1 | backend: "python"
2 | max_batch_size: 8
3 | input [
4 | {
5 | name: "input"
6 | data_type: TYPE_STRING
7 | dims: [ -1 ]
8 | }
9 | ]
10 | output [
11 | {
12 | name: "output"
13 | data_type: TYPE_STRING
14 | dims: [ -1 ]
15 | }
16 | ]
17 | instance_group [
18 | {
19 | count: 1
20 | kind: KIND_GPU
21 | gpus: [ 0 ]
22 | }
23 | ]
24 | dynamic_batching { }
25 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/PP-StructureV3/server/model_repo/layout-parsing/config_cpu.pbtxt:
--------------------------------------------------------------------------------
1 | backend: "python"
2 | max_batch_size: 8
3 | input [
4 | {
5 | name: "input"
6 | data_type: TYPE_STRING
7 | dims: [ -1 ]
8 | }
9 | ]
10 | output [
11 | {
12 | name: "output"
13 | data_type: TYPE_STRING
14 | dims: [ -1 ]
15 | }
16 | ]
17 | instance_group [
18 | {
19 | count: 1
20 | kind: KIND_CPU
21 | }
22 | ]
23 | dynamic_batching { }
24 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/PaddleOCR-VL/server/model_repo/layout-parsing/config_cpu.pbtxt:
--------------------------------------------------------------------------------
1 | backend: "python"
2 | max_batch_size: 8
3 | input [
4 | {
5 | name: "input"
6 | data_type: TYPE_STRING
7 | dims: [ -1 ]
8 | }
9 | ]
10 | output [
11 | {
12 | name: "output"
13 | data_type: TYPE_STRING
14 | dims: [ -1 ]
15 | }
16 | ]
17 | instance_group [
18 | {
19 | count: 1
20 | kind: KIND_CPU
21 | }
22 | ]
23 | dynamic_batching { }
24 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/PP-ShiTuV2/server/pipeline_config.yaml:
--------------------------------------------------------------------------------
1 | pipeline_name: PP-ShiTuV2
2 |
3 | index: None
4 | det_threshold: 0.5
5 | rec_threshold: 0.5
6 | rec_topk: 5
7 |
8 | SubModules:
9 | Detection:
10 | module_name: text_detection
11 | model_name: PP-ShiTuV2_det
12 | model_dir: null
13 | batch_size: 1
14 | Recognition:
15 | module_name: text_recognition
16 | model_name: PP-ShiTuV2_rec
17 | model_dir: null
18 | batch_size: 1
19 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/face_recognition/server/pipeline_config.yaml:
--------------------------------------------------------------------------------
1 | pipeline_name: face_recognition
2 |
3 | index: None
4 | det_threshold: 0.6
5 | rec_threshold: 0.4
6 | rec_topk: 5
7 |
8 | SubModules:
9 | Detection:
10 | module_name: face_detection
11 | model_name: PP-YOLOE_plus-S_face
12 | model_dir: null
13 | batch_size: 1
14 | Recognition:
15 | module_name: face_feature
16 | model_name: ResNet50_face
17 | model_dir: null
18 | batch_size: 1
19 |
--------------------------------------------------------------------------------
/paddlex/configs/pipelines/vehicle_attribute_recognition.yaml:
--------------------------------------------------------------------------------
1 | pipeline_name: vehicle_attribute_recognition
2 |
3 | SubModules:
4 | Detection:
5 | module_name: object_detection
6 | model_name: PP-YOLOE-L_vehicle
7 | model_dir: null
8 | batch_size: 1
9 | threshold: 0.5
10 | Classification:
11 | module_name: multilabel_classification
12 | model_name: PP-LCNet_x1_0_vehicle_attribute
13 | model_dir: null
14 | batch_size: 1
15 | threshold: 0.7
16 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/PaddleOCR-VL/server/model_repo/layout-parsing/config_gpu.pbtxt:
--------------------------------------------------------------------------------
1 | backend: "python"
2 | max_batch_size: 8
3 | input [
4 | {
5 | name: "input"
6 | data_type: TYPE_STRING
7 | dims: [ -1 ]
8 | }
9 | ]
10 | output [
11 | {
12 | name: "output"
13 | data_type: TYPE_STRING
14 | dims: [ -1 ]
15 | }
16 | ]
17 | instance_group [
18 | {
19 | count: 1
20 | kind: KIND_GPU
21 | gpus: [ 0 ]
22 | }
23 | ]
24 | dynamic_batching { }
25 |
--------------------------------------------------------------------------------
/deploy/ultra-infer/UltraInferCSharp.cmake.in:
--------------------------------------------------------------------------------
1 | list(APPEND ULTRAINFER_DOTNET_REFERENCES
2 | "Microsoft.CSharp"
3 | "System"
4 | "System.Core"
5 | "System.Data"
6 | "System.Deployment"
7 | "System.Drawing"
8 | "System.Net.Http"
9 | "System.Xml"
10 | "System.Reflection"
11 | "${CMAKE_CURRENT_LIST_DIR}/csharp_lib/ultra_infer_csharp.dll")
12 |
13 | set(ULTRAINFER_PACKAGE_REFERENCES "OpenCvSharp4_4.7.0.20230115;OpenCvSharp4.runtime.win_4.7.0.20230115")
14 |
--------------------------------------------------------------------------------
/paddlex/configs/modules/open_vocabulary_detection/GroundingDINO-T.yaml:
--------------------------------------------------------------------------------
1 | Global:
2 | model: GroundingDINO-T
3 | mode: predict # only support predict
4 | device: gpu:0
5 | output: "output"
6 |
7 | Predict:
8 | batch_size: 1
9 | model_dir: "/path/to/GroundingDINO-T"
10 | input: "https://paddle-model-ecology.bj.bcebos.com/paddlex/imgs/demo_image/open_vocabulary_detection.jpg"
11 | prompt: "bus . walking man . rearview mirror ."
12 | kernel_option:
13 | run_mode: paddle
14 |
--------------------------------------------------------------------------------
/paddlex/configs/modules/open_vocabulary_segmentation/SAM-H_point.yaml:
--------------------------------------------------------------------------------
1 | Global:
2 | model: SAM-H_point
3 | mode: predict # only support predict
4 | device: gpu:0
5 | output: "output"
6 |
7 | Predict:
8 | batch_size: 1
9 | model_dir: "/path/to/SAM-H_point"
10 | input: "https://paddle-model-ecology.bj.bcebos.com/paddlex/imgs/demo_image/open_vocabulary_segmentation.jpg"
11 | prompts:
12 | point_prompt:
13 | - [49, 290]
14 | kernel_option:
15 | run_mode: paddle
16 |
--------------------------------------------------------------------------------
/paddlex/configs/pipelines/pedestrian_attribute_recognition.yaml:
--------------------------------------------------------------------------------
1 | pipeline_name: pedestrian_attribute_recognition
2 |
3 | SubModules:
4 | Detection:
5 | module_name: object_detection
6 | model_name: PP-YOLOE-L_human
7 | model_dir: null
8 | batch_size: 1
9 | threshold: 0.5
10 | Classification:
11 | module_name: multilabel_classification
12 | model_name: PP-LCNet_x1_0_pedestrian_attribute
13 | model_dir: null
14 | batch_size: 1
15 | threshold: 0.7
16 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/PP-StructureV3/server/model_repo/layout-parsing/config_gpu.pbtxt:
--------------------------------------------------------------------------------
1 | backend: "python"
2 | max_batch_size: 8
3 | input [
4 | {
5 | name: "input"
6 | data_type: TYPE_STRING
7 | dims: [ -1 ]
8 | }
9 | ]
10 | output [
11 | {
12 | name: "output"
13 | data_type: TYPE_STRING
14 | dims: [ -1 ]
15 | }
16 | ]
17 | instance_group [
18 | {
19 | count: 1
20 | kind: KIND_GPU
21 | gpus: [ 0 ]
22 | }
23 | ]
24 | dynamic_batching { }
25 |
--------------------------------------------------------------------------------
/paddlex/configs/pipelines/human_keypoint_detection.yaml:
--------------------------------------------------------------------------------
1 | pipeline_name: human_keypoint_detection
2 |
3 | SubModules:
4 | ObjectDetection:
5 | module_name: object_detection
6 | model_name: PP-YOLOE-S_human
7 | model_dir: null
8 | batch_size: 1
9 | threshold: null
10 | img_size: null
11 | KeypointDetection:
12 | module_name: keypoint_detection
13 | model_name: PP-TinyPose_128x96
14 | model_dir: null
15 | batch_size: 1
16 | flip: False
17 | use_udp: null
18 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/vehicle_attribute_recognition/server/pipeline_config.yaml:
--------------------------------------------------------------------------------
1 | pipeline_name: vehicle_attribute_recognition
2 |
3 | SubModules:
4 | Detection:
5 | module_name: object_detection
6 | model_name: PP-YOLOE-L_vehicle
7 | model_dir: null
8 | batch_size: 1
9 | threshold: 0.5
10 | Classification:
11 | module_name: multilabel_classification
12 | model_name: PP-LCNet_x1_0_vehicle_attribute
13 | model_dir: null
14 | batch_size: 1
15 | threshold: 0.7
16 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/pedestrian_attribute_recognition/server/pipeline_config.yaml:
--------------------------------------------------------------------------------
1 | pipeline_name: pedestrian_attribute_recognition
2 |
3 | SubModules:
4 | Detection:
5 | module_name: object_detection
6 | model_name: PP-YOLOE-L_human
7 | model_dir: null
8 | batch_size: 1
9 | threshold: 0.5
10 | Classification:
11 | module_name: multilabel_classification
12 | model_name: PP-LCNet_x1_0_pedestrian_attribute
13 | model_dir: null
14 | batch_size: 1
15 | threshold: 0.7
16 |
--------------------------------------------------------------------------------
/paddlex/configs/modules/open_vocabulary_detection/YOLO-Worldv2-L.yaml:
--------------------------------------------------------------------------------
1 | Global:
2 | model: YOLO-Worldv2-L
3 | mode: predict # only support predict
4 | device: gpu:0
5 | output: "output"
6 |
7 | Predict:
8 | batch_size: 1
9 | model_dir: "/ChartQA/PaddleX_refactor/PaddleX/_zzl_test_yolow/YOLO-Worldv2-L"
10 | input: "https://paddle-model-ecology.bj.bcebos.com/paddlex/imgs/demo_image/open_vocabulary_detection.jpg"
11 | prompt: "bus, car, rearview mirror"
12 | kernel_option:
13 | run_mode: paddle
14 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/human_keypoint_detection/server/pipeline_config.yaml:
--------------------------------------------------------------------------------
1 | pipeline_name: human_keypoint_detection
2 |
3 | SubModules:
4 | ObjectDetection:
5 | module_name: object_detection
6 | model_name: PP-YOLOE-S_human
7 | model_dir: null
8 | batch_size: 1
9 | threshold: null
10 | img_size: null
11 | KeypointDetection:
12 | module_name: keypoint_detection
13 | model_name: PP-TinyPose_128x96
14 | model_dir: null
15 | batch_size: 1
16 | flip: False
17 | use_udp: null
18 |
--------------------------------------------------------------------------------
/deploy/hps/server_env/scripts/remove_images.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | paddlex_version="$(cat ../../../paddlex/.version)"
4 |
5 | for device_type in 'gpu' 'cpu'; do
6 | version="$(cat "${device_type}_version.txt")"
7 | docker rmi \
8 | "ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlex/hps:paddlex${paddlex_version%.*}-${device_type}" \
9 | "ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlex/hps:${version}-${device_type}" \
10 | "ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlex/hps:latest-${device_type}"
11 | done
12 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/4_gui.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: 4. 星河零代码产线使用问题
3 | about: 星河零代码产线使用问题
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 | ## Checklist:
11 |
12 | - [ ] 查找[历史相关issue](https://github.com/PaddlePaddle/PaddleX/issues)寻求解答
13 | - [ ] 翻阅[FAQ](https://paddlepaddle.github.io/PaddleX/main/FAQ.html)
14 | - [ ] 翻阅[PaddleX 文档](https://paddlepaddle.github.io/PaddleX/main/index.html)
15 | - [ ] 如果是数据校验问题,请确保在开源PaddleX中可以通过数据校验
16 |
17 | ## 描述问题
18 |
19 | ## 复现
20 |
21 | 1. 请提供您出现的报错信息及相关log
22 |
23 | 2. 请提供您的星河uid和产线id
24 |
--------------------------------------------------------------------------------
/deploy/hps/server_env/scripts/freeze_requirements.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | # Can we just do this in the Dockerfile? Like, use cache mounts?
4 |
5 | for device_type in 'gpu' 'cpu'; do
6 | docker run \
7 | -it \
8 | -e DEVICE_TYPE="${device_type}" \
9 | -e OUID="$(id -u)" \
10 | -e OGID="$(id -g)" \
11 | -v "$(pwd)/../../..":/workspace \
12 | -w /workspace/deploy/hps/server_env \
13 | --rm \
14 | "paddlex-hps-rc:${device_type}" \
15 | /bin/bash scripts/_freeze_requirements.sh
16 | done
17 |
--------------------------------------------------------------------------------
/deploy/ultra-infer/cmake/UltraInferConfig.cmake:
--------------------------------------------------------------------------------
1 | # This file will define the following variables for find_package method:
2 | # - UltraInfer_LIBS : The list of libraries to link against.
3 | # - UltraInfer_INCLUDE_DIRS : The UltraInfer include directories.
4 | # - UltraInfer_Found : The status of UltraInfer
5 |
6 | include(${CMAKE_CURRENT_LIST_DIR}/UltraInfer.cmake)
7 | # setup UltraInfer cmake variables
8 | set(UltraInfer_LIBS ${ULTRAINFER_LIBS})
9 | set(UltraInfer_INCLUDE_DIRS ${ULTRAINFER_INCS})
10 | set(UltraInfer_FOUND TRUE)
11 |
--------------------------------------------------------------------------------
/.precommit/clang_format.hook:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | set -e
3 |
4 | readonly VERSION="13.0.0"
5 |
6 | version=$(clang-format -version)
7 |
8 | if ! [[ $(python -V 2>&1 | awk '{print $2}' | awk -F '.' '{print $1$2}') -ge 36 ]]; then
9 | echo "clang-format installation by pip need python version great equal 3.6,
10 | please change the default python to higher version."
11 | exit 1
12 | fi
13 |
14 | if ! [[ $version == *"$VERSION"* ]]; then
15 | # low version of pip may not have the source of clang-format whl
16 | pip install --upgrade pip
17 | pip install clang-format==13.0.0
18 | fi
19 |
20 | clang-format $@
21 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/1_data.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: 1. 数据类问题
3 | about: 数据标注、格式转换等问题
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 | ## Checklist:
11 |
12 | - [ ] 查找[历史相关issue](https://github.com/PaddlePaddle/PaddleX/issues)寻求解答
13 | - [ ] 翻阅[FAQ](https://paddlepaddle.github.io/PaddleX/main/FAQ.html)
14 | - [ ] 翻阅[PaddleX 文档](https://paddlepaddle.github.io/PaddleX/main/index.html)
15 | - [ ] 确认bug是否在新版本里还未修复
16 |
17 | ## 描述问题
18 |
19 | ## 复现
20 |
21 | 1. 您使用的命令是?
22 |
23 | 2. 您使用的数据集是?
24 |
25 | 3. 请提供您出现的报错信息及相关log
26 |
27 | ## 环境
28 |
29 | 1. 请提供您使用的PaddleX的版本号
30 |
31 | 2. 请提供您使用的操作系统信息,如Linux/Windows/MacOS
32 |
33 | 3. 请问您使用的Python版本是
34 |
--------------------------------------------------------------------------------
/paddlex/repo_apis/PaddleTS_api/configs/DLinear.yaml:
--------------------------------------------------------------------------------
1 | batch_size: 16
2 | seq_len: 96
3 | predict_len: 336
4 | sampling_stride: 1
5 | do_eval: True
6 | epoch: 10
7 | to_static_train: False
8 | use_amp: False
9 | amp_level: O2
10 |
11 | dataset:
12 | name: TSDataset
13 | dataset_root: /data/
14 | train_path: /data/train.csv
15 | val_path: /data/val.csv
16 | time_feat: False
17 | scale: True
18 | info_params:
19 | time_col: date
20 | model:
21 | name: DLinearModel
22 | model_cfg:
23 | c_in: 321
24 | individual: False
25 | optimizer_params:
26 | learning_rate: 0.001
27 | gamma: 0.5
28 | patience: 3
29 | test:
30 | stride: 1
31 |
--------------------------------------------------------------------------------
/deploy/hps/server_env/scripts/tag_and_push_images.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | paddlex_version="$(cat ../../../paddlex/.version)"
4 |
5 | for device_type in 'gpu' 'cpu'; do
6 | version="$(cat "${device_type}_version.txt")"
7 | docker push "ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlex/hps:latest-${device_type}"
8 | for tag in "${version}-${device_type}" "paddlex${paddlex_version%.*}-${device_type}"; do
9 | docker tag "ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlex/hps:latest-${device_type}" "ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlex/hps:${tag}"
10 | docker push "ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlex/hps:${tag}"
11 | done
12 | done
13 |
--------------------------------------------------------------------------------
/paddlex/repo_apis/PaddleTS_api/configs/DLinear_ad.yaml:
--------------------------------------------------------------------------------
1 | batch_size: 128
2 | seq_len: 100
3 | do_eval: True
4 | epoch: 5
5 | training: True
6 | task: anomaly
7 | to_static_train: False
8 | use_amp: False
9 | amp_level: O2
10 |
11 | dataset:
12 | name: TSADDataset
13 | dataset_root: ./data/
14 | train_path: ./data/train.csv
15 | val_path: ./data/val.csv
16 | scale: True
17 | time_feat: False
18 |
19 | info_params:
20 | freq: 1
21 | label_col: "label"
22 | time_col: "timestamp"
23 | feature_cols: "feature_0,feature_1"
24 |
25 | model:
26 | name: DLinear_AD
27 | model_cfg:
28 | optimizer_params:
29 | learning_rate: 0.001
30 | gamma: 0.5
31 |
--------------------------------------------------------------------------------
/paddlex/utils/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
--------------------------------------------------------------------------------
/paddlex/repo_apis/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
--------------------------------------------------------------------------------
/deploy/ultra-infer/python/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
--------------------------------------------------------------------------------
/deploy/ultra-infer/scripts/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
--------------------------------------------------------------------------------
/paddlex/inference/common/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
--------------------------------------------------------------------------------
/paddlex/inference/utils/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
--------------------------------------------------------------------------------
/paddlex/modules/base/utils/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved.
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 |
--------------------------------------------------------------------------------
/paddlex/repo_apis/PaddleTS_api/configs/AutoEncoder_ad.yaml:
--------------------------------------------------------------------------------
1 | batch_size: 128
2 | seq_len: 100
3 | epoch: 5
4 | training: True
5 | do_eval: True
6 | task: anomaly
7 | to_static_train: False
8 | use_amp: False
9 | amp_level: O2
10 |
11 |
12 | dataset:
13 | name: TSADDataset
14 | dataset_root: ./data/
15 | train_path: ./data/train.csv
16 | val_path: ./data/val.csv
17 | scale: True
18 | time_feat: False
19 |
20 | info_params:
21 | freq: 1
22 | label_col: "label"
23 | time_col: "timestamp"
24 | feature_cols: "feature_0,feature_1"
25 |
26 | model:
27 | name: AutoEncoder
28 | model_cfg:
29 | optimizer_params:
30 | learning_rate: 0.001
31 | gamma: 0.5
32 |
--------------------------------------------------------------------------------
/paddlex/inference/genai/configs/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved.
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 |
--------------------------------------------------------------------------------
/paddlex/inference/serving/infra/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
--------------------------------------------------------------------------------
/paddlex/modules/image_unwarping/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
--------------------------------------------------------------------------------
/paddlex/repo_apis/PaddleNLP_api/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
--------------------------------------------------------------------------------
/paddlex/repo_apis/base/utils/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
--------------------------------------------------------------------------------
/deploy/ultra-infer/python/scripts/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
--------------------------------------------------------------------------------
/paddlex/inference/genai/backends/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved.
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 |
--------------------------------------------------------------------------------
/paddlex/inference/models/common/vlm/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
--------------------------------------------------------------------------------
/paddlex/inference/serving/schemas/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
--------------------------------------------------------------------------------
/paddlex/repo_apis/PaddleTS_api/configs/RLinear.yaml:
--------------------------------------------------------------------------------
1 | batch_size: 16
2 | seq_len: 96
3 | predict_len: 336
4 | do_eval: True
5 | sampling_stride: 1
6 | epoch: 10
7 | to_static_train: False
8 | use_amp: False
9 | amp_level: O2
10 |
11 |
12 | dataset:
13 | name: TSDataset
14 | dataset_root: /data/
15 | train_path: /data/train.csv
16 | val_path: /data/val.csv
17 | time_feat: False
18 | scale: True
19 |
20 | info_params:
21 | time_col: date
22 |
23 | model:
24 | name: RLinearModel
25 | model_cfg:
26 | c_in: 1
27 | dropout: 0.0
28 | optimizer_params:
29 | learning_rate: 0.001
30 | gamma: 0.5
31 | patience: 10
32 |
33 | test:
34 | stride: 1
35 |
36 |
37 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/6_hardware_contribute.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: 6. 新硬件贡献
3 | about: 请描述您准备贡献的模型与芯片信息
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 | ## Checklist:
11 |
12 | - [ ] 查找[历史相关issue](https://github.com/PaddlePaddle/PaddleX/issues)寻求解答
13 | - [ ] 翻阅[FAQ](https://paddlepaddle.github.io/PaddleX/main/FAQ.html)
14 | - [ ] 翻阅[PaddleX 文档](https://paddlepaddle.github.io/PaddleX/main/index.html)
15 |
16 |
17 | # 环境
18 |
19 | 1. 请提供您使用的PaddlePaddle版本号
20 |
21 | 2. 请提供您使用的PaddleCustomDevice版本号(如果有)
22 |
23 | 3. 请提供您使用的PaddleX或者套件的分支信息
24 |
25 | 4. 请提供您使用的机器环境(操作系统 / 芯片型号 / 硬件驱动版本 / 算子库版本等)
26 |
27 | 5. 请提供您训练模型的日志
28 |
29 | # 复现步骤
30 |
31 | 请详细描述如何复现该结果(环境准备 / 训练命令 / 精度结果等)
32 |
--------------------------------------------------------------------------------
/paddlex/inference/genai/chat_templates/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved.
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 |
--------------------------------------------------------------------------------
/paddlex/inference/serving/schemas/shared/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
--------------------------------------------------------------------------------
/paddlex/repo_apis/PaddleTS_api/ts_base/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
--------------------------------------------------------------------------------
/docs/data_annotations/time_series_modules/time_series_classification.md:
--------------------------------------------------------------------------------
1 | ---
2 | comments: true
3 | ---
4 |
5 | # PaddleX时序分类任务模块数据标注教程
6 |
7 | 标注时序分类数据时,基于收集的真实数据,明确时序数据的分类目标,并定义相应的分类标签。在`csv`文件中设置表示样本的`groud_id`列,同一个 `group_id`就表示属于同一个样本。例如,在股票价格预测中,标签可能是“上涨”(0)、“持平”(1)或“下跌”(2)。对于在一段时间是“上涨”的时间序列,可以作为一个样本(group),即这段时间序列每个时间点都具有共同的 `group_id`, 标签列我们都设置为 0 ;对于在一段时间是“下跌”的时间序列,可以作为一个样本(group),即这段时间序列每个时间点都具有共同的 `group_id`, 标签列我们都设置为2。如下图,绿色框是一个样本(groud_id=0),类别(label)是1,红色框是另一个时序分类样本(groud_id=1),类别(label)是0,如果有n个样本可以设置groud_id=0,...n-1;每个样本长度(time=0,...,9)都是10,特征维度(dim_0, dim_1)是2。
8 |
9 |
10 |
--------------------------------------------------------------------------------
/paddlex/inference/pipelines/components/utils/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
--------------------------------------------------------------------------------
/paddlex/repo_apis/PaddleTS_api/configs/PatchTST_ad.yaml:
--------------------------------------------------------------------------------
1 | batch_size: 128
2 | seq_len: 100
3 | epoch: 5
4 | training: True
5 | do_eval: True
6 | task: anomaly
7 | to_static_train: False
8 | use_amp: False
9 | amp_level: O2
10 |
11 | dataset:
12 | name: TSADDataset
13 | dataset_root: ./data/
14 | train_path: ./data/train.csv
15 | val_path: ./data/val.csv
16 | scale: True
17 | time_feat: False
18 |
19 | info_params:
20 | freq: 1
21 | label_col: "label"
22 | time_col: "timestamp"
23 | feature_cols: "feature_0,feature_1"
24 |
25 | model:
26 | name: PatchTST_AD
27 | model_cfg:
28 | optimizer_params:
29 | learning_rate: 0.001
30 | gamma: 0.5
31 |
32 | output: 'output/'
33 |
--------------------------------------------------------------------------------
/paddlex/configs/modules/open_vocabulary_segmentation/SAM-H_box.yaml:
--------------------------------------------------------------------------------
1 | Global:
2 | model: SAM-H_box
3 | mode: predict # only support predict
4 | device: gpu:0
5 | output: "output"
6 |
7 | Predict:
8 | batch_size: 1
9 | model_dir: "/path/to/SAM-H_box"
10 | input: "https://paddle-model-ecology.bj.bcebos.com/paddlex/imgs/demo_image/open_vocabulary_segmentation.jpg"
11 | prompts:
12 | box_prompt:
13 | - [112.9239273071289, 118.38755798339844, 513.7587890625, 382.0570068359375]
14 | - [4.597158432006836, 263.5540771484375, 92.20092010498047, 336.5640869140625]
15 | - [592.3548583984375, 260.8838806152344, 607.1813354492188, 294.2261962890625]
16 | kernel_option:
17 | run_mode: paddle
18 |
--------------------------------------------------------------------------------
/paddlex/repo_apis/PaddleTS_api/configs/Nonstationary.yaml:
--------------------------------------------------------------------------------
1 | batch_size: 32
2 | seq_len: 96
3 | predict_len: 96
4 | do_eval: True
5 | epoch: 5
6 | to_static_train: False
7 | use_amp: False
8 | amp_level: O2
9 |
10 |
11 | dataset:
12 | name: TSDataset
13 | dataset_root: /data/
14 | train_path: /data/train.csv
15 | val_path: /data/val.csv
16 | time_feat: True
17 | scale: True
18 |
19 | info_params:
20 | freq: 1h
21 | target_cols: "OT"
22 | time_col: date
23 |
24 | model:
25 | name: Nonstationary_Transformer
26 | model_cfg:
27 | c_in: 7
28 | factor: 1
29 | p_hidden_dims: [256, 256]
30 | optimizer_params:
31 | learning_rate: 0.0001
32 | gamma: 0.5
33 | patience: 3
34 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/PP-ShiTuV2/server/shared_mods/common/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved.
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 |
--------------------------------------------------------------------------------
/deploy/ultra-infer/python/ultra_infer/vision/ocr/ppocr/utils/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
--------------------------------------------------------------------------------
/paddlex/inference/serving/basic_serving/_pipeline_apps/_common/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
--------------------------------------------------------------------------------
/paddlex/modules/face_recognition/dataset_checker/dataset_src/utils/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
--------------------------------------------------------------------------------
/paddlex/modules/object_detection/dataset_checker/dataset_src/utils/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
--------------------------------------------------------------------------------
/paddlex/modules/video_detection/model_list.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | MODELS = ["YOWO"]
16 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/pipelines/face_recognition/server/shared_mods/common/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved.
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 |
--------------------------------------------------------------------------------
/paddlex/inference/models/common/ts/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .processors import *
16 |
--------------------------------------------------------------------------------
/paddlex/modules/anomaly_detection/dataset_checker/dataset_src/utils/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
--------------------------------------------------------------------------------
/paddlex/modules/anomaly_detection/model_list.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 |
16 | MODELS = ["STFPM"]
17 |
--------------------------------------------------------------------------------
/paddlex/modules/general_recognition/dataset_checker/dataset_src/utils/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
--------------------------------------------------------------------------------
/paddlex/modules/image_classification/dataset_checker/dataset_src/utils/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
--------------------------------------------------------------------------------
/paddlex/modules/instance_segmentation/dataset_checker/dataset_src/utils/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
--------------------------------------------------------------------------------
/paddlex/modules/keypoint_detection/dataset_checker/dataset_src/utils/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
--------------------------------------------------------------------------------
/paddlex/modules/semantic_segmentation/dataset_checker/dataset_src/utils/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
--------------------------------------------------------------------------------
/paddlex/inference/models/doc_vlm/modeling/paddleocr_vl/_refined_recompute/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved.
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 |
--------------------------------------------------------------------------------
/paddlex/inference/pipelines/ocr/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .pipeline import OCRPipeline
16 |
--------------------------------------------------------------------------------
/paddlex/modules/multilabel_classification/dataset_checker/dataset_src/utils/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
--------------------------------------------------------------------------------
/paddlex/repo_apis/PaddleSeg_api/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 |
16 | from .seg import register
17 |
--------------------------------------------------------------------------------
/paddlex/repo_apis/PaddleSeg_api/seg/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 |
16 | from . import register
17 |
--------------------------------------------------------------------------------
/paddlex/repo_apis/PaddleTS_api/ts_ad/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 |
16 | from . import register
17 |
--------------------------------------------------------------------------------
/paddlex/repo_apis/PaddleTS_api/ts_fc/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 |
16 | from . import register
17 |
--------------------------------------------------------------------------------
/deploy/ultra-infer/python/ultra_infer/vision/ocr/ppocr/utils/ser_vi_layoutxlm/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
--------------------------------------------------------------------------------
/deploy/ultra-infer/scripts/patch_lib.sh:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | patchelf --set-rpath '${ORIGIN}' $1/*.so*
16 |
--------------------------------------------------------------------------------
/docs/data_annotations/time_series_modules/time_series_anomaly_detection.en.md:
--------------------------------------------------------------------------------
1 | ---
2 | comments: true
3 | ---
4 |
5 | # PaddleX Time Series Anomaly Detection Task Module Data Annotation Tutorial
6 |
7 | Time series anomaly detection is an unsupervised learning task, thus there is no need to annotate training data. The collected training samples should ideally consist solely of normal data, i.e., no anomalies (represented by 0 for no anomaly). In the training set, the label column indicating anomalies can be set to 0 or omitted entirely. For the validation set, to evaluate model accuracy, annotations are required. For points that are anomalous at a specific time, set the label for that time point to 1, and the labels for other normal time points to 0.
8 |
--------------------------------------------------------------------------------
/paddlex/inference/models/base/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .predictor import BasePredictor
16 |
--------------------------------------------------------------------------------
/paddlex/modules/image_unwarping/model_list.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | MODELS = [
16 | "UVDoc",
17 | ]
18 |
--------------------------------------------------------------------------------
/paddlex/repo_apis/PaddleOCR_api/table_rec/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 |
16 | from . import register
17 |
--------------------------------------------------------------------------------
/paddlex/repo_apis/PaddleOCR_api/text_det/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 |
16 | from . import register
17 |
--------------------------------------------------------------------------------
/paddlex/repo_apis/PaddleOCR_api/text_rec/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 |
16 | from . import register
17 |
--------------------------------------------------------------------------------
/paddlex/repo_apis/PaddleTS_api/configs/NLinear.yaml:
--------------------------------------------------------------------------------
1 | batch_size: 16
2 | seq_len: 96
3 | predict_len: 336
4 | sampling_stride: 1
5 | do_eval: True
6 | epoch: 5
7 | to_static_train: False
8 | use_amp: False
9 | amp_level: O2
10 |
11 |
12 | dataset:
13 | name: TSDataset
14 | dataset_root: /data/
15 | train_path: /data/train.csv
16 | val_path: /data/val.csv
17 | time_feat: False
18 | scale: True
19 |
20 | info_params:
21 | time_col: date
22 |
23 | model:
24 | name: NLinearModel
25 | model_cfg:
26 | c_in: 321
27 | individual: True
28 | optimizer_params:
29 | learning_rate: 0.005
30 | gamma: 0.5
31 | patience: 3
32 | #pretrain: NLinear_init.pdparams
33 |
34 | test:
35 | stride: 1
36 |
37 |
38 |
--------------------------------------------------------------------------------
/paddlex/repo_apis/PaddleTS_api/ts_cls/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 |
16 | from . import register
17 |
--------------------------------------------------------------------------------
/paddlex/inference/models/doc_vlm/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .predictor import DocVLMPredictor
16 |
--------------------------------------------------------------------------------
/paddlex/repo_apis/PaddleOCR_api/formula_rec/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 |
16 | from . import register
17 |
--------------------------------------------------------------------------------
/paddlex/inference/models/anomaly_detection/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .predictor import UadPredictor
16 |
--------------------------------------------------------------------------------
/paddlex/inference/models/image_unwarping/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .predictor import WarpPredictor
16 |
--------------------------------------------------------------------------------
/paddlex/inference/models/keypoint_detection/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .predictor import KptPredictor
16 |
--------------------------------------------------------------------------------
/paddlex/inference/models/object_detection/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .predictor import DetPredictor
16 |
--------------------------------------------------------------------------------
/paddlex/inference/models/text_detection/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .predictor import TextDetPredictor
16 |
--------------------------------------------------------------------------------
/paddlex/inference/models/ts_classification/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .predictor import TSClsPredictor
16 |
--------------------------------------------------------------------------------
/paddlex/inference/models/ts_forecasting/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .predictor import TSFcPredictor
16 |
--------------------------------------------------------------------------------
/paddlex/inference/pipelines/pp_shitu_v2/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .pipeline import ShiTuV2Pipeline
16 |
--------------------------------------------------------------------------------
/paddlex/inference/pipelines/ts_forecasting/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .pipeline import TSFcPipeline
16 |
--------------------------------------------------------------------------------
/paddlex/modules/face_recognition/model_list.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | MODELS = ["MobileFaceNet", "ResNet50_face"]
16 |
--------------------------------------------------------------------------------
/paddlex/inference/models/base/predictor/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .base_predictor import BasePredictor
16 |
--------------------------------------------------------------------------------
/paddlex/inference/models/face_feature/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .predictor import FaceFeaturePredictor
16 |
--------------------------------------------------------------------------------
/paddlex/inference/models/image_classification/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .predictor import ClasPredictor
16 |
--------------------------------------------------------------------------------
/paddlex/inference/models/image_feature/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .predictor import ImageFeaturePredictor
16 |
--------------------------------------------------------------------------------
/paddlex/inference/models/m_3d_bev_detection/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .predictor import BEVDet3DPredictor
16 |
--------------------------------------------------------------------------------
/paddlex/inference/models/semantic_segmentation/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .predictor import SegPredictor
16 |
--------------------------------------------------------------------------------
/paddlex/inference/models/text_recognition/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .predictor import TextRecPredictor
16 |
--------------------------------------------------------------------------------
/paddlex/inference/models/ts_anomaly_detection/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .predictor import TSAdPredictor
16 |
--------------------------------------------------------------------------------
/paddlex/inference/models/video_detection/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .predictor import VideoDetPredictor
16 |
--------------------------------------------------------------------------------
/paddlex/inference/pipelines/face_recognition/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .pipeline import FaceRecPipeline
16 |
--------------------------------------------------------------------------------
/paddlex/inference/pipelines/m_3d_bev_detection/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .pipeline import BEVDet3DPipeline
16 |
--------------------------------------------------------------------------------
/paddlex/inference/pipelines/paddleocr_vl/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .pipeline import PaddleOCRVLPipeline
16 |
--------------------------------------------------------------------------------
/paddlex/inference/pipelines/ts_classification/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .pipeline import TSClsPipeline
16 |
--------------------------------------------------------------------------------
/paddlex/modules/m_3d_bev_detection/model_list.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 |
16 | MODELS = [
17 | "BEVFusion",
18 | ]
19 |
--------------------------------------------------------------------------------
/paddlex/modules/ts_classification/model_list.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 |
16 | MODELS = [
17 | "TimesNet_cls",
18 | ]
19 |
--------------------------------------------------------------------------------
/paddlex/utils/errors/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 |
16 | from .dataset_checker import *
17 | from .others import *
18 |
--------------------------------------------------------------------------------
/paddlex/constants.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from typing import Final
16 |
17 | MODEL_FILE_PREFIX: Final[str] = "inference"
18 |
--------------------------------------------------------------------------------
/paddlex/inference/models/formula_recognition/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .predictor import FormulaRecPredictor
16 |
--------------------------------------------------------------------------------
/paddlex/inference/models/instance_segmentation/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .predictor import InstanceSegPredictor
16 |
--------------------------------------------------------------------------------
/paddlex/inference/models/open_vocabulary_detection/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .predictor import OVDetPredictor
16 |
--------------------------------------------------------------------------------
/paddlex/inference/models/table_structure_recognition/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .predictor import TablePredictor
16 |
--------------------------------------------------------------------------------
/paddlex/inference/models/video_classification/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .predictor import VideoClasPredictor
16 |
--------------------------------------------------------------------------------
/paddlex/inference/pipelines/doc_preprocessor/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .pipeline import DocPreprocessorPipeline
16 |
--------------------------------------------------------------------------------
/paddlex/inference/pipelines/object_detection/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .pipeline import ObjectDetectionPipeline
16 |
--------------------------------------------------------------------------------
/paddlex/inference/pipelines/seal_recognition/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .pipeline import SealRecognitionPipeline
16 |
--------------------------------------------------------------------------------
/paddlex/inference/pipelines/video_detection/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .pipeline import VideoDetectionPipeline
16 |
--------------------------------------------------------------------------------
/deploy/ultra-infer/python/ultra_infer/utils/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 | from .example_resource import get_detection_test_image
15 |
--------------------------------------------------------------------------------
/paddlex/inference/models/image_multilabel_classification/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .predictor import MLClasPredictor
16 |
--------------------------------------------------------------------------------
/paddlex/inference/models/open_vocabulary_segmentation/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .predictor import OVSegPredictor
16 |
--------------------------------------------------------------------------------
/paddlex/inference/pipelines/anomaly_detection/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .pipeline import AnomalyDetectionPipeline
16 |
--------------------------------------------------------------------------------
/paddlex/inference/pipelines/doc_understanding/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .pipeline import DocUnderstandingPipeline
16 |
--------------------------------------------------------------------------------
/paddlex/inference/pipelines/keypoint_detection/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .pipeline import KeypointDetectionPipeline
16 |
--------------------------------------------------------------------------------
/paddlex/inference/pipelines/pp_doctranslation/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .pipeline import PP_DocTranslation_Pipeline
16 |
--------------------------------------------------------------------------------
/paddlex/inference/pipelines/ts_anomaly_detection/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .pipeline import TSAnomalyDetPipeline
16 |
--------------------------------------------------------------------------------
/paddlex/modules/keypoint_detection/dataset_checker/dataset_src/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .check_dataset import check
16 |
--------------------------------------------------------------------------------
/deploy/ultra-infer/python/ultra_infer/vision/facedet/contrib/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from __future__ import absolute_import
16 |
--------------------------------------------------------------------------------
/deploy/ultra-infer/python/ultra_infer/vision/headpose/contrib/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from __future__ import absolute_import
16 |
--------------------------------------------------------------------------------
/deploy/ultra-infer/python/ultra_infer/vision/matting/contrib/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from __future__ import absolute_import
16 |
--------------------------------------------------------------------------------
/main.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 |
16 | from paddlex.engine import Engine
17 |
18 | if __name__ == "__main__":
19 | Engine().run()
20 |
--------------------------------------------------------------------------------
/paddlex/inference/models/multilingual_speech_recognition/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .predictor import WhisperPredictor
16 |
--------------------------------------------------------------------------------
/paddlex/inference/models/open_vocabulary_segmentation/results/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .sam_result import SAMSegResult
16 |
--------------------------------------------------------------------------------
/paddlex/inference/pipelines/formula_recognition/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .pipeline import FormulaRecognitionPipeline
16 |
--------------------------------------------------------------------------------
/paddlex/inference/pipelines/image_classification/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .pipeline import ImageClassificationPipeline
16 |
--------------------------------------------------------------------------------
/paddlex/inference/pipelines/instance_segmentation/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .pipeline import InstanceSegmentationPipeline
16 |
--------------------------------------------------------------------------------
/paddlex/inference/pipelines/semantic_segmentation/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .pipeline import SemanticSegmentationPipeline
16 |
--------------------------------------------------------------------------------
/paddlex/inference/pipelines/video_classification/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .pipeline import VideoClassificationPipeline
16 |
--------------------------------------------------------------------------------
/paddlex/modules/keypoint_detection/model_list.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 |
16 | MODELS = ["PP-TinyPose_128x96", "PP-TinyPose_256x192"]
17 |
--------------------------------------------------------------------------------
/paddlex/modules/open_vocabulary_detection/model_list.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 |
16 | MODELS = ["GroundingDINO-T", "YOLO-Worldv2-L"]
17 |
--------------------------------------------------------------------------------
/deploy/ultra-infer/python/ultra_infer/vision/detection/contrib/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from __future__ import absolute_import
16 |
--------------------------------------------------------------------------------
/deploy/ultra-infer/python/ultra_infer/vision/facealign/contrib/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from __future__ import absolute_import
16 |
--------------------------------------------------------------------------------
/deploy/ultra-infer/python/ultra_infer/vision/generation/contrib/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from __future__ import absolute_import
16 |
--------------------------------------------------------------------------------
/deploy/ultra-infer/python/ultra_infer/vision/perception/paddle3d/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from __future__ import absolute_import
16 |
--------------------------------------------------------------------------------
/paddlex/inference/models/open_vocabulary_segmentation/processors/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .sam_processer import SAMProcessor
16 |
--------------------------------------------------------------------------------
/paddlex/inference/pipelines/layout_parsing/xycut_enhanced/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .utils import *
16 | from .xycuts import *
17 |
--------------------------------------------------------------------------------
/paddlex/inference/pipelines/rotated_object_detection/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .pipeline import RotatedObjectDetectionPipeline
16 |
--------------------------------------------------------------------------------
/paddlex/inference/pipelines/small_object_detection/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .pipeline import SmallObjectDetectionPipeline
16 |
--------------------------------------------------------------------------------
/deploy/hps/sdk/paddlex-hps-client/src/paddlex_hps_client/constants.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | INPUT_NAME = "input"
16 | OUTPUT_NAME = "output"
17 |
--------------------------------------------------------------------------------
/deploy/ultra-infer/python/ultra_infer/vision/classification/contrib/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from __future__ import absolute_import
16 |
--------------------------------------------------------------------------------
/paddlex/inference/pipelines/open_vocabulary_detection/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .pipeline import OpenVocabularyDetectionPipeline
16 |
--------------------------------------------------------------------------------
/paddlex/inference/serving/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from ...utils.deps import require_serving_plugin
16 |
17 | require_serving_plugin()
18 |
--------------------------------------------------------------------------------
/deploy/hps/server_env/paddlex-hps-server/src/paddlex_hps_server/constants.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | INPUT_NAME = "input"
16 | OUTPUT_NAME = "output"
17 |
--------------------------------------------------------------------------------
/deploy/hps/server_env/scripts/prepare_rc_images.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | pip_index_url=''
4 |
5 | while getopts 'p:' opt; do
6 | case "$opt" in
7 | p) pip_index_url="$OPTARG" ;;
8 | *) echo "Usage: $0 [-p pip_index_url]" >&2; exit 2 ;;
9 | esac
10 | done
11 | shift "$((OPTIND-1))"
12 |
13 | for device_type in 'gpu' 'cpu'; do
14 | args=(
15 | -f Dockerfile
16 | -t "paddlex-hps-rc:${device_type}"
17 | --target 'rc'
18 | --build-arg DEVICE_TYPE="${device_type}"
19 | --build-arg http_proxy="${http_proxy}"
20 | --build-arg https_proxy="${https_proxy}"
21 | )
22 | [[ -n "$pip_index_url" ]] && args+=( --build-arg PIP_INDEX_URL="${pip_index_url}" )
23 |
24 | DOCKER_BUILDKIT=1 docker build "${args[@]}" .
25 |
26 | done
27 |
--------------------------------------------------------------------------------
/deploy/ultra-infer/python/ultra_infer/py_only/ts/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from . import processors
16 | from .model import PyOnlyTSModel
17 |
--------------------------------------------------------------------------------
/deploy/ultra-infer/python/ultra_infer/vision/ocr/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 | from __future__ import absolute_import
15 |
16 | from .ppocr import *
17 |
--------------------------------------------------------------------------------
/paddlex/inference/genai/constants.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | SUPPORTED_BACKENDS = ("fastdeploy", "vllm", "sglang")
16 | DEFAULT_BACKEND = "fastdeploy"
17 |
--------------------------------------------------------------------------------
/paddlex/inference/pipelines/open_vocabulary_segmentation/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .pipeline import OpenVocabularySegmentationPipeline
16 |
--------------------------------------------------------------------------------
/paddlex/modules/base/dataset_checker/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 |
16 | from .dataset_checker import BaseDatasetChecker, build_dataset_checker
17 |
--------------------------------------------------------------------------------
/deploy/ultra-infer/python/ultra_infer/py_only/vision/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from . import processors
16 | from .model import PyOnlyVisionModel
17 |
--------------------------------------------------------------------------------
/deploy/ultra-infer/python/ultra_infer/ts/classification/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 | from __future__ import absolute_import
15 |
16 | from .ppts import *
17 |
--------------------------------------------------------------------------------
/deploy/ultra-infer/python/ultra_infer/ts/forecasting/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 | from __future__ import absolute_import
15 |
16 | from .ppts import *
17 |
--------------------------------------------------------------------------------
/deploy/ultra-infer/python/ultra_infer/vision/faceid/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from __future__ import absolute_import
16 | from .contrib import *
17 |
--------------------------------------------------------------------------------
/paddlex/inference/genai/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from ...utils.deps import require_genai_engine_plugin
16 |
17 | require_genai_engine_plugin()
18 |
--------------------------------------------------------------------------------
/paddlex/inference/models/doc_vlm/modeling/paddleocr_vl/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from ._paddleocr_vl import PaddleOCRVLForConditionalGeneration
16 |
--------------------------------------------------------------------------------
/paddlex/inference/pipelines/image_multilabel_classification/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .pipeline import ImageMultiLabelClassificationPipeline
16 |
--------------------------------------------------------------------------------
/paddlex/inference/pipelines/multilingual_speech_recognition/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .pipeline import MultilingualSpeechRecognitionPipeline
16 |
--------------------------------------------------------------------------------
/paddlex/modules/face_recognition/dataset_checker/dataset_src/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 |
16 | from .check_dataset import check_train, check_val
17 |
--------------------------------------------------------------------------------
/paddlex/modules/open_vocabulary_segmentation/model_list.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 |
16 | MODELS = [
17 | "SAM-H_point",
18 | "SAM-H_box",
19 | ]
20 |
--------------------------------------------------------------------------------
/paddlex/repo_apis/PaddleTS_api/configs/Nonstationary_ad.yaml:
--------------------------------------------------------------------------------
1 | batch_size: 32
2 | seq_len: 100
3 | do_eval: True
4 | epoch: 5
5 | training: True
6 | task: anomaly
7 | to_static_train: False
8 | use_amp: False
9 | amp_level: O2
10 |
11 | dataset:
12 | name: TSADDataset
13 | dataset_root: ./data/
14 | train_path: ./data/train.csv
15 | val_path: ./data/val.csv
16 | scale: True
17 | time_feat: False
18 |
19 | info_params:
20 | freq: 1
21 | label_col: "label"
22 | time_col: "timestamp"
23 | feature_cols: "feature_0,feature_1"
24 |
25 | model:
26 | name: NonStationary_AD
27 | model_cfg:
28 | c_in: 5
29 | factor: 3
30 | p_hidden_dims: [32, 32]
31 | d_model: 64
32 | d_ff: 64
33 | optimizer_params:
34 | learning_rate: 0.001
35 | gamma: 0.5
36 |
--------------------------------------------------------------------------------
/deploy/ultra-infer/python/ultra_infer/pipeline/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 | from __future__ import absolute_import
15 |
16 | from .pptinypose import PPTinyPose
17 |
--------------------------------------------------------------------------------
/deploy/ultra-infer/python/ultra_infer/ts/anomalydetection/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 | from __future__ import absolute_import
15 |
16 | from .ppts import *
17 |
--------------------------------------------------------------------------------
/deploy/ultra-infer/python/ultra_infer/vision/segmentation/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 | from __future__ import absolute_import
15 |
16 | from .ppseg import *
17 |
--------------------------------------------------------------------------------
/paddlex/inference/pipelines/components/chat_server/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .base import BaseChat
16 | from .openai_bot_chat import OpenAIBotChat
17 |
--------------------------------------------------------------------------------
/deploy/ultra-infer/python/ultra_infer/vision/sr/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 | from __future__ import absolute_import
15 | from .ppsr import PPMSVSR, EDVR, BasicVSR
16 |
--------------------------------------------------------------------------------
/deploy/ultra-infer/python/ultra_infer/vision/headpose/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from __future__ import absolute_import
16 | from .contrib.fsanet import FSANet
17 |
--------------------------------------------------------------------------------
/paddlex/inference/pipelines/attribute_recognition/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .pipeline import PedestrianAttributeRecPipeline, VehicleAttributeRecPipeline
16 |
--------------------------------------------------------------------------------
/deploy/ultra-infer/python/ultra_infer/vision/detection/contrib/rkyolo/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from __future__ import absolute_import
16 | from .rkyolov5 import *
17 |
--------------------------------------------------------------------------------
/deploy/ultra-infer/python/ultra_infer/vision/generation/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from __future__ import absolute_import
16 | from .contrib.anemigan import AnimeGAN
17 |
--------------------------------------------------------------------------------
/paddlex/inference/pipelines/layout_parsing/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .pipeline import LayoutParsingPipeline
16 | from .pipeline_v2 import LayoutParsingPipelineV2
17 |
--------------------------------------------------------------------------------
/paddlex/inference/pipelines/pp_chatocr/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .pipeline_v3 import PP_ChatOCRv3_Pipeline
16 | from .pipeline_v4 import PP_ChatOCRv4_Pipeline
17 |
--------------------------------------------------------------------------------
/deploy/ultra-infer/python/ultra_infer/vision/keypointdetection/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from __future__ import absolute_import
16 | from .pptinypose import PPTinyPose
17 |
--------------------------------------------------------------------------------
/paddlex/inference/models/common/vlm/transformers/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .configuration_utils import PretrainedConfig
16 | from .model_utils import PretrainedModel
17 |
--------------------------------------------------------------------------------
/paddlex/modules/video_detection/dataset_checker/dataset_src/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 |
16 | from .analyse_dataset import deep_analyse
17 | from .check_dataset import check
18 |
--------------------------------------------------------------------------------
/paddlex/repo_apis/PaddleTS_api/configs/TimesNet_ad.yaml:
--------------------------------------------------------------------------------
1 | batch_size: 128
2 | seq_len: 100
3 | do_eval: True
4 | epoch: 5
5 | training: True
6 | task: anomaly
7 | to_static_train: False
8 | use_amp: False
9 | amp_level: O2
10 |
11 | dataset:
12 | name: TSADDataset
13 | dataset_root: ./data/
14 | train_path: ./data/train.csv
15 | val_path: ./data/val.csv
16 | scale: True
17 | time_feat: False
18 |
19 | info_params:
20 | freq: 1
21 | label_col: "label"
22 | time_col: "timestamp"
23 | feature_cols: "feature_0,feature_1"
24 |
25 | model:
26 | name: TimesNet_AD
27 | model_cfg:
28 | e_layers: 2
29 | num_kernels: 6
30 | d_model: 32
31 | d_ff: 64
32 | top_k: 3
33 | window_sampling_limit: Null
34 | optimizer_params:
35 | learning_rate: 0.0005
36 | gamma: 0.9
37 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/5_other.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: 5. 其它类型问题
3 | about: 所有问题都可以在这里提
4 | title: ''
5 | labels: ''
6 | assignees: ''
7 |
8 | ---
9 |
10 | ## Checklist:
11 |
12 | - [ ] 查找[历史相关issue](https://github.com/PaddlePaddle/PaddleX/issues)寻求解答
13 | - [ ] 翻阅[FAQ](https://paddlepaddle.github.io/PaddleX/main/FAQ.html)
14 | - [ ] 翻阅[PaddleX 文档](https://paddlepaddle.github.io/PaddleX/main/index.html)
15 | - [ ] 确认bug是否在新版本里还未修复
16 |
17 | ## 描述问题
18 |
19 | ## 复现
20 |
21 | 1. 您是否已经正常运行我们提供的[教程](https://paddlepaddle.github.io/PaddleX/main/index.html)?
22 |
23 | 2. 您是否在教程的基础上修改代码内容?还请您提供运行的代码
24 |
25 | 3. 您使用的数据集是?
26 |
27 | 4. 请提供您出现的报错信息及相关log
28 |
29 | ## 环境
30 |
31 | 1. 请提供您使用的PaddlePaddle和PaddleX的版本号
32 |
33 | 2. 请提供您使用的操作系统信息,如Linux/Windows/MacOS
34 |
35 | 3. 请问您使用的Python版本是?
36 |
37 | 5. 请问您使用的CUDA/cuDNN的版本号是?
38 |
--------------------------------------------------------------------------------
/paddlex/inference/pipelines/table_recognition/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .pipeline import TableRecognitionPipeline
16 | from .pipeline_v2 import TableRecognitionPipelineV2
17 |
--------------------------------------------------------------------------------
/paddlex/modules/m_3d_bev_detection/dataset_checker/dataset_src/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 |
16 | from .analyse_dataset import deep_analyse
17 | from .check_dataset import check
18 |
--------------------------------------------------------------------------------
/paddlex/repo_apis/Paddle3D_api/bev_fusion/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 |
16 | from . import register
17 | from .model import BEVFusionModel
18 | from .runner import BEVFusionRunner
19 |
--------------------------------------------------------------------------------
/paddlex/repo_apis/PaddleClas_api/shitu_rec/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 |
16 | from . import register
17 | from .model import ShiTuRecModel
18 | from .runner import ShiTuRecRunner
19 |
--------------------------------------------------------------------------------
/deploy/ultra-infer/python/ultra_infer/py_only/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from . import ts, vision
16 | from .base import PyOnlyUltraInferModel, PyOnlyProcessor, PyOnlyProcessorChain
17 |
--------------------------------------------------------------------------------
/paddlex/inference/models/doc_vlm/processors/paddleocr_vl/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2025 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from ._paddleocr_vl import PaddleOCRVLProcessor
16 | from ._siglip import SiglipImageProcessor
17 |
--------------------------------------------------------------------------------
/paddlex/repo_apis/PaddleClas_api/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 |
16 | from .cls import ClsModel, ClsRunner, register
17 | from .shitu_rec import ShiTuRecModel, ShiTuRecRunner, register
18 |
--------------------------------------------------------------------------------
/paddlex/repo_apis/PaddleTS_api/configs/PatchTST.yaml:
--------------------------------------------------------------------------------
1 | batch_size: 32
2 | seq_len: 96
3 | predict_len: 96
4 | do_eval: True
5 | epoch: 5
6 | to_static_train: False
7 | use_amp: False
8 | amp_level: O2
9 |
10 | dataset:
11 | name: TSDataset
12 | dataset_root: /data/
13 | train_path: /data/train.csv
14 | val_path: /data/val.csv
15 | time_feat: False
16 | scale: True
17 |
18 |
19 | info_params:
20 | freq: 1h
21 | target_cols: "OT"
22 | time_col: date
23 |
24 |
25 | model:
26 | name: PatchTSTModel
27 | model_cfg:
28 | c_in: 7
29 | n_layers: 3
30 | n_heads: 4
31 | d_model: 16
32 | d_ff: 128
33 | dropout: 0.3
34 | fc_dropout: 0.3
35 | head_dropout: 0.0
36 | patch_len: 16
37 | stride: 8
38 | patience: 20
39 | optimizer_params:
40 | learning_rate: 0.0001
41 |
--------------------------------------------------------------------------------
/deploy/ultra-infer/python/ultra_infer/vision/faceid/contrib/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from __future__ import absolute_import
16 | from .insightface import *
17 | from .adaface import *
18 |
--------------------------------------------------------------------------------
/paddlex/modules/table_recognition/model_list.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 |
16 | MODELS = [
17 | "SLANet",
18 | "SLANet_plus",
19 | "SLANeXt_wired",
20 | "SLANeXt_wireless",
21 | ]
22 |
--------------------------------------------------------------------------------
/paddlex/repo_apis/PaddleClas_api/shitu_rec/model.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 |
16 | from ..cls import ClsModel
17 |
18 |
19 | class ShiTuRecModel(ClsModel):
20 | """ShiTu Recognition Model"""
21 |
--------------------------------------------------------------------------------
/paddlex/inference/pipelines/components/retriever/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | from .openai_bot_retriever import OpenAIBotRetriever
16 | from .qianfan_bot_retriever import QianFanBotRetriever
17 |
--------------------------------------------------------------------------------
/paddlex/modules/general_recognition/model_list.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 | MODELS = [
16 | "PP-ShiTuV2_rec",
17 | "PP-ShiTuV2_rec_CLIP_vit_base",
18 | "PP-ShiTuV2_rec_CLIP_vit_large",
19 | ]
20 |
--------------------------------------------------------------------------------
/paddlex/repo_apis/PaddleDetection_api/instance_seg/__init__.py:
--------------------------------------------------------------------------------
1 | # Copyright (c) 2024 PaddlePaddle Authors. All Rights Reserved.
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 |
15 |
16 | from . import register
17 | from .model import InstanceSegModel
18 | from .runner import InstanceSegRunner
19 |
--------------------------------------------------------------------------------