keras-facenet icon indicating copy to clipboard operation
keras-facenet copied to clipboard

Error in demo-images notebook

Open ghost opened this issue 4 years ago • 0 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]}

ghost avatar Jun 23 '20 21:06 ghost