ultralytics / ultralytics

Ultralytics YOLO11 🚀
https://docs.ultralytics.com
GNU Affero General Public License v3.0
36.59k stars 7.05k forks source link

Train problems. #18971

Open psycho-ygq opened 2 weeks ago

psycho-ygq commented 2 weeks ago

Search before asking

Question

Image Why does the YOLOv8 model not load the pre-trained model training, but the YOLOv11 version of the pre-trained weight file is loaded?

Additional

No response

UltralyticsAssistant commented 2 weeks ago

👋 Hello @psycho-ygq, thank you for your interest in Ultralytics 🚀! We recommend a visit to the Docs for new users where you can find many Python and CLI usage examples and where many of the most common questions may already be answered.

If this is a 🐛 Bug Report, please provide a Minimum Reproducible Example (MRE) that demonstrates the issue, including detailed steps and code snippets, so we can investigate further.

If this is a custom training ❓ Question, please include as much information as possible about your setup:

Join the Ultralytics community to connect with other YOLO enthusiasts. For real-time chat, join our Discord 🎧. Prefer forums? Visit Discourse. Or explore discussions on our Subreddit.

Troubleshooting and Upgrade

To ensure you're using the latest features and fixes, please upgrade to the latest ultralytics package along with all requirements in a Python>=3.8 environment and verify the issue persists:

pip install -U ultralytics

Recommended Environments

YOLO runs seamlessly in verified environments that come with dependencies preinstalled:

CI Status

Ultralytics CI

If this badge is green, all Ultralytics CI tests are currently passing. CI tests validate all YOLO Modes and Tasks across macOS, Windows, and Ubuntu environments every 24 hours and upon every commit.

This is an automated response to guide you 🔍, and an Ultralytics engineer will follow up to assist you further!

Y-T-G commented 2 weeks ago

Duplicate of https://github.com/ultralytics/ultralytics/issues/17801

psycho-ygq commented 2 weeks ago

Thank you so much!

glenn-jocher commented 2 weeks ago

@psycho-ygq glad to help! 😊 For YOLOv8, ensure you're loading the model correctly using model = YOLO('yolov8n.pt') which automatically handles architecture and weights. YOLOv11 uses the same API but with updated architectures. Verify your Ultralytics package version and model initialization method. For details, see the YOLOv8 training docs: https://docs.ultralytics.com/models/yolov8/#usage-examples