sbt-idp/cope2n-ai-fi/modules/ocr_engine/externals/sdsv_dewarp/README.md
2023-11-30 18:22:16 +07:00

488 B

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'