ultralytics / ultralytics

NEW - YOLOv8 🚀 in PyTorch > ONNX > OpenVINO > CoreML > TFLite
https://docs.ultralytics.com
GNU Affero General Public License v3.0
24.46k stars 4.86k forks source link

Ultralytics Yolov8 Error #426

Open richardgohth opened 1 year ago

richardgohth commented 1 year ago

(venv) root@stratton:/yolov8/ultralytics# yolo Traceback (most recent call last): File "/yolov8/ultralytics/venv/bin/yolo", line 5, in from ultralytics.yolo.cli import cli File "/yolov8/ultralytics/venv/lib/python3.9/site-packages/ultralytics/init.py", line 5, in from ultralytics.hub import checks File "/yolov8/ultralytics/venv/lib/python3.9/site-packages/ultralytics/hub/init.py", line 10, in from ultralytics.hub.auth import Auth File "/yolov8/ultralytics/venv/lib/python3.9/site-packages/ultralytics/hub/auth.py", line 5, in from ultralytics.hub.utils import HUB_API_ROOT, request_with_credentials File "/yolov8/ultralytics/venv/lib/python3.9/site-packages/ultralytics/hub/utils.py", line 10, in from ultralytics.yolo.utils import DEFAULT_CONFIG_DICT, LOGGER, RANK, SETTINGS, TryExcept, colorstr, emojis File "/yolov8/ultralytics/venv/lib/python3.9/site-packages/ultralytics/yolo/init.py", line 3, in from . import v8 File "/yolov8/ultralytics/venv/lib/python3.9/site-packages/ultralytics/yolo/v8/init.py", line 3, in from ultralytics.yolo.configs import hydra_patch # noqa (patch hydra cli) File "/yolov8/ultralytics/venv/lib/python3.9/site-packages/ultralytics/yolo/configs/init.py", line 8, in from ultralytics.yolo.configs.hydra_patch import check_config_mismatch File "/yolov8/ultralytics/venv/lib/python3.9/site-packages/ultralytics/yolo/configs/hydra_patch.py", line 12, in from ultralytics.yolo.utils import LOGGER, colorstr File "/yolov8/ultralytics/venv/lib/python3.9/site-packages/ultralytics/yolo/utils/init.py", line 405, in SETTINGS = get_settings() File "/yolov8/ultralytics/venv/lib/python3.9/site-packages/ultralytics/yolo/utils/init.py", line 381, in get_settings correct = settings.keys() == defaults.keys() \ AttributeError: 'NoneType' object has no attribute 'keys'

(venv) root@stratton:/yolov8/ultralytics# python -m pip list Package Version


absl-py 1.4.0 antlr4-python3-runtime 4.9.3 asttokens 2.2.1 backcall 0.2.0 cachetools 5.2.1 certifi 2022.12.7 charset-normalizer 3.0.1 contourpy 1.0.7 cycler 0.11.0 decorator 5.1.1 executing 1.2.0 fonttools 4.38.0 gitdb 4.0.10 GitPython 3.1.30 google-auth 2.16.0 google-auth-oauthlib 0.4.6 grpcio 1.51.1 hydra-core 1.3.1 idna 3.4 importlib-metadata 6.0.0 ipython 8.8.0 jedi 0.18.2 kiwisolver 1.4.4 Markdown 3.4.1 MarkupSafe 2.1.1 matplotlib 3.6.3 matplotlib-inline 0.1.6 numpy 1.24.1 nvidia-cublas-cu11 11.10.3.66 nvidia-cuda-nvrtc-cu11 11.7.99 nvidia-cuda-runtime-cu11 11.7.99 nvidia-cudnn-cu11 8.5.0.96 oauthlib 3.2.2 omegaconf 2.3.0 opencv-python 4.7.0.68 packaging 23.0 pandas 1.5.2 parso 0.8.3 pexpect 4.8.0 pickleshare 0.7.5 Pillow 9.4.0 pip 22.3.1 prompt-toolkit 3.0.36 protobuf 3.20.3psutil 5.9.4 ptyprocess 0.7.0 pure-eval 0.2.2 pyasn1 0.4.8 pyasn1-modules 0.2.8 Pygments 2.14.0 pyparsing 3.0.9 python-dateutil 2.8.2 pytz 2022.7.1 PyYAML 6.0 requests 2.28.2 requests-oauthlib 1.3.1 rsa 4.9 scipy 1.10.0 seaborn 0.12.2 setuptools 65.6.3 six 1.16.0 smmap 5.0.0 stack-data 0.6.2 tensorboard 2.11.2 tensorboard-data-server 0.6.1 tensorboard-plugin-wit 1.8.1 thop 0.1.1.post2209072238 torch 1.13.1 torchvision 0.14.1 tqdm 4.64.1 traitlets 5.8.1 typing_extensions 4.4.0 ultralytics 8.0.6 urllib3 1.26.14 wcwidth 0.2.6 Werkzeug 2.2.2 wheel 0.38.4 zipp 3.11.0 (venv) root@stratton:/yolov8/ultralytics# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.5 LTS Release: 20.04 Codename: focal (venv) root@stratton:/yolov8/ultralytics# python -V Python 3.9.0

kyoko9000 commented 1 year ago

with yolov8 8.0.6 you can try with this one for result in results: if result: print(result) that error show because you try to show result but in that case your predict is no result

do not up to 8.0.7 and 8.0.8 because it's unstable now wait for more fix. but hope after those fix to many things will be better best wish for yolo team :)

richardgohth commented 1 year ago

Thank you and thanks for your assistance. Sorry I am a newbie How can I download/install yolov8 8.0.6? How can I find out which version is running. eg. can I run yolo -V or yolo --version? Thanks again Happy Spring Festival

kyoko9000 commented 1 year ago

ultralytics 8.0.6 is version you are use now. and the current version is 8.0.8

richardgohth commented 1 year ago

Thank you

AyushExel commented 1 year ago

Use pip install --upgrade ultralytics to keep up to date with latest version

richardgohth commented 1 year ago

Thanks, same error

python -V Python 3.9.0 (venv) root@stratton:/yolov8/ultralytics# python3.9 -m pip install --upgrade ultralytics Requirement already satisfied: ultralytics in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (8.0.8) Requirement already satisfied: thop>=0.1.1 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from ultralytics) (0.1.1.post2209072238) Requirement already satisfied: opencv-python>=4.1.1 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from ultralytics) (4.7.0.68) Requirement already satisfied: ipython in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from ultralytics) (8.8.0) Requirement already satisfied: GitPython>=3.1.24 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from ultralytics) (3.1.30) Requirement already satisfied: tqdm>=4.64.0 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from ultralytics) (4.64.1) Requirement already satisfied: hydra-core>=1.2.0 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from ultralytics) (1.3.1) Requirement already satisfied: seaborn>=0.11.0 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from ultralytics) (0.12.2) Requirement already satisfied: pandas>=1.1.4 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from ultralytics) (1.5.2) Requirement already satisfied: numpy>=1.18.5 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from ultralytics) (1.24.1) Requirement already satisfied: torch>=1.7.0 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from ultralytics) (1.13.1) Requirement already satisfied: matplotlib>=3.2.2 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from ultralytics) (3.6.3) Requirement already satisfied: torchvision>=0.8.1 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from ultralytics) (0.14.1) Requirement already satisfied: psutil in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from ultralytics) (5.9.4) Requirement already satisfied: Pillow>=7.1.2 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from ultralytics) (9.4.0) Requirement already satisfied: requests>=2.23.0 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from ultralytics) (2.28.2) Requirement already satisfied: tensorboard>=2.4.1 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from ultralytics) (2.11.2) Requirement already satisfied: PyYAML>=5.3.1 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from ultralytics) (6.0) Requirement already satisfied: sentry-sdk in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from ultralytics) (1.13.0) Requirement already satisfied: scipy>=1.4.1 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from ultralytics) (1.8.1) Requirement already satisfied: gitdb<5,>=4.0.1 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from GitPython>=3.1.24->ultralytics) (4.0.10) Requirement already satisfied: packaging in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from hydra-core>=1.2.0->ultralytics) (23.0) Requirement already satisfied: antlr4-python3-runtime==4.9.* in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from hydra-core>=1.2.0->ultralytics) (4.9.3) Requirement already satisfied: omegaconf<2.4,>=2.2 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from hydra-core>=1.2.0->ultralytics) (2.3.0) Requirement already satisfied: fonttools>=4.22.0 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from matplotlib>=3.2.2->ultralytics) (4.38.0) Requirement already satisfied: pyparsing>=2.2.1 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from matplotlib>=3.2.2->ultralytics) (3.0.9) Requirement already satisfied: python-dateutil>=2.7 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from matplotlib>=3.2.2->ultralytics) (2.8.2) Requirement already satisfied: contourpy>=1.0.1 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from matplotlib>=3.2.2->ultralytics) (1.0.7) Requirement already satisfied: kiwisolver>=1.0.1 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from matplotlib>=3.2.2->ultralytics) (1.4.4) Requirement already satisfied: cycler>=0.10 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from matplotlib>=3.2.2->ultralytics) (0.11.0) Requirement already satisfied: pytz>=2020.1 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from pandas>=1.1.4->ultralytics) (2022.7.1) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from requests>=2.23.0->ultralytics) (1.26.14) Requirement already satisfied: idna<4,>=2.5 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from requests>=2.23.0->ultralytics) (3.4) Requirement already satisfied: certifi>=2017.4.17 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from requests>=2.23.0->ultralytics) (2022.12.7) Requirement already satisfied: charset-normalizer<4,>=2 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from requests>=2.23.0->ultralytics) (3.0.1) Requirement already satisfied: absl-py>=0.4 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from tensorboard>=2.4.1->ultralytics) (1.4.0) Requirement already satisfied: wheel>=0.26 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from tensorboard>=2.4.1->ultralytics) (0.38.4) Requirement already satisfied: grpcio>=1.24.3 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from tensorboard>=2.4.1->ultralytics) (1.51.1) Requirement already satisfied: tensorboard-data-server<0.7.0,>=0.6.0 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from tensorboard>=2.4.1->ultralytics) (0.6.1) Requirement already satisfied: google-auth<3,>=1.6.3 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from tensorboard>=2.4.1->ultralytics) (2.16.0) Requirement already satisfied: protobuf<4,>=3.9.2 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from tensorboard>=2.4.1->ultralytics) (3.20.3) Requirement already satisfied: setuptools>=41.0.0 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from tensorboard>=2.4.1->ultralytics) (65.6.3) Requirement already satisfied: google-auth-oauthlib<0.5,>=0.4.1 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from tensorboard>=2.4.1->ultralytics) (0.4.6) Requirement already satisfied: tensorboard-plugin-wit>=1.6.0 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from tensorboard>=2.4.1->ultralytics) (1.8.1) Requirement already satisfied: werkzeug>=1.0.1 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from tensorboard>=2.4.1->ultralytics) (2.2.2) Requirement already satisfied: markdown>=2.6.8 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from tensorboard>=2.4.1->ultralytics) (3.4.1) Requirement already satisfied: nvidia-cuda-runtime-cu11==11.7.99 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from torch>=1.7.0->ultralytics) (11.7.99) Requirement already satisfied: nvidia-cublas-cu11==11.10.3.66 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from torch>=1.7.0->ultralytics) (11.10.3.66) Requirement already satisfied: nvidia-cudnn-cu11==8.5.0.96 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from torch>=1.7.0->ultralytics) (8.5.0.96) Requirement already satisfied: typing-extensions in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from torch>=1.7.0->ultralytics) (4.4.0) Requirement already satisfied: nvidia-cuda-nvrtc-cu11==11.7.99 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from torch>=1.7.0->ultralytics) (11.7.99) Requirement already satisfied: pygments>=2.4.0 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from ipython->ultralytics) (2.14.0) Requirement already satisfied: decorator in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from ipython->ultralytics) (5.1.1) Requirement already satisfied: traitlets>=5 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from ipython->ultralytics) (5.8.1) Requirement already satisfied: stack-data in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from ipython->ultralytics) (0.6.2) Requirement already satisfied: backcall in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from ipython->ultralytics) (0.2.0) Requirement already satisfied: pickleshare in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from ipython->ultralytics) (0.7.5) Requirement already satisfied: matplotlib-inline in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from ipython->ultralytics) (0.1.6) Requirement already satisfied: prompt-toolkit<3.1.0,>=3.0.11 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from ipython->ultralytics) (3.0.36) Requirement already satisfied: pexpect>4.3 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from ipython->ultralytics) (4.8.0) Requirement already satisfied: jedi>=0.16 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from ipython->ultralytics) (0.18.2) Requirement already satisfied: smmap<6,>=3.0.1 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from gitdb<5,>=4.0.1->GitPython>=3.1.24->ultralytics) (5.0.0) Requirement already satisfied: rsa<5,>=3.1.4 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from google-auth<3,>=1.6.3->tensorboard>=2.4.1->ultralytics) (4.9) Requirement already satisfied: cachetools<6.0,>=2.0.0 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from google-auth<3,>=1.6.3->tensorboard>=2.4.1->ultralytics) (5.2.1) Requirement already satisfied: six>=1.9.0 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from google-auth<3,>=1.6.3->tensorboard>=2.4.1->ultralytics) (1.16.0) Requirement already satisfied: pyasn1-modules>=0.2.1 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from google-auth<3,>=1.6.3->tensorboard>=2.4.1->ultralytics) (0.2.8) Requirement already satisfied: requests-oauthlib>=0.7.0 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from google-auth-oauthlib<0.5,>=0.4.1->tensorboard>=2.4.1->ultralytics) (1.3.1) Requirement already satisfied: parso<0.9.0,>=0.8.0 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from jedi>=0.16->ipython->ultralytics) (0.8.3) Requirement already satisfied: importlib-metadata>=4.4 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from markdown>=2.6.8->tensorboard>=2.4.1->ultralytics) (4.13.0) Requirement already satisfied: ptyprocess>=0.5 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from pexpect>4.3->ipython->ultralytics) (0.7.0) Requirement already satisfied: wcwidth in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from prompt-toolkit<3.1.0,>=3.0.11->ipython->ultralytics) (0.2.6) Requirement already satisfied: MarkupSafe>=2.1.1 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from werkzeug>=1.0.1->tensorboard>=2.4.1->ultralytics) (2.1.2) Requirement already satisfied: executing>=1.2.0 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from stack-data->ipython->ultralytics) (1.2.0) Requirement already satisfied: pure-eval in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from stack-data->ipython->ultralytics) (0.2.2) Requirement already satisfied: asttokens>=2.1.0 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from stack-data->ipython->ultralytics) (2.2.1) Requirement already satisfied: zipp>=0.5 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from importlib-metadata>=4.4->markdown>=2.6.8->tensorboard>=2.4.1->ultralytics) (3.11.0) Requirement already satisfied: pyasn1<0.5.0,>=0.4.6 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from pyasn1-modules>=0.2.1->google-auth<3,>=1.6.3->tensorboard>=2.4.1->ultralytics) (0.4.8) Requirement already satisfied: oauthlib>=3.0.0 in /strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.5,>=0.4.1->tensorboard>=2.4.1->ultralytics) (3.2.2) (venv) root@stratton:/yolov8/ultralytics# yolo Traceback (most recent call last): File "/strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/bin/yolo", line 5, in from ultralytics.yolo.cli import entrypoint File "/strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages/ultralytics/init.py", line 5, in from ultralytics.hub import checks File "/strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages/ultralytics/hub/init.py", line 10, in from ultralytics.hub.auth import Auth File "/strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages/ultralytics/hub/auth.py", line 5, in from ultralytics.hub.utils import HUB_API_ROOT, request_with_credentials File "/strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages/ultralytics/hub/utils.py", line 10, in from ultralytics.yolo.utils import DEFAULT_CONFIG_DICT, LOGGER, RANK, SETTINGS, TryExcept, colorstr, emojis File "/strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages/ultralytics/yolo/init.py", line 3, in from . import v8 File "/strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages/ultralytics/yolo/v8/init.py", line 3, in from ultralytics.yolo.configs import hydra_patch # noqa (patch hydra CLI) File "/strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages/ultralytics/yolo/configs/init.py", line 8, in from ultralytics.yolo.configs.hydra_patch import check_config_mismatch File "/strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages/ultralytics/yolo/configs/hydra_patch.py", line 12, in from ultralytics.yolo.utils import LOGGER, colorstr File "/strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages/ultralytics/yolo/utils/init.py", line 455, in SETTINGS = get_settings() File "/strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages/ultralytics/yolo/utils/init.py", line 410, in get_settings correct = settings.keys() == defaults.keys() \ AttributeError: 'NoneType' object has no attribute 'keys'

AyushExel commented 1 year ago

What's the command to reproduce? I don't see any commands in the error log

richardgohth commented 1 year ago

I used below for testing

(venv) root@stratton:/yolov8/ultralytics# yolo

AyushExel commented 1 year ago

@richardgohth can you try using a command that does something? like training or prediction? yolo

richardgohth commented 1 year ago

(venv) root@stratton:/yolov8/ultralytics# yolo predict model=yolov8n.pt source="https://ultralytics.com/images/bus.jpg" Traceback (most recent call last): File "/strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/bin/yolo", line 5, in from ultralytics.yolo.cli import entrypoint File "/strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages/ultralytics/init.py", line 5, in from ultralytics.hub import checks File "/strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages/ultralytics/hub/init.py", line 10, in from ultralytics.hub.auth import Auth File "/strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages/ultralytics/hub/auth.py", line 5, in from ultralytics.hub.utils import HUB_API_ROOT, request_with_credentials File "/strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages/ultralytics/hub/utils.py", line 10, in from ultralytics.yolo.utils import DEFAULT_CONFIG_DICT, LOGGER, RANK, SETTINGS, TryExcept, colorstr, emojis File "/strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages/ultralytics/yolo/init.py", line 3, in from . import v8 File "/strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages/ultralytics/yolo/v8/init.py", line 3, in from ultralytics.yolo.configs import hydra_patch # noqa (patch hydra CLI) File "/strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages/ultralytics/yolo/configs/init.py", line 8, in from ultralytics.yolo.configs.hydra_patch import check_config_mismatch File "/strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages/ultralytics/yolo/configs/hydra_patch.py", line 12, in from ultralytics.yolo.utils import LOGGER, colorstr File "/strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages/ultralytics/yolo/utils/init.py", line 455, in SETTINGS = get_settings() File "/strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages/ultralytics/yolo/utils/init.py", line 410, in get_settings correct = settings.keys() == defaults.keys() \ AttributeError: 'NoneType' object has no attribute 'keys'

glenn-jocher commented 1 year ago

@richardgohth yolo by itself will not work currently. I've added usage for this in https://github.com/ultralytics/ultralytics/pull/466/commits/5fd634ee4c6d9537fef434e64a2e676f9d969def which should be available in 8.0.10 later today.

glenn-jocher commented 1 year ago

@richardgohth

YOLOv8 CLI Usage examples:

1. Install the ultralytics package:

    pip install ultralytics

2. Train, Val, Predict and Export using 'yolo' commands:

        yolo TASK MODE ARGS

        Where   TASK (optional) is one of [detect, segment, classify]
                MODE (required) is one of [train, val, predict, export]
                ARGS (optional) are any number of custom 'arg=value' pairs like 'imgsz=320' that override defaults.
                    For a full list of available ARGS see https://docs.ultralytics.com/config.

    Train a detection model for 10 epochs with an initial learning_rate of 0.01
        yolo detect train data=coco128.yaml model=yolov8n.pt epochs=10 lr0=0.01

    Predict a YouTube video using a pretrained segmentation model at image size 320:
        yolo segment predict model=yolov8n-seg.pt source=https://youtu.be/Zgi9g1ksQHc imgsz=320

    Validate a pretrained detection model at batch-size 1 and image size 640:
        yolo detect val model=yolov8n.pt data=coco128.yaml batch=1 imgsz=640

    Export a YOLOv8n classification model to ONNX format at image size 224 by 128 (no TASK required)
        yolo export model=yolov8n-cls.pt format=onnx imgsz=224,128

3. Run special commands:

    yolo help
    yolo checks
    yolo version
    yolo settings
    yolo copy-config

Docs: https://docs.ultralytics.com/cli
Community: https://community.ultralytics.com
GitHub: https://github.com/ultralytics/ultralytics
richardgohth commented 1 year ago

@richardgohth yolo by itself will not work currently. I've added usage for this in 5fd634e which should be available in 8.0.10 later today.

Thanks, will look out for 8.0.10 Use "yolo" because it was the minimum that could reproduce the error. Using other commands gives the same error Thanks

richardgohth commented 1 year ago

@richardgohth yolo by itself will not work currently. I've added usage for this in 5fd634e which should be available in 8.0.10 later today.

same error Running setup.py install for antlr4-python3-runtime ... done Successfully installed GitPython-3.1.30 MarkupSafe-2.1.2 Pillow-9.4.0 PyYAML-6.0 absl-py-1.4.0 antlr4-python3-runtime-4.9.3 asttokens-2.2.1 backcall-0.2.0 cachetools-5.2.1 certifi-2022.12.7 charset-normalizer-3.0.1 contourpy-1.0.7 cycler-0.11.0 decorator-5.1.1 executing-1.2.0 fonttools-4.38.0 gitdb-4.0.10 google-auth-2.16.0 google-auth-oauthlib-0.4.6 grpcio-1.51.1 hydra-core-1.3.1 idna-3.4 importlib-metadata-6.0.0 ipython-8.8.0 jedi-0.18.2 kiwisolver-1.4.4 markdown-3.4.1 matplotlib-3.6.3 matplotlib-inline-0.1.6 numpy-1.24.1 nvidia-cublas-cu11-11.10.3.66 nvidia-cuda-nvrtc-cu11-11.7.99 nvidia-cuda-runtime-cu11-11.7.99 nvidia-cudnn-cu11-8.5.0.96 oauthlib-3.2.2 omegaconf-2.3.0 opencv-python-4.7.0.68 packaging-23.0 pandas-1.5.2 parso-0.8.3 pexpect-4.8.0 pickleshare-0.7.5 prompt-toolkit-3.0.36 protobuf-3.20.3 psutil-5.9.4 ptyprocess-0.7.0 pure-eval-0.2.2 pyasn1-0.4.8 pyasn1-modules-0.2.8 pygments-2.14.0 pyparsing-3.0.9 python-dateutil-2.8.2 pytz-2022.7.1 requests-2.28.2 requests-oauthlib-1.3.1 rsa-4.9 scipy-1.10.0 seaborn-0.12.2 sentry-sdk-1.13.0 six-1.16.0 smmap-5.0.0 stack-data-0.6.2 tensorboard-2.11.2 tensorboard-data-server-0.6.1 tensorboard-plugin-wit-1.8.1 thop-0.1.1.post2209072238 torch-1.13.1 torchvision-0.14.1 tqdm-4.64.1 traitlets-5.8.1 typing-extensions-4.4.0 ultralytics-8.0.10 urllib3-1.26.14 wcwidth-0.2.6 werkzeug-2.2.2 wheel-0.38.4 zipp-3.11.0 WARNING: You are using pip version 20.2.3; however, version 22.3.1 is available. You should consider upgrading via the '/root/.pyenv/versions/3.9.0/bin/python -m pip install --upgrade pip' command. root@stratton:/yolov8# yolo predict model=yolov8n.pt source="https://ultralytics.com/images/bus.jpg" Traceback (most recent call last): File "/strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/bin/yolo", line 5, in from ultralytics.yolo.cli import entrypoint File "/strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages/ultralytics/init.py", line 5, in from ultralytics.yolo.engine.model import YOLO File "/strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages/ultralytics/yolo/init.py", line 3, in from . import v8 File "/strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages/ultralytics/yolo/v8/init.py", line 3, in from ultralytics.yolo.configs import hydra_patch # noqa (patch hydra CLI) File "/strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages/ultralytics/yolo/configs/init.py", line 8, in from ultralytics.yolo.configs.hydra_patch import check_config_mismatch File "/strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages/ultralytics/yolo/configs/hydra_patch.py", line 12, in from ultralytics.yolo.utils import LOGGER, colorstr File "/strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages/ultralytics/yolo/utils/init.py", line 455, in SETTINGS = get_settings() File "/strongsort_yolov8/Yolov5_StrongSORT_OSNet/venv/lib/python3.9/site-packages/ultralytics/yolo/utils/init.py", line 410, in get_settings correct = settings.keys() == defaults.keys() \ AttributeError: 'NoneType' object has no attribute 'keys'

jvivian commented 1 year ago

I am also running into this error on Windows using WSL2 through VSCode.

pip list | grep ultra
ultralytics              8.0.53

Minimal Reproduction

My environment.yml file

name: yolotest
channels:
  - defaults
  - conda-forge
  - pytorch
  - nvidia
dependencies:
  - python=3.10
  - numpy
  - pytorch 
  - torchvision 
  - torchaudio 
  - pytorch-cuda=11.6
  - pip
  - pip:
    - python-dotenv
    - onnxruntime
    - ultralytics

Commands to reproduce

conda env update -f environment.yml
conda activate yolotest
yolo

Traceback (most recent call last):
  File "/home/jvivian/miniconda3/envs/yolotest/bin/yolo", line 5, in <module>
    from ultralytics.yolo.cfg import entrypoint
  File "/home/jvivian/miniconda3/envs/yolotest/lib/python3.10/site-packages/ultralytics/__init__.py", line 5, in <module>
    from ultralytics.yolo.engine.model import YOLO
  File "/home/jvivian/miniconda3/envs/yolotest/lib/python3.10/site-packages/ultralytics/yolo/__init__.py", line 3, in <module>
    from . import v8
  File "/home/jvivian/miniconda3/envs/yolotest/lib/python3.10/site-packages/ultralytics/yolo/v8/__init__.py", line 3, in <module>
    from ultralytics.yolo.v8 import classify, detect, segment
  File "/home/jvivian/miniconda3/envs/yolotest/lib/python3.10/site-packages/ultralytics/yolo/v8/classify/__init__.py", line 3, in <module>
    from ultralytics.yolo.v8.classify.predict import ClassificationPredictor, predict
  File "/home/jvivian/miniconda3/envs/yolotest/lib/python3.10/site-packages/ultralytics/yolo/v8/classify/predict.py", line 5, in <module>
    from ultralytics.yolo.engine.predictor import BasePredictor
  File "/home/jvivian/miniconda3/envs/yolotest/lib/python3.10/site-packages/ultralytics/yolo/engine/predictor.py", line 36, in <module>
    from ultralytics.nn.autobackend import AutoBackend
  File "/home/jvivian/miniconda3/envs/yolotest/lib/python3.10/site-packages/ultralytics/nn/autobackend.py", line 17, in <module>
    from ultralytics.yolo.utils import LINUX, LOGGER, ROOT, yaml_load
  File "/home/jvivian/miniconda3/envs/yolotest/lib/python3.10/site-packages/ultralytics/yolo/utils/__init__.py", line 610, in <module>
    SETTINGS = get_settings()
  File "/home/jvivian/miniconda3/envs/yolotest/lib/python3.10/site-packages/ultralytics/yolo/utils/__init__.py", line 584, in get_settings
    settings.keys() == defaults.keys() \
AttributeError: 'NoneType' object has no attribute 'keys'
richardgohth commented 1 year ago

I am also running into this error on Windows using WSL2 through VSCode.

pip list | grep ultra
ultralytics              8.0.53

Minimal Reproduction

My environment.yml file

name: yolotest
channels:
  - defaults
  - conda-forge
  - pytorch
  - nvidia
dependencies:
  - python=3.10
  - numpy
  - pytorch 
  - torchvision 
  - torchaudio 
  - pytorch-cuda=11.6
  - pip
  - pip:
    - python-dotenv
    - onnxruntime
    - ultralytics

Commands to reproduce

conda env update -f environment.yml
conda activate yolotest
yolo

Traceback (most recent call last):
  File "/home/jvivian/miniconda3/envs/yolotest/bin/yolo", line 5, in <module>
    from ultralytics.yolo.cfg import entrypoint
  File "/home/jvivian/miniconda3/envs/yolotest/lib/python3.10/site-packages/ultralytics/__init__.py", line 5, in <module>
    from ultralytics.yolo.engine.model import YOLO
  File "/home/jvivian/miniconda3/envs/yolotest/lib/python3.10/site-packages/ultralytics/yolo/__init__.py", line 3, in <module>
    from . import v8
  File "/home/jvivian/miniconda3/envs/yolotest/lib/python3.10/site-packages/ultralytics/yolo/v8/__init__.py", line 3, in <module>
    from ultralytics.yolo.v8 import classify, detect, segment
  File "/home/jvivian/miniconda3/envs/yolotest/lib/python3.10/site-packages/ultralytics/yolo/v8/classify/__init__.py", line 3, in <module>
    from ultralytics.yolo.v8.classify.predict import ClassificationPredictor, predict
  File "/home/jvivian/miniconda3/envs/yolotest/lib/python3.10/site-packages/ultralytics/yolo/v8/classify/predict.py", line 5, in <module>
    from ultralytics.yolo.engine.predictor import BasePredictor
  File "/home/jvivian/miniconda3/envs/yolotest/lib/python3.10/site-packages/ultralytics/yolo/engine/predictor.py", line 36, in <module>
    from ultralytics.nn.autobackend import AutoBackend
  File "/home/jvivian/miniconda3/envs/yolotest/lib/python3.10/site-packages/ultralytics/nn/autobackend.py", line 17, in <module>
    from ultralytics.yolo.utils import LINUX, LOGGER, ROOT, yaml_load
  File "/home/jvivian/miniconda3/envs/yolotest/lib/python3.10/site-packages/ultralytics/yolo/utils/__init__.py", line 610, in <module>
    SETTINGS = get_settings()
  File "/home/jvivian/miniconda3/envs/yolotest/lib/python3.10/site-packages/ultralytics/yolo/utils/__init__.py", line 584, in get_settings
    settings.keys() == defaults.keys() \
AttributeError: 'NoneType' object has no attribute 'keys'

Managed to workaround by adding a check for None in
File "/home/jvivian/miniconda3/envs/yolotest/lib/python3.10/site-packages/ultralytics/yolo/utils/init.py", line 584, i as follows:

correct = settings != None and \

xzyxiaohaha commented 1 year ago

@richardgohth This is because the local settings.yaml file is empty. I solved this problem by modifying "ultra-tics/yolo/utils/init.py". 1.delete those code: correct = \ settings.keys() == defaults.keys() #\ and all(type(a) == type(b) for a, b in zip(settings.values(), defaults.values())) \ and check_version(settings['settings_version'], version) 2.add code: correct = None The modified content is:

# correct = \
        #             settings.keys() == defaults.keys() \
        #         and all(type(a) == type(b) for a, b in zip(settings.values(), defaults.values())) \
        #         and check_version(settings['settings_version'], version)
correct = None
        if not correct:
            LOGGER.warning('WARNING ⚠️ Ultralytics settings reset to defaults. This is normal and may be due to a '
                           'recent ultralytics package update, but may have overwritten previous settings. '
                           f"\nView and update settings with 'yolo settings' or at '{file}'")
            settings = defaults  # merge **defaults with **settings (prefer **settings)
            yaml_save(file, settings)  # save updated defaults

hope it can help you.

richardgohth commented 1 year ago

Thank you

xzyxiaohaha commented 1 year ago

邮件已收到,我会及时查看,谢谢

github-actions[bot] commented 1 year ago

👋 Hello there! We wanted to give you a friendly reminder that this issue has not had any recent activity and may be closed soon, but don't worry - you can always reopen it if needed. If you still have any questions or concerns, please feel free to let us know how we can help.

For additional resources and information, please see the links below:

Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!

Thank you for your contributions to YOLO 🚀 and Vision AI ⭐

xzyxiaohaha commented 1 year ago

邮件已收到,我会及时查看,谢谢

glenn-jocher commented 1 year ago

@xzyxiaohaha sure! I'll be happy to provide a non-code response.

Based on the error message that was shared, it seems that there may be an issue with the settings file for the Ultralytics YOLO library. The error specifically states that a 'NoneType' object has no attribute 'keys', which suggests that the settings file may not have been properly initialized or may not exist at all.

To solve this issue, one approach could be to check if the settings file exists and is properly initialized, and if not, reset the settings to their default values. Another approach could be to ensure that the settings file is properly initialized during the installation process, so that this error does not occur in the first place.

Overall, it is important to ensure that proper error handling and troubleshooting mechanisms are in place for any libraries or tools used in a project, in order to quickly identify and resolve any issues that may arise.

richardgohth commented 1 year ago

Thanls. How to reset the settings to their default values? thanks

glenn-jocher commented 1 year ago

@richardgohth resetting the settings to their default values would involve ensuring that the correct settings file exists and that it is properly initialized. In the absence of a properly initialized settings file, the default settings will be used.

The default settings are typically a set of predetermined values that are used to configure the library or tool, and are provided by the developers or maintainers of that library or tool. Resetting to the default settings means that the library or tool will be configured according to these predetermined values, rather than any customized settings that may have been set previously.

To reset the settings, you may need to identify any issues with the settings file that is currently being used, and ensure that the correct settings file is in use. If the settings file is missing or corrupted, you may need to recreate it or copy it from a backup. Alternatively, you may be able to use a command or setting that will automatically reset the settings to their default values.

In any case, it is important to establish an effective troubleshooting and error-handling process, which will enable you to quickly identify and resolve any issues with the settings or other components of the library or tool.

richardgohth commented 1 year ago

HI Glenn Appreciate your reply Unfortunately I know too little for the content to be of any value. eg. "that are used to configure the library or tool" - which libraries or tools in this case? Where are the default settings files? Are there default settings files that can be copied? Where can I find more info on this matter? Thanks anyway.

glenn-jocher commented 1 year ago

@richardgohth, I apologize for any confusion in my previous message.

Regarding your question about resetting settings to their default values, different libraries or tools may have slightly different ways of managing this process. In the case of the Ultralytics YOLO library, the default settings file is typically located within the library's installation folder or package, and is included by default when the library is installed.

If you're not sure where to find the default settings file for a specific library or tool, it's often helpful to consult the documentation or user guide for that library or tool, as this should provide more specific instructions and information.

Regarding your question about copying default settings files, in some cases it may be possible to copy a default settings file from a backup or from another installation of the library or tool. However, it's important to ensure that the settings file is appropriate for the specific version of the library or tool that you're working with, as settings can change from version to version.

To find more information on this topic, I would recommend reviewing the documentation or user guide for the specific library or tool that you're working with. You can also search online or within developer communities for tips and best practices regarding handling settings files and resetting to default values.

richardgohth commented 1 year ago

Thank you

glenn-jocher commented 1 year ago

@richardgohth sure thing! I'm happy to help.

A comment in code is simply a message that can be added to the code to provide information to other developers or to oneself. These messages can be helpful for explaining the purpose or functionality of different parts of the code, and can make the code easier to understand and maintain.

It's important to note that comments should be clear and concise, explaining the purpose or functionality of the code in a way that is easy to understand. Too many comments or comments that are too long can make the code harder to read and can be overwhelming for other developers.

Another important thing to keep in mind is that comments should be kept up to date with the code. If the code is changed or updated, the comments should be reviewed and potentially revised to ensure that they still accurately describe the code.

Overall, comments can be a useful tool for developers, but it's important to use them effectively to ensure that the code remains readable and maintainable.

github-actions[bot] commented 1 year ago

👋 Hello there! We wanted to give you a friendly reminder that this issue has not had any recent activity and may be closed soon, but don't worry - you can always reopen it if needed. If you still have any questions or concerns, please feel free to let us know how we can help.

For additional resources and information, please see the links below:

Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!

Thank you for your contributions to YOLO 🚀 and Vision AI ⭐

xzyxiaohaha commented 1 year ago

邮件已收到,我会及时查看,谢谢

glenn-jocher commented 1 year ago

@xzyxiaohaha hi there! Thank you for letting us know that you've received the email. We appreciate your prompt attention and look forward to hearing your response. If you have any further questions or concerns, please don't hesitate to let us know. We're always here to help in any way we can. Thanks again!

github-actions[bot] commented 9 months ago

👋 Hello there! We wanted to give you a friendly reminder that this issue has not had any recent activity and may be closed soon, but don't worry - you can always reopen it if needed. If you still have any questions or concerns, please feel free to let us know how we can help.

For additional resources and information, please see the links below:

Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!

Thank you for your contributions to YOLO 🚀 and Vision AI ⭐

xzyxiaohaha commented 9 months ago

邮件已收到,我会及时查看,谢谢

glenn-jocher commented 9 months ago

你好, @xzyxiaohaha! 很高兴收到你的信息。请你在方便的时候审查邮件,并随时与我们提问或讨论有关YOLOv8的相关问题。如有需要,请随时向我们寻求帮助,我们会乐意提供协助。谢谢你的合作。

github-actions[bot] commented 6 months ago

👋 Hello there! We wanted to give you a friendly reminder that this issue has not had any recent activity and may be closed soon, but don't worry - you can always reopen it if needed. If you still have any questions or concerns, please feel free to let us know how we can help.

For additional resources and information, please see the links below:

Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!

Thank you for your contributions to YOLO 🚀 and Vision AI ⭐

xzyxiaohaha commented 6 months ago

邮件已收到,我会及时查看,谢谢

glenn-jocher commented 6 months ago

@xzyxiaohaha 您好,

感谢您的回复,如果您在使用YOLOv8时有任何疑问或需要进一步的帮助,请随时与我们联系。我们非常重视您的反馈,并会尽力提供必要的支持。期待您的详细问题描述以便我们更好地协助您。

祝好,团队致上。

github-actions[bot] commented 5 months ago

👋 Hello there! We wanted to give you a friendly reminder that this issue has not had any recent activity and may be closed soon, but don't worry - you can always reopen it if needed. If you still have any questions or concerns, please feel free to let us know how we can help.

For additional resources and information, please see the links below:

Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!

Thank you for your contributions to YOLO 🚀 and Vision AI ⭐

xzyxiaohaha commented 5 months ago

邮件已收到,我会及时查看,谢谢

glenn-jocher commented 5 months ago

@xzyxiaohaha apologies for any confusion, but it seems there might have been a mix-up. For issues related to YOLOv8, feel free to reach out with specific questions or details about the trouble you're experiencing, and we'll be here to assist you. Thank you!

github-actions[bot] commented 4 months ago

👋 Hello there! We wanted to give you a friendly reminder that this issue has not had any recent activity and may be closed soon, but don't worry - you can always reopen it if needed. If you still have any questions or concerns, please feel free to let us know how we can help.

For additional resources and information, please see the links below:

Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!

Thank you for your contributions to YOLO 🚀 and Vision AI ⭐

xzyxiaohaha commented 4 months ago

邮件已收到,我会及时查看,谢谢

glenn-jocher commented 4 months ago

@xzyxiaohaha 谢谢您的回复。如果您有任何问题或需要进一步的帮助,请随时告知。祝您一切顺利!🙂

github-actions[bot] commented 3 months ago

👋 Hello there! We wanted to give you a friendly reminder that this issue has not had any recent activity and may be closed soon, but don't worry - you can always reopen it if needed. If you still have any questions or concerns, please feel free to let us know how we can help.

For additional resources and information, please see the links below:

Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!

Thank you for your contributions to YOLO 🚀 and Vision AI ⭐

xzyxiaohaha commented 3 months ago

邮件已收到,我会及时查看,谢谢

glenn-jocher commented 3 months ago

@xzyxiaohaha it seems like there's an issue with the settings configuration in your YOLOv8 environment. The error 'NoneType' object has no attribute 'keys' indicates that the settings object is expected to be a dictionary but is None instead.

Here are a few steps you can take to troubleshoot this issue:

  1. Check for Configuration File: Ensure that the default.yaml configuration file is present in the correct directory and is not empty or corrupted.

  2. Update Ultralytics YOLOv8: There might be updates or bug fixes available that could resolve your issue. Update the package using:

    python -m pip install --upgrade ultralytics
  3. Reinstall Ultralytics YOLOv8: If updating doesn't work, try reinstalling the package:

    python -m pip uninstall ultralytics
    python -m pip install ultralytics
  4. Virtual Environment: Sometimes, the virtual environment can cause issues. You might want to recreate it:

    deactivate
    rm -rf venv
    python -m venv venv
    source venv/bin/activate
    python -m pip install --upgrade pip
    python -m pip install ultralytics
  5. Python Version: Ensure that the Python version you are using is compatible with Ultralytics YOLOv8. You are currently using Python 3.9.0, which should be compatible, but it's always good to check the official documentation for any version-specific notes.

  6. Check Dependencies: Ensure all dependencies are installed correctly. Sometimes, a missing or corrupt package can cause issues.

  7. Permissions: Since you are running as root, permissions should not be an issue, but it's always good to check if all files have the correct permissions, especially if you've moved files around or changed user accounts.

  8. Logs and Debugging: Look for any logs that might give you more information about the error. You can also run the command with a higher verbosity level or debug flag if available.

If none of these steps resolve the issue, consider reaching out to the Ultralytics support with detailed information about the error, your environment, and the steps you've taken to troubleshoot. They might be able to provide more specific guidance. 🛠️

github-actions[bot] commented 2 months ago

👋 Hello there! We wanted to give you a friendly reminder that this issue has not had any recent activity and may be closed soon, but don't worry - you can always reopen it if needed. If you still have any questions or concerns, please feel free to let us know how we can help.

For additional resources and information, please see the links below:

Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!

Thank you for your contributions to YOLO 🚀 and Vision AI ⭐

xzyxiaohaha commented 2 months ago

邮件已收到,我会及时查看,谢谢

glenn-jocher commented 2 months ago

@xzyxiaohaha it seems there's been a bit of a mix-up, as your message appears to be an automated email response. If you have any specific questions or issues regarding YOLOv8, please feel free to share them here, and I'd be more than happy to assist! 😊

github-actions[bot] commented 1 month ago

👋 Hello there! We wanted to give you a friendly reminder that this issue has not had any recent activity and may be closed soon, but don't worry - you can always reopen it if needed. If you still have any questions or concerns, please feel free to let us know how we can help.

For additional resources and information, please see the links below:

Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!

Thank you for your contributions to YOLO 🚀 and Vision AI ⭐