nyoki-mtl / keras-facenet

Facenet implementation by Keras2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error in demo-images notebook

opened this issue · comments

Hi, I'm getting the following error when I run the 9th cell, I tried changing image_dirpath and rechecking for loops, but none of them worked:

FileNotFoundError Traceback (most recent call last)
in
2 for name in names:
3 image_dirpath = image_dir_basepath + name
----> 4 image_filepaths = [os.path.join(image_dirpath, f) for f in os.listdir(image_dirpath)]
5 embs = calc_embs(image_filepaths)
6 for i in range(len(image_filepaths)):

FileNotFoundError: [WinError 3] The system cannot find the path specified: '../data/images/LarryPage'

Cell 9th:
data = {}
for name in names:
image_dirpath = image_dir_basepath + name
image_filepaths = [os.path.join(image_dirpath, f) for f in os.listdir(image_dirpath)]
embs = calc_embs(image_filepaths)
for i in range(len(image_filepaths)):
data['{}{}'.format(name, i)] = {'image_filepath' : image_filepaths[i],
'emb' : embs[i]}