Commit 923f497c9e908459b7466e9ede8d4e4d5a7884ca
1 parent
11ea4c85
Add KTH to the downloadDatasets script
Showing
3 changed files
with
20 additions
and
0 deletions
data/KTH/README.md
0 → 100644
data/README.md
| ... | ... | @@ -9,6 +9,7 @@ |
| 9 | 9 | * [MEDS](MEDS/README.md) |
| 10 | 10 | * [MNIST](MNIST/README.md) |
| 11 | 11 | * [PCSO](PCSO/README.md) |
| 12 | +* [KTH](KTH/README.md) | |
| 12 | 13 | |
| 13 | 14 | For both practical and legal reasons we only include images for some of the datasets in this repository. |
| 14 | 15 | Researchers should contact the respective owners of the other datasets in order to obtain a copy. | ... | ... |
scripts/downloadDatasets.sh
| ... | ... | @@ -48,3 +48,19 @@ if [ ! -d ../data/MEDS/img ]; then |
| 48 | 48 | mv data/*/*.jpg ../data/MEDS/img |
| 49 | 49 | rm -r data NIST_SD32_MEDS-II_face.zip |
| 50 | 50 | fi |
| 51 | + | |
| 52 | +# KTH | |
| 53 | +if [ ! -d ../data/KTH/vid ]; then | |
| 54 | + echo "Downloading KTH..." | |
| 55 | + mkdir ../data/KTH/vid | |
| 56 | + for vidclass in {'boxing','handclapping','handwaving','jogging','running','walking'}; do | |
| 57 | + if hash curl 2>/dev/null; then | |
| 58 | + curl -OL http://www.nada.kth.se/cvap/actions/${vidclass}.zip | |
| 59 | + else | |
| 60 | + wget http://www.nada.kth.se/cvap/actions/${vidclass}.zip | |
| 61 | + fi | |
| 62 | + mkdir ../data/KTH/vid/${vidclass} | |
| 63 | + unzip ${vidclass}.zip -d ../data/KTH/vid/${vidclass} | |
| 64 | + rm ${vidclass}.zip | |
| 65 | + done | |
| 66 | +fi | ... | ... |