sbt-idp/cope2n-ai-fi/modules/ocr_engine/externals/sdsv_dewarp
2023-11-30 18:22:16 +07:00
..
config Add everything 2023-11-30 18:22:16 +07:00
sdsv_dewarp Add everything 2023-11-30 18:22:16 +07:00
sdsv_dewarp.egg-info Add everything 2023-11-30 18:22:16 +07:00
.gitignore Add everything 2023-11-30 18:22:16 +07:00
README.md Add everything 2023-11-30 18:22:16 +07:00
requirements.txt Add everything 2023-11-30 18:22:16 +07:00
setup.py Add everything 2023-11-30 18:22:16 +07:00
test.py Add everything 2023-11-30 18:22:16 +07:00

Dewarp

Feature

  • Align document

I. Setup

Dependencies

  • Python: 3.8
  • Torch: 1.10.2
  • CUDA: 11.6
  • transformers: 4.28.1

1. Install PaddlePaddle

python -m pip install paddlepaddle-gpu==2.4.2.post116 -f https://www.paddlepaddle.org.cn/whl/linux/mkl/avx/stable.html

2. Install sdsv_dewarp

pip install -v -e .

II. Test

python test.py --input samples --out demo/outputs --device 'cuda'