FileNotFoundError #68
Unanswered
s108003854
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi~
I download the example data (neucon_demodata_b5f1) and run demo.py:
I got the error message as below:
I check the the folder as below and I find that this folder is indeed empty.
May I ask where this is probably going wrong?
Full error message:
2021-12-03 17:01:02.744 | INFO | main::35 - Found SyncedPoses.txt, skipping data pre-processing...
2021-12-03 17:01:02.744 | INFO | main::37 - Running NeuralRecon...
2021-12-03 17:01:02.752 | INFO | main::50 - Initializing the model on GPU...
2021-12-03 17:01:04.819 | INFO | main::58 - Resuming from ./checkpoints/model_000047.ckpt
2021-12-03 17:01:05.088 | INFO | main::64 - Start inference..
0% 0/110 [00:00<?, ?it/s]
Traceback (most recent call last):
File "demo.py", line 69, in
for frag_idx, sample in enumerate(tqdm(data_loader)):
File "/usr/local/lib/python3.7/dist-packages/tqdm/std.py", line 1180, in iter
for obj in iterable:
File "/usr/local/lib/python3.7/dist-packages/torch/utils/data/dataloader.py", line 363, in next
data = self._next_data()
File "/usr/local/lib/python3.7/dist-packages/torch/utils/data/dataloader.py", line 989, in _next_data
return self._process_data(data)
File "/usr/local/lib/python3.7/dist-packages/torch/utils/data/dataloader.py", line 1014, in _process_data
data.reraise()
File "/usr/local/lib/python3.7/dist-packages/torch/_utils.py", line 395, in reraise
raise self.exc_type(msg)
FileNotFoundError: Caught FileNotFoundError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/torch/utils/data/_utils/worker.py", line 185, in _worker_loop
data = fetcher.fetch(index)
File "/usr/local/lib/python3.7/dist-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/usr/local/lib/python3.7/dist-packages/torch/utils/data/_utils/fetch.py", line 44, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/content/NeuralRecon/datasets/demo.py", line 51, in getitem
os.path.join(self.datapath, 'images', '{}.jpg'.format(vid))))
File "/content/NeuralRecon/datasets/demo.py", line 35, in read_img
img = Image.open(filepath)
File "/usr/local/lib/python3.7/dist-packages/PIL/Image.py", line 2843, in open
fp = builtins.open(filename, "rb")
FileNotFoundError: [Errno 2] No such file or directory: './neucon_demodata_b5f1/images/00000.jpg'
Beta Was this translation helpful? Give feedback.
All reactions