File size: 940 Bytes
24aaa76
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
# 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"