Tuesday, May 11, 2021

 ValueError: Asked to retrieve element 0, but the Sequence has length 0


This error  is thrown by ImageDatasetGenerator.flow_from_directory if the given directory is empty, it does not contain any images.

No comments:

Post a Comment

useful links

  https://github.com/huggingface/cookbook/tree/main/notebooks/en  hugging face ai cookbooks  https://colab.research.google.com/github/huggin...