How to load all images in folder by its name using python?
<p>I have a folder with 50000 images named as <code>ILSVRC2012_val_00000001.JPEG</code> until <code>ILSVRC2012_val_00050000.JPEG</code>.
I want to load each image and then used them to something. Here, that's the code I'm using (load just first 14 images):</p>

<pre><code>for m in range(0,15):

    count = m + 1

    im = caffe.io.load_image(IMAGE_PATH_FOLDER + 'ILSVRC2012_val_000' + str(count).zfill(5) + '.JPEG')
</code></pre>

<p>The <strong>error</strong> is</p>

<pre><code>No such file or directory: ILSVRC2012_val_00000010.JPEG
</code></pre>

<p>Any idea how to solve it?</p>