\n",
13 | "\n",
14 | "[中文](https://docs.ultralytics.com/zh/hub/) | [한국어](https://docs.ultralytics.com/ko/hub/) | [日本語](https://docs.ultralytics.com/ja/hub/) | [Русский](https://docs.ultralytics.com/ru/hub/) | [Deutsch](https://docs.ultralytics.com/de/hub/) | [Français](https://docs.ultralytics.com/fr/hub/) | [Español](https://docs.ultralytics.com/es/hub/) | [Português](https://docs.ultralytics.com/pt/hub/) | [Türkçe](https://docs.ultralytics.com/tr/hub/) | [Tiếng Việt](https://docs.ultralytics.com/vi/hub/) | [العربية](https://docs.ultralytics.com/ar/hub/)\n",
15 | "\n",
16 | "

\n",
17 | "

\n",
18 | "\n",
19 | "

\n",
20 | "

\n",
21 | "

\n",
22 | "\n",
23 | "Welcome to the [Ultralytics](https://ultralytics.com/) HUB notebook!\n",
24 | "\n",
25 | "This notebook allows you to train Ultralytics [YOLO](https://github.com/ultralytics/ultralytics) 🚀 models using [HUB](https://hub.ultralytics.com/). Please browse the HUB
Docs for details, raise an issue on
GitHub for support, and join our
Discord community for questions and discussions!\n",
26 | "
"
27 | ]
28 | },
29 | {
30 | "cell_type": "markdown",
31 | "metadata": {
32 | "id": "eRQ2ow94MiOv"
33 | },
34 | "source": [
35 | "# Setup\n",
36 | "\n",
37 | "Pip install `ultralytics` and [dependencies](https://github.com/ultralytics/ultralytics/blob/main/pyproject.toml) and check software and hardware.\n",
38 | "\n",
39 | "[](https://pypi.org/project/ultralytics/) [](https://www.pepy.tech/projects/ultralytics) [](https://pypi.org/project/ultralytics/)"
40 | ]
41 | },
42 | {
43 | "cell_type": "code",
44 | "execution_count": 1,
45 | "metadata": {
46 | "colab": {
47 | "base_uri": "https://localhost:8080/"
48 | },
49 | "id": "FyDnXd-n4c7Y",
50 | "outputId": "bb836f79-9154-47c6-abc7-f1acd912ff3a"
51 | },
52 | "outputs": [
53 | {
54 | "output_type": "stream",
55 | "name": "stdout",
56 | "text": [
57 | "Ultralytics 8.3.99 🚀 Python-3.11.11 torch-2.6.0+cu124 CUDA:0 (Tesla T4, 15095MiB)\n",
58 | "Setup complete ✅ (2 CPUs, 12.7 GB RAM, 39.6/112.6 GB disk)\n"
59 | ]
60 | }
61 | ],
62 | "source": [
63 | "%pip install ultralytics\n",
64 | "from ultralytics import YOLO, checks, hub\n",
65 | "\n",
66 | "checks() # Verify system setup for Ultralytics training"
67 | ]
68 | },
69 | {
70 | "cell_type": "markdown",
71 | "metadata": {
72 | "id": "cQ9BwaAqxAm4"
73 | },
74 | "source": [
75 | "# Start\n",
76 | "\n",
77 | "⚡ Login with your API key, load your YOLO 🚀 model, and start training in 3 lines of code!"
78 | ]
79 | },
80 | {
81 | "cell_type": "code",
82 | "execution_count": null,
83 | "metadata": {
84 | "id": "XSlZaJ9Iw_iZ"
85 | },
86 | "outputs": [],
87 | "source": [
88 | "# Login to HUB using your API key (https://hub.ultralytics.com/settings?tab=api+keys)\n",
89 | "hub.login(\"YOUR_API_KEY\")\n",
90 | "\n",
91 | "# Load your model from HUB (replace 'YOUR_MODEL_ID' with your model ID)\n",
92 | "model = YOLO(\"https://hub.ultralytics.com/models/YOUR_MODEL_ID\")\n",
93 | "\n",
94 | "# Train the model\n",
95 | "results = model.train()"
96 | ]
97 | }
98 | ],
99 | "metadata": {
100 | "accelerator": "GPU",
101 | "colab": {
102 | "name": "Ultralytics HUB",
103 | "provenance": []
104 | },
105 | "kernelspec": {
106 | "display_name": "Python 3",
107 | "name": "python3"
108 | },
109 | "language_info": {
110 | "name": "python"
111 | }
112 | },
113 | "nbformat": 4,
114 | "nbformat_minor": 0
115 | }
116 |
--------------------------------------------------------------------------------
/requirements.txt:
--------------------------------------------------------------------------------
1 | # Ultralytics requirements
2 | # Usage: pip install -r requirements.txt
3 |
4 | ultralytics>=8.0.232
5 |
--------------------------------------------------------------------------------