sbt-idp/cope2n-ai-fi/modules/ocr_engine/externals/sdsv_dewarp/README.md

30 lines
488 B
Markdown
Raw Normal View History

2023-11-30 11:22:16 +00:00
<p align="center">
<h1 align="center">Dewarp</h1>
</p>
***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'
```