-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinit.sh
More file actions
executable file
·32 lines (28 loc) · 773 Bytes
/
Copy pathinit.sh
File metadata and controls
executable file
·32 lines (28 loc) · 773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# # copy dataset to current folder
# echo 'Copying data to current folder'
# ## miniimagenet
# cp /mnt/vinai/projects/poodle/dataset/images.zip data
# ## tiered imagenet
# cp /mnt/vinai/projects/poodle/dataset/tiered-imagenet.tar data
# ## CUB
# cp /mnt/vinai/projects/poodle/dataset/CUB_200_2011.tgz data
# Unzip
echo 'Extract compressed files'
cd data &&
unzip images.zip &&
tar -xvf tiered-imagenet.tar &&
tar -xvf CUB_200_2011.tgz &&
cd ..
# remove
echo 'Removing redundant files'
cd data &&
rm images.zip
rm tiered-imagenet.tar
rm CUB_200_2011.tgz
cd ..
# Run split
echo 'Splitting dataset'
### tiered standard split
python src/utils/data_split/tieredImagenet.py
### cub standard split (a closer look - chen et al., 2019)
python src/utils/data_split/cub.py