ZZZHANG-jx/DocRes
소개
[CVPR 2024] DocRes: 문서 이미지 복원 작업의 통합을 지향하는 범용 모델
디자인 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- +3
- in 15 days
- +4
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original
This is the official implementation of our paper DocRes: A Generalist Model Toward Unifying Document Image Restoration Tasks.
News
🔥 [2025.7] Our paper "Aesthetics is Cheap, Show me the Text: An Empirical Evaluation of State-of-the-Art Generative Models for OCR", which conducts a comprehensive evaluation of SOTA generative models has been online at arXiv. 🔥
🔥 [2025.6] Beyond GPT-4o, we evaluate more SOTA generative models' image generation abilities in various document processing tasks. Check here! 🔥
🎉 [2025.5] We evaluate the image generation ability of GPT-4o, including various document processing tasks. Check here! 🔥
🎉 [2025.2] Our new work LGGPT has been accepted to IJCV 2025, an LLM that unifies versatile layout generation tasks! Welcome to follow!
🔥 A comprehensive Recommendation for Document Image Processing is available.
Inference
- Put MBD model weights mbd.pkl to
./data/MBD/checkpoint/ - Put DocRes model weights docres.pkl to
./checkpoints/ - Run the following script and the results will be saved in
./restorted/. We have provided some distorted examples in./input/.
python inference.py --im_path ./input/for_dewarping.png --task dewarping --save_dtsprompt 1
--im_path: the path of input document image--task: task that need to be executed, it must be one of dewarping, deshadowing, appearance, deblurring, binarization, or end2end--save_dtsprompt: whether to save the DTSPrompt
Evaluation
- Dataset preparation, see dataset instruction
- Put MBD model weights mbd.pkl to
data/MBD/checkpoint/ - Put DocRes model weights docres.pkl to
./checkpoints/ - Run the following script
python eval.py --dataset realdae
--dataset: dataset that need to be evaluated, it can be set as dir300, kligler, jung, osr, docunet_docaligner, realdae, tdd, and dibco18.
Training
- Dataset preparation, see dataset instruction
- Specify the datasets_setting within
train.pybased on your dataset path and experimental setting. - Run the following script
bash start_train.sh
Citation
@inproceedings{zhangdocres2024,
Author = {Jiaxin Zhang, Dezhi Peng, Chongyu Liu , Peirong Zhang and Lianwen Jin},
Booktitle = {In Proceedings of the IEEE/CV Conference on Computer Vision and Pattern Recognition},
Title = {{DocRes: A Generalist Model Toward Unifying Document Image Restoration Tasks}},
Year = {2024}}
⭐ Star Rising
관련 프로젝트 살펴보기
불러오는 중…