tensorflow / tensorflow/datasets

No examples were yielded in 'the300w_lp' datasets

Open
#3,844 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
4.6k
Forks
1.6k
Avg merge
3h 54m
Merged PRs (30d)
1

Description

When performing the following code in colab:

import tensorflow_datasets as tfds
tfds.load("the300w_lp")

The error:

Shuffling and writing examples to /root/tensorflow_datasets/the300w_lp/1.0.0.incompleteOUFQPN/the300w_lp-train.tfrecord
---------------------------------------------------------------------------
AssertionError                            Traceback (most recent call last)
<ipython-input-8-d9a26eef8c59> in <module>()
      1 import tensorflow_datasets as tfds
----> 2 tfds.load("the300w_lp")

7 frames
/usr/local/lib/python3.7/dist-packages/tensorflow_datasets/core/tfrecords_writer.py in _get_shard_boundaries(num_examples, number_of_shards)
    114 ) -> List[int]:
    115   if num_examples == 0:
--> 116     raise AssertionError("No examples were yielded.")
    117   if num_examples < number_of_shards:
    118     raise AssertionError("num_examples ({}) < number_of_shards ({})".format(

AssertionError: No examples were yielded.

The 'coco', 'mnist' etc. were loaded successfully. So I think there was something wrong with 'the300w_lp'.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the reported tfds.load("the300w_lp") example and tracing the dataset's generation path to determine why it yields no examples. Done means the dataset loads successfully and produces examples without the No examples were yielded assertion.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, tensorflow
Domain
data, machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.