Skip to content
This repository was archived by the owner on Mar 1, 2024. It is now read-only.

Update to get_train_and_benchmark_data.py #113

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions scripts/get_train_and_benchmark_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@ fi

fileid="1IDjXFnNnHf__MO5j_onw4YwR97oS8lAy"
filename="data/train_and_benchmark_data.zip"
curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}" > /dev/null
curl -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=`awk '/download/ {print $NF}' ./cookie`&id=${fileid}" -o ${filename}
rm cookie
html=`curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${fileid}"`
curl -Lb ./cookie "https://drive.google.com/uc?export=download&`echo ${html}|grep -Po '(confirm=[a-zA-Z0-9\-_]+)'`&id=${fileid}" -o ${filename}

unzip -d $benchmark_data_folder $filename
rm $filename

mv $benchmark_data_folder/data/* $benchmark_data_folder/
rm -r $benchmark_data_folder/data/
rm -r $benchmark_data_folder/data/