Open letyrodridc opened 2 years ago
The section dataset download and conversion proposes a script for extracting ILSVRC2012 .tar in the corresponding directory. Link to the wikipage: https://github.com/google-research/meta-dataset/blob/main/doc/dataset_conversion.md#ilsvrc_2012
Script:
for FILE in *.tar; do mkdir ${FILE/.tar/}; cd ${FILE/.tar/}; tar xvf ../$FILE; cd ..; done
It didn't work for me. I used instead:
for FILE in *.tar; do TARGET=`echo "$FILE" | sed 's/\.tar//'`; mkdir $TARGET; cd ${TARGET}; tar xvf ../$FILE; cd ..; done
Thank you for pointing this out! Perhaps there are some differences between shells in how pattern replacement in variables behave? In any case, I'll add a mention of that in the documentation.
The section dataset download and conversion proposes a script for extracting ILSVRC2012 .tar in the corresponding directory. Link to the wikipage: https://github.com/google-research/meta-dataset/blob/main/doc/dataset_conversion.md#ilsvrc_2012
Script:
It didn't work for me. I used instead: