eval.py bugs
Hi, i am facing the problem with the evaluation step to get the mAP scores. The detail of error:
File "C:\Users\ADMIN\anaconda3\envs\Pytorch\lib\site-packages\torch\utils\data\dataloader.py", line 345, in next
data = self._next_data()
File "C:\Users\ADMIN\anaconda3\envs\Pytorch\lib\site-packages\torch\utils\data\dataloader.py", line 856, in _next_data
return self._process_data(data)
File "C:\Users\ADMIN\anaconda3\envs\Pytorch\lib\site-packages\torch\utils\data\dataloader.py", line 881, in _process_data
data.reraise()
File "C:\Users\ADMIN\anaconda3\envs\Pytorch\lib\site-packages\torch_utils.py", line 395, in reraise
raise self.exc_type(msg)
RuntimeError: Caught RuntimeError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "C:\Users\ADMIN\anaconda3\envs\Pytorch\lib\site-packages\torch\utils\data_utils\worker.py", line 178, in _worker_loop
data = fetcher.fetch(index)
File "C:\Users\ADMIN\anaconda3\envs\Pytorch\lib\site-packages\torch\utils\data_utils\fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "C:\Users\ADMIN\anaconda3\envs\Pytorch\lib\site-packages\torch\utils\data_utils\fetch.py", line 44, in
Are there any idea? Someone said that this is the bug of torch library, but i am not sure. The training and detect work well.
This is mean there is (at least) one img in your dataset doesn't contain any bbox.
@NguyenVanThanhHust , @AnhNguyenUK , I face with same error, how can I fix it? thank you
home/faridbala/anaconda3/lib/python3.7/site-packages/torch/serialization.py:658: SourceChangeWarning: source code of class 'torch.nn.modules.conv.Conv2d' has changed. you can retrieve the original source code by accessing the object's source attribute or set torch.nn.Module.dump_patches = True and use the patch tool to revert the changes.
warnings.warn(msg, SourceChangeWarning)
/home/faridbala/anaconda3/lib/python3.7/site-packages/torch/serialization.py:658: SourceChangeWarning: source code of class 'torch.nn.modules.pooling.MaxPool2d' has changed. you can retrieve the original source code by accessing the object's source attribute or set torch.nn.Module.dump_patches = True and use the patch tool to revert the changes.
warnings.warn(msg, SourceChangeWarning)
Evaluating: 0%| | 0/78 [00:00<?, ?it/s]
Traceback (most recent call last):
File "eval.py", line 89, in
@rttariverdi67 Did you check your dataset? Is the image creating this error readable? How many channel does it have?
@NguyenVanThanhHust thank you for your help, It was exactly the problem, The image didn't contain any class! I deleted and it works.