Downloads · 30 days
0
Raphael2099/chujian-ocr-models
chujian-ocr-models is a image-to-text model from Raphael2099. Use it when you need a caption or text from an image. The card lists the license as other.
Chu bamboo-slip (战国楚简) character detection + recognition models, sealed evaluation packages and Docker reproduction bundles. GOAI 2026 世界人工智能开源大赛 · 赛道三「前沿探索 AI for Research」总决赛作品(队伍:炸酱面;北京师范大学文学院 王逸飞)。
Downloads · 30 days
0
Access
Public
Updated Sep 22, 2026
Repo size
84.7 GB
Likes
0
Public
Click a slice to open those files.
.ckpt33.4 GB · 38%
From the Hugging Face model README
Chu bamboo-slip (战国楚简) character detection + recognition models, sealed evaluation packages and Docker reproduction bundles. GOAI 2026 世界人工智能开源大赛 · 赛道三「前沿探索 AI for Research」总决赛作品(队伍:炸酱面;北京师范大学文学院 王逸飞)。
本仓库是项目「从编联到考释的全链路架构(From token to text)」中 CV 检测识别环节 的权重、封板评测与提交物镜像。LLM 断句标点翻译与 RAG 考释部分的代码在 goai2026_final_20260920/code/。
| 环节 | 架构 | 权重 | 类别数 | SHA-256(前 8 位) | 字节 |
|---|---|---|---|---|---|
| 检测 | RF-DETR Medium(版式扰动臂 v2,best_qualified_ema E90) | docker_reproduce_20260918/weights/det/layoutaug_E150CAP_v2_w12/best_qualified_ema_E090.pth | 单类 char | a5cef67b | 139,331,255 |
| 识别(默认) | ConvNeXt-Large DINOv3(convnext_large.dinov3_lvd1689m,输入 224) | docker_reproduce_20260918/weights/rec/formal_g125_monitor50_v2/ep100.pt(E100) | 9,629 | 25752629 | 844,606,927 |
| 识别(备选) | 同上,SSL 预训练后微调 | docker_reproduce_20260918/weights/rec/formal_ssl_ft_v3_4/ep050.pt(E050) | 9,629 | ea78e225 | 844,607,119 |
| 类表 | — | docker_reproduce_20260918/weights/rec/meta/classes.json | 9,629 | 61e634f5 | 364,204 |
完整 SHA-256、镜像层摘要与代码目录摘要见 docker_reproduce_20260918/SEALED.json 与 SEALED_CONSISTENCY.md(封板 2026-09-19)。
流程:整简图 → 长简分段 → RF-DETR 检测字框 → 坐标逆变换去重 → 原图裁字 → ConvNeXt 识别 → 严式释文 +(宽式)读法。 输出每个字的原图框、top-k 候选与置信度,并按「红绿灯」(绿 = 高置信正确 / 黄 = 大体正确存疑 / 红 = 明显问题)供人工审计。
评测集:赵晓斌四篇论文公布的 66 幅图版 / 1,380 个 GT 框 / 1,148 个可评字(goai2026_submission_v1/benchmark/,即 chujian_fourpaper_benchmark_v1)。τ = 0.51,IoU = 0.5。
| 层级 | 口径 | TP | FP | FN | P | R | F1 |
|---|---|---|---|---|---|---|---|
| 端到端(检测 E90 → 裁字 → 识别 E100,选择性屏蔽 212) | 宽严兼容 v2(主口径) | 933 | 217 | 215 | 81.13% | 81.27% | 81.20% |
| 端到端 | 字形 v2(并列主口径) | 879 | 271 | 269 | 76.43% | 76.57% | 76.50% |
| 检测单独 | 框级 | 1296 | 20 | 84 | 98.48% | 93.91% | 96.14% |
| 识别单独(GT 框直喂 1,148 框) | 宽严兼容 v2 / 字形 v2 | — | — | — | — | — | 81.97% / 77.53% |
--mask none)的数字只作参考。goai2026_submission_v1,公开权重 H2 + MAIN)的口径为检测 F1 90.80% / 端到端 73.19%(MAIN)→ 77.92%(E100),与封板口径不混算。CUDA 镜像(权重、冻结代码、评分器、GT 随镜像;图片运行时挂载):
docker run --rm --gpus all --shm-size=1g \
-v <chujian_fourpaper_benchmark_v1>:/data -v <outdir>:/out \
chujian:best pipeline --images /data/images --gt /data/annotations/gt_boxes.jsonl --out /out
docker run --rm chujian:best verify # 核对镜像层、权重 SHA、评分器与 GT
镜像 tgz 与构建文件:handoff_20260918/docker/、docker_reproduce_20260918/(Dockerfile、build.sh、download_weights.sh、THIRD_PARTY_LICENSES.md、COMPLIANCE.md、DATA_SOURCES.md)。
纯 CPU 一键冒烟(< 1 分钟,复算复赛口径指标与日志计数):解压 goai2026_final_20260920/packages/…代码材料.zip 后
bash scripts/smoke_test.sh
bash scripts/reproduce_core.sh
只重算分数(不跑模型):python3 tools/score_predictions.py --gt annotations/gt_boxes.jsonl --pred predictions/E100_sel212/predictions.jsonl(在评测包目录内)。
| 目录 | 内容 |
|---|---|
docker_reproduce_20260918/ | 封板复现包:权重(det / rec)、SEALED.json、SCORECARD.md、Dockerfile、合规与数据来源说明 |
goai2026_final_20260920/ | 总决赛官网提交物原样镜像:两个 zip(非代码材料 / 代码材料)+ 可浏览的 code/(pipeline、RAG、脚本、日志、参照系) |
goai2026_submission_v1/ | 复赛提交版:benchmark/(四篇评测包)、pipeline/、Dockerfile、LICENSE、SHA256SUMS、training_data_recipe/ |
goai2026_docker_cpu_cuda_v2_20260903/、goai2026_docker_supplement_20260903/、goai2026_submission_packages_20260903/、pipeline_submission_20260903/ | 复赛阶段的镜像与补充材料 |
handoff_20260918/ | 交接包(含 CV 封板镜像 tgz 与联合镜像) |
recognizer_r2/、recognizer_r2c/ | 识别器训练 run(配方、日志、检查点) |
rf_sq_formal1_e200/、rf_sq_formal1_factor/ | 检测器几何消融(H1 方形 letterbox vs H2 等面积矩形)与单因素实验 |
upstream/ | 第三方模型镜像(PaddleOCR-VL-1.5、PP-DocLayoutV3),出处与 SHA 见 MIRROR_PROVENANCE.md |
chujian-train-20260830、chujian-train-r2、chujian-eval-20260830、chujian-ocr-sources、chujian-ocr-shiwen-20260901、chujian-pipeline-archive。其中 2020 年前 已发表材料的 A 路坐标标注(由公开单字图代回原简反求)随包公开。tools/ 与 scripts/:MIT(见 goai2026_submission_v1/LICENSE,范围以该文件为准)。docker_reproduce_20260918/THIRD_PARTY_LICENSES.md。王逸飞. 简AI:古文字识别与出土文献研究智能体——从编联到考释的全链路架构 [CP/OL]. 2026.
https://huggingface.co/Raphael2099/chujian-ocr-models
致谢:北京师范大学文学院于雨成提供仿真竹简;复旦金文识别比赛 orz、xmc、Darkscope 等队伍选手分享经验;早稻田大学计算机学院刘文军提供 CV 思路。
English summary. Detection (RF-DETR Medium, layout-augmentation arm v2, E90) and recognition (ConvNeXt-Large DINOv3, 9,629 classes, E100) models for Warring-States Chu bamboo-slip characters, with a sealed evaluation on 66 plates / 1,380 boxes from four recently published papers by Zhao Xiaobin: detection F1 96.14%, end-to-end F1 81.20% (loose/strict-compatible v2) and 76.50% (glyph v2). The four papers served as a monitoring validation set, not a blind test. Docker reproduction bundle, sealed SHA manifests, scoring tools and the competition submission mirrors are included. Tools/scripts are MIT (scoped); weights and annotations are research-only pending a final license; third-party components keep their upstream licenses.