-
-
Notifications
You must be signed in to change notification settings - Fork 16k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fails when instantiation of YOLO (model = YOLO("path/yolov5l.yaml")) #12640
Comments
👋 Hello @JDang-At-Festo, thank you for your interest in YOLOv5 🚀! Please visit our ⭐️ Tutorials to get started, where you can find quickstart guides for simple tasks like Custom Data Training all the way to advanced concepts like Hyperparameter Evolution. If this is a 🐛 Bug Report, please provide a minimum reproducible example to help us debug it. If this is a custom training ❓ Question, please provide as much information as possible, including dataset image examples and training logs, and verify you are following our Tips for Best Training Results. RequirementsPython>=3.8.0 with all requirements.txt installed including PyTorch>=1.8. To get started: git clone https://github.com/ultralytics/yolov5 # clone
cd yolov5
pip install -r requirements.txt # install 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, validation, inference, export and benchmarks on macOS, Windows, and Ubuntu every 24 hours and on every commit. Introducing YOLOv8 🚀We're excited to announce the launch of our latest state-of-the-art (SOTA) object detection model for 2023 - YOLOv8 🚀! Designed to be fast, accurate, and easy to use, YOLOv8 is an ideal choice for a wide range of object detection, image segmentation and image classification tasks. With YOLOv8, you'll be able to quickly and accurately detect objects in real-time, streamline your workflows, and achieve new levels of accuracy in your projects. Check out our YOLOv8 Docs for details and get started with: pip install ultralytics |
@JDang-At-Festo hello! Thank you for the detailed issue report. It seems like there might be a mismatch between the expected arguments in the The Could you please ensure that you are using the latest version of the YOLOv5 repository and that your environment is set up according to the instructions in the Ultralytics Docs? If the issue persists, it might be helpful to check if there have been any changes to the If you're confident that your setup is correct and the issue is not resolved, please consider opening an issue on the YOLOv5 GitHub repository with the details provided here, and we'll look into it further. In the meantime, you might want to try instantiating the model using the from ultralytics import YOLO
model = YOLO.create('path_to_yaml/yolov5l.yaml', nc=1, anchors=your_anchors) Replace Thank you for your contribution to the YOLOv5 community, and we appreciate your patience as we work to resolve this issue! 🚀 |
Hello @glenn-jocher Thank you for the response! I will try this but in the meantime I was looking for the online documentation of the python package for ultralytics. I can only find the Tutorial of ultralytics. Is there more comprehensive documentation that I missed? |
Hello again @JDang-At-Festo-Festo! The link you've mentioned is indeed the primary source for Ultralytics YOLOv5 documentation. It provides a comprehensive guide on how to use the YOLOv5 Python package, including installation, setup, training, and inference. If you're looking for more in-depth information, the documentation includes various sections that cover different aspects of using YOLOv5. For instance, the 'Tutorials' section provides step-by-step guides for common tasks, while the 'API' section details the functions and classes available in the package. For the most detailed understanding, you might also consider exploring the source code directly on the GitHub repository, as it often contains comments and docstrings that can provide additional context and usage information. If there's something specific you're struggling to find or if you have suggestions for improving the documentation, please feel free to share your feedback. We're always looking to improve and make sure our documentation meets the needs of our users. Thanks for your engagement with the YOLOv5 community! 🌟 |
Search before asking
YOLOv5 Component
Other
Bug
Basic problem description
Hello, so I am trying to train a model from scratch using the yaml files given with the repo from Ultralytics. Looking at their python training examples documentation. However the code gets hung up on the instantiation of the YOLO object itself. I get an 'init' error. This branches from the 'tasks.py' file included in the ultralytics pip installation. On line 718:
Now this is able to traverse through all of the layers except layer 23. Below I will include the yaml file.
Once I hit layer 23 I get this error message:
Call stack
Output logger from ultralytics
Support materials
yolov5s.yaml
Please help me I cannot find a good solution despite the 80 tabs of S.O open
Environment
-YOLO: Yolov5
-OS: Windows 10
-Python Version: 3.10.4
-Pip Version: 23.1.2
-Ultralytics pip package: 8.0.22
Minimal Reproducible Example
TrainFromScratch.py
Additional
Thank you for reading this
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: