PS C:UsersardagOneDriveMasaüstücan_detector> python -u “c:UsersardagOneDriveMasaüstücan_detectortrain.py”
Traceback (most recent call last):
File “c:UsersardagOneDriveMasaüstücan_detectortrain.py”, line 1, in
from ultralytics import YOLO
File “C:UsersardagAppDataLocalPackagesPythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0LocalCachelocal-packagesPython311site-packagesultralytics_init_.py”, line 5, in
from ultralytics.data.explorer.explorer import Explorer
File “C:UsersardagAppDataLocalPackagesPythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0LocalCachelocal-packagesPython311site-packagesultralyticsdata_init_.py”, line 3, in
from .base import BaseDataset
File “C:UsersardagAppDataLocalPackagesPythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0LocalCachelocal-packagesPython311site-packagesultralyticsdatabase.py”, line 15, in
from torch.utils.data import Dataset
File “C:UsersardagAppDataLocalPackagesPythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0LocalCachelocal-packagesPython311site-packagestorch_init_.py”, line 141,
in
raise err
OSError: [WinError 126] Belirtilen modül bulunamadı. Error loading “C:UsersardagAppDataLocalPackagesPythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0LocalCachelocal-packagesPython311site-packagestorchlibshm.dll” or one of its dependencies.
I want to create a YOLO model with python but I get the following error. I check the path and shm.dll file is in there. How can i solve this problem.
Code:
from ultralytics import YOLO
model = YOLO("yolov8n.yaml")
results = model.train(data="config.yaml", epochs=3)
Fıstıklı Baklava is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.