Datasets:
Download tutorial/download.sh from Daisyamanda/ScienceQA: direct link, hf CLI and curl.
- Browser
- Download file 684 Bytes
-
https://huggingface.co/datasets/Daisyamanda/ScienceQA/resolve/main/tutorial/download.sh
- Command line
-
hf download hf://datasets/Daisyamanda/ScienceQA/tutorial/download.sh
-
curl -L -o download.sh https://huggingface.co/datasets/Daisyamanda/ScienceQA/resolve/main/tutorial/download.sh
684 Bytes
| # Modified from the original here: https://github.com/lupantech/ScienceQA/blob/main/tools/download.sh | |
| cd images | |
| if [ -d "train" ]; | |
| then | |
| echo "Already downloaded train" | |
| else | |
| ls -alF | |
| wget https://scienceqa.s3.us-west-1.amazonaws.com/images/train.zip | |
| unzip -q train.zip | |
| rm train.zip | |
| fi | |
| if [ -d "val" ]; | |
| then | |
| echo "Already downloaded val" | |
| else | |
| ls -alF | |
| wget https://scienceqa.s3.us-west-1.amazonaws.com/images/val.zip | |
| unzip -q val.zip | |
| rm val.zip | |
| fi | |
| if [ -d "test" ]; | |
| then | |
| echo "Already downloaded test" | |
| else | |
| ls -alF | |
| wget https://scienceqa.s3.us-west-1.amazonaws.com/images/test.zip | |
| unzip -q test.zip | |
| rm test.zip | |
| fi | |
| echo "Completed downloads!" |