【发布时间】:2018-12-03 02:02:15
【问题描述】:
我正在尝试从tutorial 运行代码。我已经将代码和数据集放在同一个目录下,但仍然出现以下错误。
FileNotFoundError Traceback (most recent call last)
<ipython-input-6-5f5284db0527> in <module>()
39 # extract features from all images
40 directory = 'Flicker8k'
---> 41 features = extract_features(directory)
42 print('Extracted Features: %d' % len(features))
43 # save to file
<ipython-input-6-5f5284db0527> in extract_features(directory)
18 # extract features from each photo
19 features = dict()
---> 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'**
【问题讨论】:
标签: python-3.x machine-learning anaconda jupyter-notebook