Files
video-subtitle-remover/backend/models/V5/ch_det/config.json
flavioy 70e669e9d4 升级 PaddleOCR 至 3.4.0,移除 PP-OCRv4 模型
- 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>
2026-04-07 22:34:36 +08:00

111 lines
2.8 KiB
JSON

{
"Global": {
"model_name": "PP-OCRv5_server_det"
},
"Hpi": {
"backend_configs": {
"paddle_infer": {
"trt_dynamic_shapes": {
"x": [
[
1,
3,
32,
32
],
[
1,
3,
736,
736
],
[
1,
3,
4000,
4000
]
]
}
},
"tensorrt": {
"dynamic_shapes": {
"x": [
[
1,
3,
32,
32
],
[
1,
3,
736,
736
],
[
1,
3,
4000,
4000
]
]
}
}
}
},
"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
}
}