title: "RuntimeError: Found 0 files in subfolders of ".. Error about subfolder in Pytorch
body: <p>I'm based on Window 10, Jupyter Notebook, Pytorch 1.0, Python 3.6.x currently.</p>
  
  <p>At first I confirm to the correct path of files using this code : <code>print(os.listdir('./Dataset/images/'))</code>.</p>
  
  <p>and I could check that this path is correct.</p>
  
  <p>but I met <a href="https://i.stack.imgur.com/dJhoU.png" rel="noreferrer">Error</a> : </p>
  
  <blockquote>
    <p>RuntimeError: Found 0 files in subfolders of: ./Dataset/images/
    Supported extensions are: .jpg,.jpeg,.png,.ppm,.bmp,.pgm,.tif"</p>
  </blockquote>
  
  <p>What is the matter?
  Could you suggest a solution?</p>
  
  <p>I tried to <code>./dataset/1/images</code> like this method. but the result was same....</p>
  
  <pre><code>img_dir = './Dataset/images/'
  img_data = torchvision.datasets.ImageFolder(os.path.join(img_dir), transforms.Compose([
              transforms.Scale(256),
              transforms.RandomResizedCrop(224),
              transforms.RandomHorizontalFlip(),
              transforms.ToTensor(),
              ]))
  img_batch = data.DataLoader(img_data, batch_size=batch_size,
                                 shuffle = True, drop_last=True)
  </code></pre>