diff --git a/README.md b/README.md index b39b089a2..cce98e50b 100644 --- a/README.md +++ b/README.md @@ -10,8 +10,8 @@ Ultralytics CI Ultralytics YOLO Citation Ultralytics Docker Pulls - Ultralytics Discord - Ultralytics Forums + Ultralytics Discord + Ultralytics Forums Ultralytics Reddit
Run Ultralytics on Gradient @@ -22,7 +22,7 @@ [Ultralytics](https://www.ultralytics.com/) [YOLO11](https://github.com/ultralytics/ultralytics) is a cutting-edge, state-of-the-art (SOTA) model that builds upon the success of previous YOLO versions and introduces new features and improvements to further boost performance and flexibility. YOLO11 is designed to be fast, accurate, and easy to use, making it an excellent choice for a wide range of object detection and tracking, instance segmentation, image classification and pose estimation tasks. -We hope that the resources here will help you get the most out of YOLO. Please browse the Ultralytics Docs for details, raise an issue on GitHub for support, questions, or discussions, become a member of the Ultralytics Discord, Reddit and Forums! +We hope that the resources here will help you get the most out of YOLO. Please browse the Ultralytics Docs for details, raise an issue on GitHub for support, questions, or discussions, become a member of the Ultralytics Discord, Reddit and Forums! To request an Enterprise License please complete the form at [Ultralytics Licensing](https://www.ultralytics.com/license). @@ -41,7 +41,7 @@ To request an Enterprise License please complete the form at [Ultralytics Licens space Ultralytics BiliBili space - Ultralytics Discord + Ultralytics Discord @@ -210,7 +210,7 @@ See [OBB Docs](https://docs.ultralytics.com/tasks/obb/) for usage examples with Our key integrations with leading AI platforms extend the functionality of Ultralytics' offerings, enhancing tasks like dataset labeling, training, visualization, and model management. Discover how Ultralytics, in collaboration with [Roboflow](https://roboflow.com/?ref=ultralytics), ClearML, [Comet](https://bit.ly/yolov8-readme-comet), Neural Magic and [OpenVINO](https://docs.ultralytics.com/integrations/openvino/), can optimize your AI workflow.
- + Ultralytics active learning integrations

@@ -237,7 +237,7 @@ Our key integrations with leading AI platforms extend the functionality of Ultra Experience seamless AI with [Ultralytics HUB](https://www.ultralytics.com/hub) ⭐, the all-in-one solution for data visualization, YOLO11 🚀 model training and deployment, without any coding. Transform images into actionable insights and bring your AI visions to life with ease using our cutting-edge platform and user-friendly [Ultralytics App](https://www.ultralytics.com/app-install). Start your journey for **Free** now! - + Ultralytics HUB preview image ##
Contribute
@@ -274,5 +274,5 @@ For Ultralytics bug reports and feature requests please visit [GitHub Issues](ht space Ultralytics BiliBili space - Ultralytics Discord + Ultralytics Discord diff --git a/README.zh-CN.md b/README.zh-CN.md index e43aba239..ca49bb8ad 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -10,8 +10,8 @@ Ultralytics CI Ultralytics YOLO Citation Ultralytics Docker Pulls - Ultralytics Discord - Ultralytics Forums + Ultralytics Discord + Ultralytics Forums Ultralytics Reddit
Run Ultralytics on Gradient @@ -22,7 +22,7 @@ [Ultralytics](https://www.ultralytics.com/) [YOLO11](https://github.com/ultralytics/ultralytics) 是一个尖端的、最先进(SOTA)的模型,基于之前 YOLO 版本的成功,并引入了新功能和改进以进一步提升性能和灵活性。YOLO11 被设计得快速、准确且易于使用,是进行广泛对象检测和跟踪、实例分割、图像分类和姿态估计任务的理想选择。 -我们希望这里的资源能帮助你充分利用 YOLO。请浏览 Ultralytics 文档 以获取详细信息,在 GitHub 上提出问题或讨论,成为 Ultralytics DiscordReddit论坛 的成员! +我们希望这里的资源能帮助你充分利用 YOLO。请浏览 Ultralytics 文档 以获取详细信息,在 GitHub 上提出问题或讨论,成为 Ultralytics DiscordReddit论坛 的成员! 想申请企业许可证,请完成 [Ultralytics Licensing](https://www.ultralytics.com/license) 上的表单。 @@ -41,7 +41,7 @@ space Ultralytics BiliBili space - Ultralytics Discord + Ultralytics Discord @@ -210,7 +210,7 @@ YOLO11 [检测](https://docs.ultralytics.com/tasks/detect/)、[分割](https://d 我们与领先的 AI 平台的关键集成扩展了 Ultralytics 产品的功能,增强了数据集标记、训练、可视化和模型管理等任务的能力。了解 Ultralytics 如何与 [Roboflow](https://roboflow.com/?ref=ultralytics)、ClearML、[Comet](https://bit.ly/yolov8-readme-comet)、Neural Magic 和 [OpenVINO](https://docs.ultralytics.com/integrations/openvino/) 合作,优化您的 AI 工作流程。
- + Ultralytics active learning integrations

@@ -237,7 +237,7 @@ YOLO11 [检测](https://docs.ultralytics.com/tasks/detect/)、[分割](https://d 体验无缝 AI 使用 [Ultralytics HUB](https://www.ultralytics.com/hub) ⭐,一个集数据可视化、YOLO11 🚀 模型训练和部署于一体的解决方案,无需编写代码。利用我们最先进的平台和用户友好的 [Ultralytics 应用](https://www.ultralytics.com/app-install),将图像转换为可操作见解,并轻松实现您的 AI 愿景。免费开始您的旅程! - + Ultralytics HUB preview image ##
贡献
@@ -274,5 +274,5 @@ Ultralytics 提供两种许可选项以适应各种用例: space Ultralytics BiliBili space - Ultralytics Discord + Ultralytics Discord diff --git a/docs/README.md b/docs/README.md index 03285c41b..a3d3edb40 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,5 +1,5 @@
-Ultralytics logo +Ultralytics logo # 📚 Ultralytics Docs @@ -10,7 +10,7 @@ [![Check Domains](https://github.com/ultralytics/docs/actions/workflows/check_domains.yml/badge.svg)](https://github.com/ultralytics/docs/actions/workflows/check_domains.yml) [![Ultralytics Actions](https://github.com/ultralytics/docs/actions/workflows/format.yml/badge.svg)](https://github.com/ultralytics/docs/actions/workflows/format.yml) -Discord Ultralytics Forums Ultralytics Reddit +Discord Ultralytics Forums Ultralytics Reddit ## 🛠️ Installation @@ -142,5 +142,5 @@ For Ultralytics bug reports and feature requests please visit [GitHub Issues](ht space Ultralytics BiliBili space - Ultralytics Discord + Ultralytics Discord diff --git a/docs/build_docs.py b/docs/build_docs.py index e342312bd..483a2dd05 100644 --- a/docs/build_docs.py +++ b/docs/build_docs.py @@ -226,7 +226,7 @@ def remove_macros(): # Create a set of indices to remove (including lines before and after) indices_to_remove = set() for i in macros_indices: - indices_to_remove.update(range(i - 1, i + 4)) # i-1, i, i+1, i+2, i+3 + indices_to_remove.update(range(i - 1, i + 3)) # i-1, i, i+1, i+2, i+3 # Create new list of lines, excluding the ones to remove new_lines = [line for i, line in enumerate(lines) if i not in indices_to_remove] diff --git a/docs/en/guides/raspberry-pi.md b/docs/en/guides/raspberry-pi.md index c25557e8a..96e903b5b 100644 --- a/docs/en/guides/raspberry-pi.md +++ b/docs/en/guides/raspberry-pi.md @@ -41,7 +41,7 @@ Raspberry Pi is a small, affordable, single-board computer. It has become popula ## What is Raspberry Pi OS? -[Raspberry Pi OS](https://www.raspberrypi.com/software) (formerly known as Raspbian) is a Unix-like operating system based on the Debian GNU/Linux distribution for the Raspberry Pi family of compact single-board computers distributed by the Raspberry Pi Foundation. Raspberry Pi OS is highly optimized for the Raspberry Pi with ARM CPUs and uses a modified LXDE desktop environment with the Openbox stacking window manager. Raspberry Pi OS is under active development, with an emphasis on improving the stability and performance of as many Debian packages as possible on Raspberry Pi. +[Raspberry Pi OS](https://www.raspberrypi.com/software/) (formerly known as Raspbian) is a Unix-like operating system based on the Debian GNU/Linux distribution for the Raspberry Pi family of compact single-board computers distributed by the Raspberry Pi Foundation. Raspberry Pi OS is highly optimized for the Raspberry Pi with ARM CPUs and uses a modified LXDE desktop environment with the Openbox stacking window manager. Raspberry Pi OS is under active development, with an emphasis on improving the stability and performance of as many Debian packages as possible on Raspberry Pi. ## Flash Raspberry Pi OS to Raspberry Pi @@ -249,7 +249,7 @@ To reproduce the above Ultralytics benchmarks on all [export formats](../modes/e ## Use Raspberry Pi Camera -When using Raspberry Pi for Computer Vision projects, it can be essentially to grab real-time video feeds to perform inference. The onboard MIPI CSI connector on the Raspberry Pi allows you to connect official Raspberry PI camera modules. In this guide, we have used a [Raspberry Pi Camera Module 3](https://www.raspberrypi.com/products/camera-module-3) to grab the video feeds and perform inference using YOLOv8 models. +When using Raspberry Pi for Computer Vision projects, it can be essentially to grab real-time video feeds to perform inference. The onboard MIPI CSI connector on the Raspberry Pi allows you to connect official Raspberry PI camera modules. In this guide, we have used a [Raspberry Pi Camera Module 3](https://www.raspberrypi.com/products/camera-module-3/) to grab the video feeds and perform inference using YOLOv8 models. !!! tip @@ -257,7 +257,7 @@ When using Raspberry Pi for Computer Vision projects, it can be essentially to g !!! note - Raspberry Pi 5 uses smaller CSI connectors than the Raspberry Pi 4 (15-pin vs 22-pin), so you will need a [15-pin to 22pin adapter cable](https://www.raspberrypi.com/products/camera-cable) to connect to a Raspberry Pi Camera. + Raspberry Pi 5 uses smaller CSI connectors than the Raspberry Pi 4 (15-pin vs 22-pin), so you will need a [15-pin to 22pin adapter cable](https://www.raspberrypi.com/products/camera-cable/) to connect to a Raspberry Pi Camera. ### Test the Camera diff --git a/docs/en/guides/ros-quickstart.md b/docs/en/guides/ros-quickstart.md index 27371131d..9d7be7349 100644 --- a/docs/en/guides/ros-quickstart.md +++ b/docs/en/guides/ros-quickstart.md @@ -7,7 +7,7 @@ keywords: Ultralytics, YOLO, object detection, deep learning, machine learning, # ROS (Robot Operating System) quickstart guide

-

ROS Introduction (captioned) from Open Robotics on Vimeo.

+

ROS Introduction (captioned) from Open Robotics on Vimeo.

## What is ROS? diff --git a/docs/en/help/CI.md b/docs/en/help/CI.md index 93b1ad322..4ed6947e6 100644 --- a/docs/en/help/CI.md +++ b/docs/en/help/CI.md @@ -56,7 +56,7 @@ To quickly get a glimpse of the code coverage status of the `ultralytics` python In the sunburst graphic below, the innermost circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively. - + Ultralytics Codecov Image diff --git a/docs/en/hub/app/android.md b/docs/en/hub/app/android.md index bca298fa9..d5d19ef91 100644 --- a/docs/en/hub/app/android.md +++ b/docs/en/hub/app/android.md @@ -6,7 +6,7 @@ keywords: Ultralytics, Android app, real-time object detection, YOLO models, Ten # Ultralytics Android App: Real-time [Object Detection](https://www.ultralytics.com/glossary/object-detection) with YOLO Models - + Ultralytics HUB preview image
@@ -22,7 +22,7 @@ keywords: Ultralytics, Android app, real-time object detection, YOLO models, Ten space Ultralytics BiliBili space - Ultralytics Discord + Ultralytics Discord

diff --git a/docs/en/hub/app/index.md b/docs/en/hub/app/index.md index e812d6867..c044aa055 100644 --- a/docs/en/hub/app/index.md +++ b/docs/en/hub/app/index.md @@ -6,7 +6,7 @@ keywords: Ultralytics HUB, YOLO models, mobile app, iOS, Android, hardware accel # Ultralytics HUB App - + Ultralytics HUB preview image
@@ -22,7 +22,7 @@ keywords: Ultralytics HUB, YOLO models, mobile app, iOS, Android, hardware accel space Ultralytics BiliBili space - Ultralytics Discord + Ultralytics Discord

diff --git a/docs/en/hub/app/ios.md b/docs/en/hub/app/ios.md index be896fe80..061267b59 100644 --- a/docs/en/hub/app/ios.md +++ b/docs/en/hub/app/ios.md @@ -6,7 +6,7 @@ keywords: Ultralytics, iOS App, YOLO models, real-time object detection, Apple N # Ultralytics iOS App: Real-time [Object Detection](https://www.ultralytics.com/glossary/object-detection) with YOLO Models - + Ultralytics HUB preview image
@@ -22,7 +22,7 @@ keywords: Ultralytics, iOS App, YOLO models, real-time object detection, Apple N space Ultralytics BiliBili space - Ultralytics Discord + Ultralytics Discord

diff --git a/docs/en/hub/index.md b/docs/en/hub/index.md index 24dbdd3f5..c2ebbce55 100644 --- a/docs/en/hub/index.md +++ b/docs/en/hub/index.md @@ -7,7 +7,7 @@ keywords: Ultralytics HUB, YOLO models, train YOLO, YOLOv5, YOLOv8, object detec # Ultralytics HUB
- + 中文 | 한국어 | 日本語 | @@ -22,13 +22,13 @@ keywords: Ultralytics HUB, YOLO models, train YOLO, YOLOv5, YOLOv8, object detec

-CI CPU Open In Colab Discord Ultralytics Forums Ultralytics Reddit +CI CPU Open In Colab Discord Ultralytics Forums Ultralytics Reddit
👋 Hello from the [Ultralytics](https://www.ultralytics.com/) Team! We've been working hard these last few months to launch [Ultralytics HUB](https://www.ultralytics.com/hub), a new web tool for training and deploying all your YOLOv5 and YOLOv8 🚀 models from one spot! -We hope that the resources here will help you get the most out of HUB. Please browse the HUB Docs for details, raise an issue on GitHub for support, and join our Discord community for questions and discussions! +We hope that the resources here will help you get the most out of HUB. Please browse the HUB Docs for details, raise an issue on GitHub for support, and join our Discord community for questions and discussions!

@@ -44,7 +44,7 @@ We hope that the resources here will help you get the most out of HUB. Please br space Ultralytics BiliBili space - Ultralytics Discord + Ultralytics Discord
## Introduction @@ -61,7 +61,7 @@ We hope that the resources here will help you get the most out of HUB. Please br Watch: Train Your Custom YOLO Models In A Few Clicks with Ultralytics HUB

-We hope that the resources here will help you get the most out of HUB. Please browse the HUB Docs for details, raise an issue on GitHub for support, and join our Discord community for questions and discussions! +We hope that the resources here will help you get the most out of HUB. Please browse the HUB Docs for details, raise an issue on GitHub for support, and join our Discord community for questions and discussions! - [**Quickstart**](quickstart.md): Start training and deploying models in seconds. - [**Datasets**](datasets.md): Learn how to prepare and upload your datasets. diff --git a/docs/en/hub/quickstart.md b/docs/en/hub/quickstart.md index 3fbcf23af..ad10e26e9 100644 --- a/docs/en/hub/quickstart.md +++ b/docs/en/hub/quickstart.md @@ -98,4 +98,4 @@ You can report a bug, request a feature, or ask a question on Discord community for questions and discussions! + You can join our Discord community for questions and discussions! diff --git a/docs/en/index.md b/docs/en/index.md index 73ac1cd07..8217f972d 100644 --- a/docs/en/index.md +++ b/docs/en/index.md @@ -6,24 +6,24 @@ keywords: Ultralytics, YOLO, YOLO11, object detection, image segmentation, deep
Ultralytics YOLO banner -中文 | -한국어 | -日本語 | -Русский | -Deutsch | -Français | +中文 | +한국어 | +日本語 | +Русский | +Deutsch | +Français | Español | -Português | -Türkçe | -Tiếng Việt | -العربية +Português | +Türkçe | +Tiếng Việt | +العربية

Ultralytics CI YOLO Citation Docker Pulls -Discord -Ultralytics Forums +Discord +Ultralytics Forums Ultralytics Reddit
Run on Gradient @@ -49,7 +49,7 @@ Explore the Ultralytics Docs, a comprehensive resource designed to help you unde space Ultralytics BiliBili space - Ultralytics Discord + Ultralytics Discord
## Where to Start diff --git a/docs/en/models/yolo11.md b/docs/en/models/yolo11.md index 4460042b1..0c755147a 100644 --- a/docs/en/models/yolo11.md +++ b/docs/en/models/yolo11.md @@ -8,7 +8,7 @@ keywords: YOLO11, state-of-the-art object detection, YOLO series, Ultralytics, c ## Overview -YOLO11 is the latest iteration in the [Ultralytics](https://www.ultralytics.com) YOLO series of real-time object detectors, redefining what's possible with cutting-edge [accuracy](https://www.ultralytics.com/glossary/accuracy), speed, and efficiency. Building upon the impressive advancements of previous YOLO versions, YOLO11 introduces significant improvements in architecture and training methods, making it a versatile choice for a wide range of [computer vision](https://www.ultralytics.com/glossary/computer-vision-cv) tasks. +YOLO11 is the latest iteration in the [Ultralytics](https://www.ultralytics.com/) YOLO series of real-time object detectors, redefining what's possible with cutting-edge [accuracy](https://www.ultralytics.com/glossary/accuracy), speed, and efficiency. Building upon the impressive advancements of previous YOLO versions, YOLO11 introduces significant improvements in architecture and training methods, making it a versatile choice for a wide range of [computer vision](https://www.ultralytics.com/glossary/computer-vision-cv) tasks. ![Ultralytics YOLO11 Comparison Plots](https://github.com/user-attachments/assets/a311a4ed-bbf2-43b5-8012-5f183a28a845) diff --git a/docs/en/yolov5/index.md b/docs/en/yolov5/index.md index 360505846..17be5e24a 100644 --- a/docs/en/yolov5/index.md +++ b/docs/en/yolov5/index.md @@ -8,7 +8,7 @@ keywords: YOLOv5, Ultralytics, object detection, computer vision, deep learning,

- + Ultralytics YOLOv5 v7.0 banner

@@ -80,7 +80,7 @@ This badge indicates that all [YOLOv5 GitHub Actions](https://github.com/ultraly space Ultralytics BiliBili space - Ultralytics Discord + Ultralytics Discord
## Connect and Contribute diff --git a/docs/en/yolov5/tutorials/train_custom_data.md b/docs/en/yolov5/tutorials/train_custom_data.md index aa093e4b8..8b465c523 100644 --- a/docs/en/yolov5/tutorials/train_custom_data.md +++ b/docs/en/yolov5/tutorials/train_custom_data.md @@ -18,7 +18,7 @@ pip install -r requirements.txt # install ## Train On Custom Data - + Ultralytics active learning

diff --git a/ultralytics/engine/exporter.py b/ultralytics/engine/exporter.py index 73ee545f3..26ca541c1 100644 --- a/ultralytics/engine/exporter.py +++ b/ultralytics/engine/exporter.py @@ -183,11 +183,10 @@ class Exporter: # Get the closest match if format is invalid matches = difflib.get_close_matches(fmt, fmts, n=1, cutoff=0.6) # 60% similarity required to match - if matches: - LOGGER.warning(f"WARNING ⚠️ Invalid export format='{fmt}', updating to format='{matches[0]}'") - fmt = matches[0] - else: + if not matches: raise ValueError(f"Invalid export format='{fmt}'. Valid formats are {fmts}") + LOGGER.warning(f"WARNING ⚠️ Invalid export format='{fmt}', updating to format='{matches[0]}'") + fmt = matches[0] flags = [x == fmt for x in fmts] if sum(flags) != 1: raise ValueError(f"Invalid export format='{fmt}'. Valid formats are {fmts}") diff --git a/ultralytics/utils/__init__.py b/ultralytics/utils/__init__.py index 3edfac116..7605a01e4 100644 --- a/ultralytics/utils/__init__.py +++ b/ultralytics/utils/__init__.py @@ -989,55 +989,56 @@ def set_sentry(): Additionally, the function sets custom tags and user information for Sentry events. """ if ( - SETTINGS["sync"] - and RANK in {-1, 0} - and Path(ARGV[0]).name == "yolo" - and not TESTS_RUNNING - and ONLINE - and IS_PIP_PACKAGE - and not IS_GIT_DIR + not SETTINGS["sync"] + or RANK not in {-1, 0} + or Path(ARGV[0]).name != "yolo" + or TESTS_RUNNING + or not ONLINE + or not IS_PIP_PACKAGE + or IS_GIT_DIR ): - # If sentry_sdk package is not installed then return and do not use Sentry - try: - import sentry_sdk # noqa - except ImportError: - return - - def before_send(event, hint): - """ - Modify the event before sending it to Sentry based on specific exception types and messages. + return + # If sentry_sdk package is not installed then return and do not use Sentry + try: + import sentry_sdk # noqa + except ImportError: + return + + def before_send(event, hint): + """ + Modify the event before sending it to Sentry based on specific exception types and messages. - Args: - event (dict): The event dictionary containing information about the error. - hint (dict): A dictionary containing additional information about the error. + Args: + event (dict): The event dictionary containing information about the error. + hint (dict): A dictionary containing additional information about the error. - Returns: - dict: The modified event or None if the event should not be sent to Sentry. - """ - if "exc_info" in hint: - exc_type, exc_value, _ = hint["exc_info"] - if exc_type in {KeyboardInterrupt, FileNotFoundError} or "out of memory" in str(exc_value): - return None # do not send event - - event["tags"] = { - "sys_argv": ARGV[0], - "sys_argv_name": Path(ARGV[0]).name, - "install": "git" if IS_GIT_DIR else "pip" if IS_PIP_PACKAGE else "other", - "os": ENVIRONMENT, - } - return event - - sentry_sdk.init( - dsn="https://888e5a0778212e1d0314c37d4b9aae5d@o4504521589325824.ingest.us.sentry.io/4504521592406016", - debug=False, - auto_enabling_integrations=False, - traces_sample_rate=1.0, - release=__version__, - environment="production", # 'dev' or 'production' - before_send=before_send, - ignore_errors=[KeyboardInterrupt, FileNotFoundError], - ) - sentry_sdk.set_user({"id": SETTINGS["uuid"]}) # SHA-256 anonymized UUID hash + Returns: + dict: The modified event or None if the event should not be sent to Sentry. + """ + if "exc_info" in hint: + exc_type, exc_value, _ = hint["exc_info"] + if exc_type in {KeyboardInterrupt, FileNotFoundError} or "out of memory" in str(exc_value): + return None # do not send event + + event["tags"] = { + "sys_argv": ARGV[0], + "sys_argv_name": Path(ARGV[0]).name, + "install": "git" if IS_GIT_DIR else "pip" if IS_PIP_PACKAGE else "other", + "os": ENVIRONMENT, + } + return event + + sentry_sdk.init( + dsn="https://888e5a0778212e1d0314c37d4b9aae5d@o4504521589325824.ingest.us.sentry.io/4504521592406016", + debug=False, + auto_enabling_integrations=False, + traces_sample_rate=1.0, + release=__version__, + environment="production", # 'dev' or 'production' + before_send=before_send, + ignore_errors=[KeyboardInterrupt, FileNotFoundError], + ) + sentry_sdk.set_user({"id": SETTINGS["uuid"]}) # SHA-256 anonymized UUID hash class JSONDict(dict):