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

Caught FileNotFoundError in DataLoader worker process 0. #7

Open
Kavitha1977 opened this issue Sep 7, 2022 · 0 comments
Open

Caught FileNotFoundError in DataLoader worker process 0. #7

Kavitha1977 opened this issue Sep 7, 2022 · 0 comments

Comments

@Kavitha1977
Copy link

@siddhartamukherjee ,I have run your code in colab. Below is the following error,

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 302, in _worker_loop
data = fetcher.fetch(index)
File "/usr/local/lib/python3.7/dist-packages/torch/utils/data/_utils/fetch.py", line 49, 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 49, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "", line 25, in getitem
image_id, mask = self.make_mask(index)
File "", line 40, in make_mask
tree = ET.parse(annot)
File "/usr/lib/python3.7/xml/etree/ElementTree.py", line 1197, in parse
tree.parse(source, parser)
File "/usr/lib/python3.7/xml/etree/ElementTree.py", line 587, in parse
source = open(source, "rb")
FileNotFoundError: [Errno 2] No such file or directory: '/content/gdrive/My Drive/PHD_project/NEULOC/NEUDET/train/annotations\rolled-in_scale_21.xml'

But the image mentioned in the above error is surely present.
Please do reply .Thanks in advance.

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