Dealing with a image dataset? Dealing with large folder of jpg? Use this script to print a random image from a folder.
To print a randomly selected image, type:
$ python random-image-from-folder.py <path>
To print two randomly selected images, type:
$ chmod u+x two-random-images.sh
$ ./two-random-images.sh <path>
$ python download-images-from-csv.py fullres
Assuming fullres
is a folder with JPGs
$ python download-images-from-csv.py thumbnails
Assuming thumbnails
is a folder with JPGs
$ chmod u+x two-random-images.sh
$ ./two-random-images.sh thumbnails
Images are selected randomly, printed as <filename>