|
# 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 |
|
``` |