Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError:Failed to read the record #12

Open
fb5324 opened this issue Oct 27, 2022 · 0 comments
Open

RuntimeError:Failed to read the record #12

fb5324 opened this issue Oct 27, 2022 · 0 comments

Comments

@fb5324
Copy link

fb5324 commented Oct 27, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant