Skip to content

RuntimeError:Failed to read the record #12

@fb5324

Description

@fb5324

Thank you for sharing the code @wwMark
But I encountered some problems in the running process and asked for answers
If it is a training mode, the program runs without problems. However, if it is an evaluation mode, the following problems will occur

Traceback (most recent call last):
File "D:\MeshGraphNets\meshgraphnets-main\run_model.py", line 1108, in
app.run(main)
File "D:\anaconda\envs\pytorch_gpu\lib\site-packages\absl\app.py", line 308, in run
_run_main(main, args)
File "D:\anaconda\envs\pytorch_gpu\lib\site-packages\absl\app.py", line 254, in _run_main
sys.exit(main(argv))
File "D:\MeshGraphNets\meshgraphnets-main\run_model.py", line 832, in main
step_loss = n_step_evaluator(params, model, run_step_config, n_step_list=[1, 3, 5, 7, 10], n_traj=1)
File "D:\MeshGraphNets\meshgraphnets-main\run_model.py", line 548, in n_step_evaluator
trajectory = next(ds_iterator)
File "D:\anaconda\envs\pytorch_gpu\lib\site-packages\torch\utils\data\dataloader.py", line 681, in next
data = self._next_data()
File "D:\anaconda\envs\pytorch_gpu\lib\site-packages\torch\utils\data\dataloader.py", line 721, in _next_data
data = self._dataset_fetcher.fetch(index) # may raise StopIteration
File "D:\anaconda\envs\pytorch_gpu\lib\site-packages\torch\utils\data_utils\fetch.py", line 32, in fetch
data.append(next(self.dataset_iter))
File "D:\anaconda\envs\pytorch_gpu\lib\site-packages\torch\utils\data\dataloader.py", line 681, in next
data = self._next_data()
File "D:\anaconda\envs\pytorch_gpu\lib\site-packages\torch\utils\data\dataloader.py", line 721, in _next_data
data = self._dataset_fetcher.fetch(index) # may raise StopIteration
File "D:\anaconda\envs\pytorch_gpu\lib\site-packages\torch\utils\data_utils\fetch.py", line 32, in fetch
data.append(next(self.dataset_iter))
File "D:\anaconda\envs\pytorch_gpu\lib\site-packages\tfrecord\reader.py", line 219, in example_loader
for record in record_iterator:
File "D:\anaconda\envs\pytorch_gpu\lib\site-packages\tfrecord\reader.py", line 85, in tfrecord_iterator
yield from read_records(offset)
File "D:\anaconda\envs\pytorch_gpu\lib\site-packages\tfrecord\reader.py", line 74, in read_records
raise RuntimeError("Failed to read the record.")
RuntimeError: Failed to read the record.

Look forward to your answer. Thank you very much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions