examples/hub.ipynb
中文 | 한국어 | 日本語 | Русский | Deutsch | Français | Español | Português | Türkçe | Tiếng Việt | العربية
<a href="https://github.com/ultralytics/hub/actions/workflows/ci.yml"></a> <a href="https://colab.research.google.com/github/ultralytics/hub/blob/main/hub.ipynb"></a>
<a href="https://ultralytics.com/discord"></a> <a href="https://community.ultralytics.com"></a> <a href="https://reddit.com/r/ultralytics"></a>
Welcome to the Ultralytics HUB notebook!
This notebook allows you to train Ultralytics YOLO 🚀 models using HUB. Please browse the HUB <a href="https://docs.ultralytics.com/hub/">Docs</a> for details, raise an issue on <a href="https://github.com/ultralytics/hub/issues/new/choose">GitHub</a> for support, and join our <a href="https://ultralytics.com/discord">Discord</a> community for questions and discussions!
</div>pip install ultralytics and dependencies and check software and hardware.
!uv pip install ultralytics # install
from ultralytics import YOLO, checks, hub
checks() # checks
⚡ Login with your API key, load your YOLO 🚀 model and start training in 3 lines of code!
# Log in to HUB using your API key (https://hub.ultralytics.com/settings?tab=api+keys)
hub.login("YOUR_API_KEY")
# Load your model from HUB (replace 'YOUR_MODEL_ID' with your model ID)
model = YOLO("https://hub.ultralytics.com/models/YOUR_MODEL_ID")
# Train the model
results = model.train()