waymo-open-dataset icon indicating copy to clipboard operation
waymo-open-dataset copied to clipboard

unable to run motion tutorial for any .tf record file of motion dataset

Open miladsasha opened this issue 10 months ago • 1 comments

Hello

I checked the availability of features in my .tf file. all features were available. However, this part of the code from the motion tutorial does not run and has the following error:

Create Dataset.

dataset = tf.data.TFRecordDataset(FILENAME, compression_type='') data = next(dataset.as_numpy_iterator()) parsed = tf.io.parse_single_example(data, features_description)

Error.

InvalidArgumentError Traceback (most recent call last) in <cell line: 44>() 42 43 # Print the available features in the first example ---> 44 for example in parsed_dataset.take(1): # Taking just one example for demonstration 45 available_features = [key for key, value in example.items() if value.numpy() is not None] 46 print("Available features:")

3 frames /usr/local/lib/python3.10/dist-packages/tensorflow/python/framework/ops.py in raise_from_not_ok_status(e, name) 7213 def raise_from_not_ok_status(e, name): 7214 e.message += (" name: " + name if name is not None else "") -> 7215 raise core._status_to_exception(e) from None # pylint: disable=protected-access 7216 7217

InvalidArgumentError: {{function_node _wrapped__IteratorGetNext_output_types_20_device/job:localhost/replica:0/task:0/device:CPU:0}} Feature: roadgraph_samples/dir (data type: string) is required but could not be found. [[{{node ParseSingleExample/ParseExample/ParseExampleV2}}]] [Op:IteratorGetNext]

roadgraph_samples/dir was among the available features of .tf file and also I tried .tf files from all the versions of motion dataset.

miladsasha avatar Apr 01 '24 18:04 miladsasha

You can check #343

cagrihakkoymaz avatar Jun 06 '24 05:06 cagrihakkoymaz