Open jxmmy7777 opened 1 year ago
Hi, I think the issue is that the files are stored in the tensorflow tfrecord format. It looks like your code tries to read it directly as a string. You will need to read each scenario as a single record from the tfrecord input files, then process them and write them back out as your code currently does. I have not used it but I think that the RecordReader here might be what you need.
Note that if you are not modifying the default configuration (or the conversion code), we provide the converted data (using the default configuration) already in the open dataset repository.
Please let me know if you have further questions.
I am encountering an error while using the Waymo Open Dataset conversion library to convert a Waymo scenario file to a TensorFlow Example and export it to a tfrecord file. When running my code using bazel build, I get the following error:
I suspect the issue might be related to the encoding of the input file. Specifically, I am reading the scenario file in binary mode, but it might be encoded in a non-standard format. Any suggestions would be helpful.
Here's a code snippet that reproduces the error: