title: fp = builtins.open(filename, "rb") filenotfounderror: [errno 2] no such file or directory:
body: <p>I want to load a whole folder of images together. I am working in R using Keras with python interface. I have set the path of the folder, then used the lapply function to load the images in the folder, one by one. </p>
  
  <pre><code>&gt; files &lt;- list.files(path="C:/Users/acer/Desktop/Triparna/traitestimage/Test/Bone/", pattern=".png",all.files=T, full.names=F, no.. = T)
   &gt; list_of_images = lapply(files, image_load)
  </code></pre>
  
  <p>The error :</p>
  
  <pre><code>Error in py_call_impl(callable, dots$args, dots$keywords) : 
  FileNotFoundError: [Errno 2] No such file or directory: 'bone58.png'
  
  Detailed traceback: 
  File "C:\Users\acer\ANACON~1\envs\R-TENS~1\lib\site- 
  packages\keras\preprocessing\image.py", line 387, in load_img
  img = pil_image.open(path)
  File "C:\Users\acer\ANACON~1\envs\R-TENS~1\lib\site- 
  packages\PIL\Image.py", line 2548, in open
  fp = builtins.open(filename, "rb")
  </code></pre>
  
  <p>Can you please help me. I understand the python interface is unable to identify the path. But how do I do that?</p>