-
Notifications
You must be signed in to change notification settings - Fork 32
Description
@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.