from the comments here: https://generateme.wordpress.com/2015/08/12/training-own-dnn-for-deep-dream/
I have around 15k images and each one needs its own folder. I ran this once, when I had fewer images, and it worked fine:
a=0; for i in *.jpg; do mkdir -p $a; mv $i $a; a=$((a+1)); done
But not when I run it, 10000.jpg goes into folder "0". I figured it had something to do with the 5th digit but I scaled back to 9999 and it put 1000.jpg into "0". I check further in on a random one like 1934 and by then it's completely fallen apart and I have no idea why that particular .jpg number is in that numbered folder. Is there a way to fix this line or is there another line I should be using to do this?