You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, Everyone!
When I was working on training my customized datasets with Yolo5s model, I faced this error. I think, this error is occurred because I have not used GPU. But I can not use GPU. If you have some experience in this case, please try to teach so that I can fix this error.
0%| | 0/25 [00:05<?, ?it/s]
Traceback (most recent call last):
File "C:\Users\admin\anaconda3\Lib\site-packages\torch\utils\data\dataloader.py", line 1133, in _try_get_data
data = self._data_queue.get(timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\anaconda3\Lib\multiprocessing\queues.py", line 114, in get
raise Empty
_queue.Empty
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\admin\Documents\yolov5\train.py", line 647, in
main(opt)
File "C:\Users\admin\Documents\yolov5\train.py", line 536, in main
train(opt.hyp, opt, device, callbacks)
File "C:\Users\admin\Documents\yolov5\train.py", line 291, in train
for i, (imgs, targets, paths, _) in pbar: # batch -------------------------------------------------------------
File "C:\Users\admin\anaconda3\Lib\site-packages\tqdm\std.py", line 1178, in iter
for obj in iterable:
File "C:\Users\admin\Documents\yolov5\utils\dataloaders.py", line 172, in iter
yield next(self.iterator)
^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\anaconda3\Lib\site-packages\torch\utils\data\dataloader.py", line 634, in next
data = self._next_data()
^^^^^^^^^^^^^^^^^
File "C:\Users\admin\anaconda3\Lib\site-packages\torch\utils\data\dataloader.py", line 1329, in _next_data
idx, data = self._get_data()
^^^^^^^^^^^^^^^^
File "C:\Users\admin\anaconda3\Lib\site-packages\torch\utils\data\dataloader.py", line 1295, in _get_data
success, data = self._try_get_data()
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\anaconda3\Lib\site-packages\torch\utils\data\dataloader.py", line 1146, in _try_get_data
raise RuntimeError('DataLoader worker (pid(s) {}) exited unexpectedly'.format(pids_str)) from e
RuntimeError: DataLoader worker (pid(s) 16424, 16608, 1292, 9448) exited unexpectedly`
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, Everyone!
When I was working on training my customized datasets with Yolo5s model, I faced this error. I think, this error is occurred because I have not used GPU. But I can not use GPU. If you have some experience in this case, please try to teach so that I can fix this error.
`Starting training for 3 epochs...
0%| | 0/25 [00:05<?, ?it/s]
Traceback (most recent call last):
File "C:\Users\admin\anaconda3\Lib\site-packages\torch\utils\data\dataloader.py", line 1133, in _try_get_data
data = self._data_queue.get(timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\anaconda3\Lib\multiprocessing\queues.py", line 114, in get
raise Empty
_queue.Empty
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\admin\Documents\yolov5\train.py", line 647, in
main(opt)
File "C:\Users\admin\Documents\yolov5\train.py", line 536, in main
train(opt.hyp, opt, device, callbacks)
File "C:\Users\admin\Documents\yolov5\train.py", line 291, in train
for i, (imgs, targets, paths, _) in pbar: # batch -------------------------------------------------------------
File "C:\Users\admin\anaconda3\Lib\site-packages\tqdm\std.py", line 1178, in iter
for obj in iterable:
File "C:\Users\admin\Documents\yolov5\utils\dataloaders.py", line 172, in iter
yield next(self.iterator)
^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\anaconda3\Lib\site-packages\torch\utils\data\dataloader.py", line 634, in next
data = self._next_data()
^^^^^^^^^^^^^^^^^
File "C:\Users\admin\anaconda3\Lib\site-packages\torch\utils\data\dataloader.py", line 1329, in _next_data
idx, data = self._get_data()
^^^^^^^^^^^^^^^^
File "C:\Users\admin\anaconda3\Lib\site-packages\torch\utils\data\dataloader.py", line 1295, in _get_data
success, data = self._try_get_data()
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\admin\anaconda3\Lib\site-packages\torch\utils\data\dataloader.py", line 1146, in _try_get_data
raise RuntimeError('DataLoader worker (pid(s) {}) exited unexpectedly'.format(pids_str)) from e
RuntimeError: DataLoader worker (pid(s) 16424, 16608, 1292, 9448) exited unexpectedly`
Beta Was this translation helpful? Give feedback.
All reactions