Replies: 1 comment 3 replies
-
I just so happen to run into the same issue so if you have found a solution I would love to hear about it. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have trouble running TorchIO_MONAI_PyTorch_Lightning.ipynb.
data.prepare_data()
data.setup()
print('Training: ', len(data.train_set))
print('Validation: ', len(data.val_set))
print('Test: ', len(data.test_set))
shows
Training: 208
Validation: 52
Test: 130
start = datetime.now()
print('Training started at', start)
trainer.fit(model=model, datamodule=data)
print('Training duration:', datetime.now() - start)
shows
LOCAL_RANK: 0 - CUDA_VISIBLE_DEVICES: [0,1]
| Name | Type | Params
0 | net | UNet | 122 K
1 | criterion | DiceCELoss | 0
122 K Trainable params
0 Non-trainable params
122 K Total params
0.245 Total estimated model params size (MB)
and following error occurs:
FileNotFoundError: Caught FileNotFoundError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/home/devin/anaconda3/envs/pytorch_p37/lib/python3.7/site-packages/torch/utils/data/_utils/worker.py", line 287, in _worker_loop
data = fetcher.fetch(index)
File "/home/devin/anaconda3/envs/pytorch_p37/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 52, in fetch
return self.collate_fn(data)
File "/home/devin/anaconda3/envs/pytorch_p37/lib/python3.7/site-packages/pytorch_lightning/utilities/auto_restart.py", line 474, in _capture_metadata_collate
data = default_collate(samples)
File "/home/devin/anaconda3/envs/pytorch_p37/lib/python3.7/site-packages/torch/utils/data/_utils/collate.py", line 157, in default_collate
return elem_type({key: default_collate([d[key] for d in batch]) for key in elem})
File "/home/devin/anaconda3/envs/pytorch_p37/lib/python3.7/site-packages/torch/utils/data/_utils/collate.py", line 157, in
return elem_type({key: default_collate([d[key] for d in batch]) for key in elem})
File "/home/devin/anaconda3/envs/pytorch_p37/lib/python3.7/site-packages/torch/utils/data/_utils/collate.py", line 157, in default_collate
return elem_type({key: default_collate([d[key] for d in batch]) for key in elem})
File "/home/devin/anaconda3/envs/pytorch_p37/lib/python3.7/site-packages/torchio/data/image.py", line 574, in init
super().init(*args, **kwargs)
File "/home/devin/anaconda3/envs/pytorch_p37/lib/python3.7/site-packages/torchio/data/image.py", line 140, in init
self.path = self._parse_path(path)
File "/home/devin/anaconda3/envs/pytorch_p37/lib/python3.7/site-packages/torchio/data/image.py", line 377, in _parse_path
return [self._parse_single_path(p) for p in path]
File "/home/devin/anaconda3/envs/pytorch_p37/lib/python3.7/site-packages/torchio/data/image.py", line 377, in
return [self._parse_single_path(p) for p in path]
File "/home/devin/anaconda3/envs/pytorch_p37/lib/python3.7/site-packages/torchio/data/image.py", line 365, in _parse_single_path
raise FileNotFoundError(f'File not found: "{path}"')
FileNotFoundError: File not found: "data"
Any solutions?
Beta Was this translation helpful? Give feedback.
All reactions