Download scripts/r5_linedet/fetch_weights.sh from treoa/turkic-ocr-code: direct link, hf CLI and curl.
- Browser
- Download file 940 Bytes
-
https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/r5_linedet/fetch_weights.sh
- Command line
-
hf download hf://treoa/turkic-ocr-code/scripts/r5_linedet/fetch_weights.sh
-
curl -L -o fetch_weights.sh https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/r5_linedet/fetch_weights.sh
940 Bytes
| # Download the two kraken PP-OCRv6 weight files from Zenodo (records 21788410 medium, 21788405 small), verify md5. | |
| set -eu | |
| DATA=/path/to/TURKIC_OCR_DATA | |
| unset HF_TOKEN HUGGING_FACE_HUB_TOKEN | |
| M=$DATA/data/raw/zenodo_ppocrv6_medium_21788410; S=$DATA/data/raw/zenodo_ppocrv6_small_21788405 | |
| mkdir -p $M $S | |
| curl -sSfL -o $M/medium.safetensors https://zenodo.org/records/21788410/files/medium.safetensors | |
| curl -sSfL -o $M/README.md https://zenodo.org/records/21788410/files/README.md | |
| curl -sSfL -o $S/small.safetensors https://zenodo.org/records/21788405/files/small.safetensors | |
| curl -sSfL -o $S/README.md https://zenodo.org/records/21788405/files/README.md | |
| md5sum $M/medium.safetensors $S/small.safetensors | |
| sha256sum $M/medium.safetensors $S/small.safetensors $M/README.md $S/README.md | tee $DATA/checksums/r5_ppocrv6_weights.sha256 | |
| echo "expected md5 medium e3411a453ce3b9e9efae3f8631d85762 small 07279cd68cd4402807542799f12d0f4a" | |