Download scripts/z_dl.sh from leiwx52/ViT-Lens-dev: direct link, hf CLI and curl.
- Browser
- Download file 535 Bytes
-
https://huggingface.co/leiwx52/ViT-Lens-dev/resolve/c818c087db4f524e68f5af75e94de0de2acccbf1/scripts/z_dl.sh
- Command line
-
hf download hf://leiwx52/ViT-Lens-dev@c818c087db4f524e68f5af75e94de0de2acccbf1/scripts/z_dl.sh
-
curl -L -o z_dl.sh https://huggingface.co/leiwx52/ViT-Lens-dev/resolve/c818c087db4f524e68f5af75e94de0de2acccbf1/scripts/z_dl.sh
535 Bytes
| set -e | |
| DOWNLOAD_DIR="/data/batch_results" | |
| HUGGINGFACE_TOKEN="" | |
| mkdir -p "${DOWNLOAD_DIR}" | |
| cd "${DOWNLOAD_DIR}" | |
| for i in $(seq -w 0 9); do | |
| url="https://huggingface.co/leiwx52/ViT-Lens-dev/resolve/main/batch_result_v0.zip.part_0${i}" | |
| echo "Downloading ${url} ..." | |
| hf download leiwx52/ViT-Lens-dev batch_result_v0.zip.part_0${i} --local-dir "${DOWNLOAD_DIR}/" | |
| done | |
| echo "All parts downloaded. Combining and unzipping..." | |
| cat batch_result_v0.zip.part_* > batch_result_v0.zip | |
| unzip -o batch_result_v0.zip | |
| echo "Done." |