File size: 535 Bytes
7e4bbca
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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."