File size: 643 Bytes
accd45d 8a40a4b accd45d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
# Awasome OCR
```bash
huggingface-cli login
# Usage: huggingface-cli upload [repo_id] [local_path] [path_in_repo]
>>> huggingface-cli upload maze/awasome-ocr ./models/model.safetensors model.safetensors
```
## DeepSolo
``` bash
# for english
python demo/demo.py --input /root/sample.jpg --output /root/output.jpg --config-file configs/R_50/TotalText/finetune_150k_tt_mlt_13_15_textocr.yaml --opts MODEL.WEIGHTS tt_res50_finetune_synth-tt-mlt-13-15-textocr.pth
# for chinese
python demo/demo.py --input /root/sample.jpg --output /root/output.jpg --config-file configs/R_50/ReCTS/finetune.yaml --opts MODEL.WEIGHTS rects_res50_finetune.pth
``` |