mirror of
https://github.com/YaoFANGUK/video-subtitle-remover.git
synced 2026-05-06 01:07:30 +08:00
- PaddleOCR 2.10.0 升级至 3.4.0,使用新的 TextDetection API 替代旧版 TextDetector - V5 模型替换为 PaddleX 格式(inference.pdiparams + inference.yml) - 移除 PP-OCRv4 模型(backend/models/V4),仅保留 PP-OCRv5 - 字幕检测选项重命名为"快速"和"精准" - 清理 requirements.txt,移除 11 个未使用的依赖,补充缺失的依赖 - 更新设计素材 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
54 lines
903 B
YAML
54 lines
903 B
YAML
Global:
|
|
model_name: PP-OCRv5_server_det
|
|
Hpi:
|
|
backend_configs:
|
|
paddle_infer:
|
|
trt_dynamic_shapes: &id001
|
|
x:
|
|
- - 1
|
|
- 3
|
|
- 32
|
|
- 32
|
|
- - 1
|
|
- 3
|
|
- 736
|
|
- 736
|
|
- - 1
|
|
- 3
|
|
- 4000
|
|
- 4000
|
|
tensorrt:
|
|
dynamic_shapes: *id001
|
|
PreProcess:
|
|
transform_ops:
|
|
- DecodeImage:
|
|
channel_first: false
|
|
img_mode: BGR
|
|
- DetLabelEncode: null
|
|
- DetResizeForTest:
|
|
resize_long: 960
|
|
- NormalizeImage:
|
|
mean:
|
|
- 0.485
|
|
- 0.456
|
|
- 0.406
|
|
order: hwc
|
|
scale: 1./255.
|
|
std:
|
|
- 0.229
|
|
- 0.224
|
|
- 0.225
|
|
- ToCHWImage: null
|
|
- KeepKeys:
|
|
keep_keys:
|
|
- image
|
|
- shape
|
|
- polys
|
|
- ignore_tags
|
|
PostProcess:
|
|
name: DBPostProcess
|
|
thresh: 0.3
|
|
box_thresh: 0.6
|
|
max_candidates: 1000
|
|
unclip_ratio: 1.5
|