Open MarkusKramer1 opened 9 months ago
Hi, I have just encountered the same problem. Have you find the solution? I'll be more than grateful if you can share with me!
I guess you are using the tf.example files. There are two types of data from the Waymo Open Dataset. You guys should load the scenario files but not the tf.example files for our dataloader. Let me know if that's the problem.
Yes, I followed your advice to solve the above problem, but then encountered the following error when running sim.py. Do you know how to resolve it? Thank you!
2024-05-08 23:28:48.312803: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at example_parsing_ops.cc:94 : INVALID_ARGUMENT: Feature: scenario/id (data type: string) is required but could not be found.
Traceback (most recent call last):
File "/home/anthony/Desktop/InterSim-main/simulator/sim.py", line 243, in <module>
main(args_p)
File "/home/anthony/Desktop/InterSim-main/simulator/sim.py", line 50, in main
ended = env.reset(output_dir=output_dir)
File "/home/anthony/anaconda3/envs/myenv/lib/python3.9/site-packages/gym-0.18.3-py3.9.egg/gym/wrappers/time_limit.py", line 25, in reset
return self.env.reset(**kwargs)
File "/home/anthony/Desktop/InterSim-main/simulator/interactive_sim/envs/drive.py", line 489, in reset
loaded_scenario, new_files_loaded = self.data_loader.get_next(filter_config=self.filter_config,
File "/home/anthony/Desktop/InterSim-main/simulator/dataloader/DataLoaderWaymo.py", line 1100, in get_next
parsed = tf.io.parse_single_example(data, features_description_scenario)
File "/home/anthony/anaconda3/envs/myenv/lib/python3.9/site-packages/tensorflow/python/util/traceback_utils.py", line 153, in error_handler
raise e.with_traceback(filtered_tb) from None
File "/home/anthony/anaconda3/envs/myenv/lib/python3.9/site-packages/tensorflow/python/eager/execute.py", line 52, in quick_execute
tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name,
tensorflow.python.framework.errors_impl.InvalidArgumentError: {{function_node __wrapped__ParseExampleV2_Tdense_2_num_sparse_0_ragged_split_types_0_ragged_value_types_0_sparse_types_0_device_/job:localhost/replica:0/task:0/device:CPU:0}} Feature: scenario/id (data type: string) is required but could not be found. [Op:ParseExampleV2]
Hi, thanks for the great work. I would like to explore your simulation using the Waymo Open Dataset. Therefore I downloaded the "testing_interactive" part of the dataset. I updated the path in the config.py before starting "python sim.py --max_scenarios 5".
However I get a parsing error for the dataset files. Here is the full output log:
Do you know what the issue could be?