stratospark/food-101-keras

AttributeError: 'numpy.ndarray' object has no attribute 'imread'

toqitahamid opened this issue · 1 comments

I am getting this error

img_arr = img.imread(join(root, subdir, img_name))

Traceback (most recent call last):

  File "<ipython-input-14-391b41e82d54>", line 1, in <module>
    img_arr = img.imread(join(root, subdir, img_name))

AttributeError: 'numpy.ndarray' object has no attribute 'imread'

Solved. Instead of img_arr = img.imread(join(root, subdir, img_name)), I used img_arr = scipy.misc.imread(join(root, subdir, img_name))