[2b63f5]: / download_data.sh

Download this file

23 lines (16 with data), 626 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
# create a directory
mkdir brain_tumor_dataset
cd brain_tumor_dataset
# download the dataset
wget -O temp.zip -q https://ndownloader.figshare.com/articles/1512427/versions/5
# unzip the dataset and delete the zip
unzip -q temp.zip && rm temp.zip
# concatenate the multiple zipped data in a single zip
cat brainTumorDataPublic_* > brainTumorDataPublic_temp.zip
zip -FF brainTumorDataPublic_temp.zip --out data.zip > progress.txt
# remove the temporary files
rm brainTumorDataPublic_*
# unzip the full archive and delete it
unzip -q data.zip -d data && rm data.zip
# check that "data" contains 3064 files
ls data | wc -l