DataLoader: Image size is zero

When trying to load some Images for Data Science using:

DataLoader.from_folder(image_path)

I get following error:

  File "<stdin>", line 1, in <module>
  File "/Users/myName/Desktop/mp_env/lib/python3.9/site-packages/tensorflow_examples/lite/model_maker/core/data_util/image_dataloader.py", line 73, in from_folder
    raise ValueError('Image size is zero')
ValueError: Image size is zero
>>> 

In the folder under image_path there are 3 pictures (jpg).

Why is it saying size of mage is zero?

Tank you in advance!

Source: Python Questions

LEAVE A COMMENT