sbt-idp/cope2n-ai-fi/configs/sdsap_sbt/configs.py

35 lines
1.4 KiB
Python
Raw Normal View History

2023-11-30 11:22:16 +00:00
device = "cuda:0"
ocr_engine = {
"detector": {
2023-12-15 09:19:46 +00:00
"version": "/workspace/cope2n-ai-fi/weights/models/ocr_engine/sdsvtd/epoch_94_params.pth",
2023-11-30 11:22:16 +00:00
"rotator_version": "/workspace/cope2n-ai-fi/weights/models/ocr_engine/sdsvtd/best_bbox_mAP_epoch_30_lite.pth",
"device": device
},
"recognizer": {
2023-12-15 09:19:46 +00:00
"version": "/workspace/cope2n-ai-fi/weights/models/sdsvtr/hub/sbt_20231210_sdsrv.pth",
2023-11-30 11:22:16 +00:00
"device": device
},
"deskew": {
"enable": True,
"text_detector": {
"config": "/workspace/cope2n-ai-fi/modules/ocr_engine/externals/sdsv_dewarp/config/det.yaml",
"weight": "/workspace/cope2n-ai-fi/weights/models/ocr_engine/sdsv_dewarp/ch_PP-OCRv3_det_infer"
},
"text_cls": {
"config": "/workspace/cope2n-ai-fi/modules/ocr_engine/externals/sdsv_dewarp/config/cls.yaml",
"weight": "/workspace/cope2n-ai-fi/weights/models/ocr_engine/sdsv_dewarp/ch_ppocr_mobile_v2.0_cls_infer"
},
"device": device
}
}
kvu_model = {
"device": device,
"mode": 4,
"option": "sbt_v2",
"model": {
"pretrained_model_path": "/workspace/cope2n-ai-fi/weights/layoutxlm-base",
2023-12-05 12:18:53 +00:00
"config": "/workspace/cope2n-ai-fi/weights/models/sdsvkvu/key_value_understanding_for_sbt-20231130-184433/base.yaml",
"checkpoint": "/workspace/cope2n-ai-fi/weights/models/sdsvkvu/key_value_understanding_for_sbt-20231130-184433/checkpoints/best_model.pth"
2023-11-30 11:22:16 +00:00
}
}