Replies: 1 comment 3 replies
-
@Mrgorlay it appears you may have environment problems. Please ensure you meet all dependency requirements if you are attempting to run YOLOv5 locally. If in doubt, create a new virtual Python 3.9 environment, clone the latest repo (code changes daily), and 💡 ProTip! Try one of our verified environments below if you are having trouble with your local environment. RequirementsPython>=3.6.0 with all requirements.txt installed including PyTorch>=1.7. To get started: git clone https://github.com/ultralytics/yolov5 # clone
cd yolov5
pip install -r requirements.txt # install Models and datasets download automatically from the latest YOLOv5 release when first requested. EnvironmentsYOLOv5 may be run in any of the following up-to-date verified environments (with all dependencies including CUDA/CUDNN, Python and PyTorch preinstalled):
StatusIf this badge is green, all YOLOv5 GitHub Actions Continuous Integration (CI) tests are currently passing. CI tests verify correct operation of YOLOv5 training (train.py), validation (val.py), inference (detect.py) and export (export.py) on MacOS, Windows, and Ubuntu every 24 hours and on every commit. |
Beta Was this translation helpful? Give feedback.
-
Traceback (most recent call last):
File "train.py", line 626, in
main(opt)
File "train.py", line 523, in main
train(opt.hyp, opt, device, callbacks)
File "train.py", line 238, in train
check_anchors(dataset, model=model, thr=hyp['anchor_t'], imgsz=imgsz)
File "/home/mrd/PycharmProjects/yolov5-master/utils/autoanchor.py", line 43, in check_anchors
anchors = m.anchors.clone() * m.stride.to(m.anchors.device).view(-1, 1, 1) # current anchors
RuntimeError: CUDA error: no kernel image is available for execution on the device
Exception ignored in: <function _MultiProcessingDataLoaderIter.del at 0x7f6e6d422950>
Traceback (most recent call last):
File "/home/mrd/anaconda3/envs/yolov5-v3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 1324, in del
File "/home/mrd/anaconda3/envs/yolov5-v3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 1258, in _shutdown_workers
AttributeError: 'NoneType' object has no attribute 'python_exit_status'
Exception ignored in: <function _MultiProcessingDataLoaderIter.del at 0x7f6e6d422950>
Traceback (most recent call last):
File "/home/mrd/anaconda3/envs/yolov5-v3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 1324, in del
File "/home/mrd/anaconda3/envs/yolov5-v3/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 1258, in _shutdown_workers
AttributeError: 'NoneType' object has no attribute 'python_exit_status'
Beta Was this translation helpful? Give feedback.
All reactions