Skip to content

Instantly share code, notes, and snippets.

@carpedm20
Created October 7, 2014 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save carpedm20/eec3350a0679a61603b7 to your computer and use it in GitHub Desktop.
Save carpedm20/eec3350a0679a61603b7 to your computer and use it in GitHub Desktop.
Image-net 2012
#!/bin/sh
image_path=/home/carpedm20/imagenet
for name in $image_path/val/*.JPEG; do
convert -resize 256x256\! $name $name
done
#!/bin/sh
FILES=*.tar
for f in $FILES
do
if [ $f != *ILSVRC2012_img_train* ]
then
mkdir ./train/${f%.*}
echo "tar -xf $f -C ./train/${f%.*}"
tar -xf $f -C ./train/${f%.*}
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment