#!/bin/bash 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."