tensorflow / tensorflow/datasets
Invalid Tensor Index 'ragged_flat_values' when using Sequence as top-level feature
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 1.6k
- Avg merge
- 3h 54m
- Merged PRs (30d)
- 1
Description
Short description
I'm trying to add a new dataset. Serialization succeeded, but when loading the data, the error below occurs.
TypeError: Only integers, slices (`:`), ellipsis (`...`), tf.newaxis (`None`) and scalar tf.int32/tf.int64 tensors are valid indices, got 'ragged_flat_values'
Detailed stacktrace below, the error happens in the deserialization.
Environment information
- Operating System: ubuntu 18.04
- Python version: 3.6
tensorflow-datasets/tfds-nightlyversion:tfds-nightlytensorflow/tensorflow-gpu/tf-nightly/tf-nightly-gpuversion: tested on tensorflow 2.2.0 and 2.3.0
Reproduction instructions
https://github.com/hermannsblum/tf_datasets/blob/3dpw/tensorflow_datasets/human_pose/pose_3dpw.py
Link to logs
Expected behavior
The dataset to load, or an error at dataset building.
Additional context
Add any other context about the problem here.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reproduction in tensorflow_datasets/human_pose/pose_3dpw.py and review the linked stack trace to trace deserialization of a top-level Sequence feature. Confirm the behavior with TensorFlow 2.2.0 or 2.3.0; done means the dataset loads successfully or rejects the configuration during dataset building.
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