title: FileNotFoundError: [WinError 3] The system cannot find the path specified:
body: <p>I'm trying to run the code from this <a href="https://machinelearningmastery.com/develop-a-deep-learning-caption-generation-model-in-python/" rel="nofollow noreferrer">tutorial</a>. I have placed the code and dataset in the same directory, but still I get the following error.</p>
  <pre><code>FileNotFoundError                         Traceback (most recent call last)
  &lt;ipython-input-6-5f5284db0527&gt; in &lt;module&gt;()
       39 # extract features from all images
       40 directory = 'Flicker8k'
  ---&gt; 41 features = extract_features(directory)
       42 print('Extracted Features: %d' % len(features))
       43 # save to file
  
  &lt;ipython-input-6-5f5284db0527&gt; in extract_features(directory)
       18         # extract features from each photo
       19         features = dict()
  ---&gt; 20         for name in listdir(directory):
       21                 # load an image from file
       22                 filename = directory + '/' + name
  
  **FileNotFoundError: [WinError 3] The system cannot find the path specified: 'Flicker8k'**
  </code></pre>