mirror of
https://github.com/ultralytics/ultralytics
synced 2026-04-21 14:07:18 +00:00
Ultralytics Refactor https://ultralytics.com/actions (#21798)
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
edd95b1dee
commit
c7c7c139dc
14 changed files with 17 additions and 14 deletions
4
.github/workflows/docker.yml
vendored
4
.github/workflows/docker.yml
vendored
|
|
@ -230,7 +230,7 @@ jobs:
|
|||
run: |
|
||||
# Create array of all images to push (base + derivatives)
|
||||
images_to_push=("${{ matrix.tags }}")
|
||||
|
||||
|
||||
# Add derivative images to array
|
||||
derivatives='${{ matrix.derivatives }}'
|
||||
if [[ -n "$derivatives" ]]; then
|
||||
|
|
@ -240,7 +240,7 @@ jobs:
|
|||
images_to_push+=("$derivative_tag")
|
||||
done
|
||||
fi
|
||||
|
||||
|
||||
# Push all images (base + derivatives)
|
||||
for tag in "${images_to_push[@]}"; do
|
||||
docker push "ultralytics/ultralytics:$tag"
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ See below for quickstart installation and usage examples. For comprehensive guid
|
|||
|
||||
Install the `ultralytics` package, including all [requirements](https://github.com/ultralytics/ultralytics/blob/main/pyproject.toml), in a [**Python>=3.8**](https://www.python.org/) environment with [**PyTorch>=1.8**](https://pytorch.org/get-started/locally/).
|
||||
|
||||
[](https://pypi.org/project/ultralytics/) [](https://www.pepy.tech/projects/ultralytics) [](https://pypi.org/project/ultralytics/)
|
||||
[](https://pypi.org/project/ultralytics/) [](https://clickpy.clickhouse.com/dashboard/ultralytics) [](https://pypi.org/project/ultralytics/)
|
||||
|
||||
```bash
|
||||
pip install ultralytics
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@
|
|||
|
||||
在 [**Python>=3.8**](https://www.python.org/) 环境中安装 `ultralytics` 包,包括所有[依赖项](https://github.com/ultralytics/ultralytics/blob/main/pyproject.toml),并确保 [**PyTorch>=1.8**](https://pytorch.org/get-started/locally/)。
|
||||
|
||||
[](https://pypi.org/project/ultralytics/) [](https://www.pepy.tech/projects/ultralytics) [](https://pypi.org/project/ultralytics/)
|
||||
[](https://pypi.org/project/ultralytics/) [](https://clickpy.clickhouse.com/dashboard/ultralytics) [](https://pypi.org/project/ultralytics/)
|
||||
|
||||
```bash
|
||||
pip install ultralytics
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ Welcome to Ultralytics Docs, your comprehensive resource for understanding and u
|
|||
## 🛠️ Installation
|
||||
|
||||
[](https://pypi.org/project/ultralytics/)
|
||||
[](https://www.pepy.tech/projects/ultralytics)
|
||||
[](https://clickpy.clickhouse.com/dashboard/ultralytics)
|
||||
[](https://pypi.org/project/ultralytics/)
|
||||
|
||||
To install the `ultralytics` package in developer mode, which allows you to modify the source code directly, ensure you have [Git](https://git-scm.com/) and [Python](https://www.python.org/) 3.9 or later installed on your system. Then, follow these steps:
|
||||
|
|
|
|||
|
|
@ -243,7 +243,7 @@ Using YOLO, it is possible to extract and combine information from both RGB and
|
|||
|
||||
!!! warning "RGB-D Cameras"
|
||||
|
||||
When working with depth images, it is essential to ensure that the RGB and depth images are correctly aligned. RGB-D cameras, such as the [Intel RealSense](https://www.intelrealsense.com/) series, provide synchronized RGB and depth images, making it easier to combine information from both sources. If using separate RGB and depth cameras, it is crucial to calibrate them to ensure accurate alignment.
|
||||
When working with depth images, it is essential to ensure that the RGB and depth images are correctly aligned. RGB-D cameras, such as the [Intel RealSense](https://realsenseai.com/) series, provide synchronized RGB and depth images, making it easier to combine information from both sources. If using separate RGB and depth cameras, it is crucial to calibrate them to ensure accurate alignment.
|
||||
|
||||
#### Depth Step-by-Step Usage
|
||||
|
||||
|
|
|
|||
|
|
@ -322,7 +322,7 @@ YOLOv8n, YOLO11n, YOLOv8n-pose and YOLO11n-pose benchmarks below were run by the
|
|||
|
||||
### Sony Model Compression Toolkit (MCT)
|
||||
|
||||
[Sony's Model Compression Toolkit (MCT)](https://github.com/sony/model_optimization) is a powerful tool for optimizing deep learning models through quantization and pruning. It supports various quantization methods and provides advanced algorithms to reduce model size and computational complexity without significantly sacrificing accuracy. MCT is particularly useful for deploying models on resource-constrained devices, ensuring efficient inference and reduced latency.
|
||||
[Sony's Model Compression Toolkit (MCT)](https://github.com/SonySemiconductorSolutions/mct-model-optimization) is a powerful tool for optimizing deep learning models through quantization and pruning. It supports various quantization methods and provides advanced algorithms to reduce model size and computational complexity without significantly sacrificing accuracy. MCT is particularly useful for deploying models on resource-constrained devices, ensuring efficient inference and reduced latency.
|
||||
|
||||
### Supported Features of MCT
|
||||
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ Ultralytics offers a variety of installation methods, including pip, conda, and
|
|||
Install or update the `ultralytics` package using pip by running `pip install -U ultralytics`. For more details on the `ultralytics` package, visit the [Python Package Index (PyPI)](https://pypi.org/project/ultralytics/).
|
||||
|
||||
[](https://pypi.org/project/ultralytics/)
|
||||
[](https://www.pepy.tech/projects/ultralytics)
|
||||
[](https://clickpy.clickhouse.com/dashboard/ultralytics)
|
||||
|
||||
```bash
|
||||
# Install the ultralytics package from PyPI
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ Train YOLO11n-cls on the MNIST160 dataset for 100 [epochs](https://www.ultralyti
|
|||
|
||||
!!! tip
|
||||
|
||||
Ultralytics YOLO classification uses [`torchvision.transforms.RandomResizedCrop`](https://pytorch.org/vision/stable/generated/torchvision.transforms.RandomResizedCrop.html) for training and [`torchvision.transforms.CenterCrop`](https://pytorch.org/vision/stable/generated/torchvision.transforms.CenterCrop.html) for validation and inference.
|
||||
Ultralytics YOLO classification uses [`torchvision.transforms.RandomResizedCrop`](https://docs.pytorch.org/vision/stable/generated/torchvision.transforms.RandomResizedCrop.html) for training and [`torchvision.transforms.CenterCrop`](https://docs.pytorch.org/vision/stable/generated/torchvision.transforms.CenterCrop.html) for validation and inference.
|
||||
These cropping-based transforms assume square inputs and may inadvertently crop out important regions from images with extreme aspect ratios, potentially causing loss of critical visual information during training.
|
||||
To preserve the full image while maintaining its proportions, consider using [`torchvision.transforms.Resize`](https://docs.pytorch.org/vision/stable/generated/torchvision.transforms.Resize.html) instead of cropping transforms.
|
||||
|
||||
|
|
|
|||
|
|
@ -199,6 +199,9 @@ not.committed.yet:
|
|||
olivier@mg-crea.com:
|
||||
avatar: https://avatars.githubusercontent.com/u/108273?v=4
|
||||
username: mgcrea
|
||||
onuralp@ultralytics.com:
|
||||
avatar: null
|
||||
username: null
|
||||
plashchynski@gmail.com:
|
||||
avatar: https://avatars.githubusercontent.com/u/30833?v=4
|
||||
username: plashchynski
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
"\n",
|
||||
"pip install `ultralytics` and [dependencies](https://github.com/ultralytics/ultralytics/blob/main/pyproject.toml) and check software and hardware.\n",
|
||||
"\n",
|
||||
"[](https://pypi.org/project/ultralytics/) [](https://www.pepy.tech/projects/ultralytics) [](https://pypi.org/project/ultralytics/)"
|
||||
"[](https://pypi.org/project/ultralytics/) [](https://clickpy.clickhouse.com/dashboard/ultralytics) [](https://pypi.org/project/ultralytics/)"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
"\n",
|
||||
"pip install `ultralytics` and [dependencies](https://github.com/ultralytics/ultralytics/blob/main/pyproject.toml) and check software and hardware.\n",
|
||||
"\n",
|
||||
"[](https://pypi.org/project/ultralytics/) [](https://www.pepy.tech/projects/ultralytics) [](https://pypi.org/project/ultralytics/)"
|
||||
"[](https://pypi.org/project/ultralytics/) [](https://clickpy.clickhouse.com/dashboard/ultralytics) [](https://pypi.org/project/ultralytics/)"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
"\n",
|
||||
"pip install `ultralytics` and [dependencies](https://github.com/ultralytics/ultralytics/blob/main/pyproject.toml) and check software and hardware.\n",
|
||||
"\n",
|
||||
"[](https://pypi.org/project/ultralytics/) [](https://www.pepy.tech/projects/ultralytics) [](https://pypi.org/project/ultralytics/)"
|
||||
"[](https://pypi.org/project/ultralytics/) [](https://clickpy.clickhouse.com/dashboard/ultralytics) [](https://pypi.org/project/ultralytics/)"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
"\n",
|
||||
"pip install `ultralytics` and [dependencies](https://github.com/ultralytics/ultralytics/blob/main/pyproject.toml) and check software and hardware.\n",
|
||||
"\n",
|
||||
"[](https://pypi.org/project/ultralytics/) [](https://www.pepy.tech/projects/ultralytics) [](https://pypi.org/project/ultralytics/)"
|
||||
"[](https://pypi.org/project/ultralytics/) [](https://clickpy.clickhouse.com/dashboard/ultralytics) [](https://pypi.org/project/ultralytics/)"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@
|
|||
"\n",
|
||||
"pip install `ultralytics` and [dependencies](https://github.com/ultralytics/ultralytics/blob/main/pyproject.toml) and check software and hardware.\n",
|
||||
"\n",
|
||||
"[](https://pypi.org/project/ultralytics/) [](https://www.pepy.tech/projects/ultralytics) [](https://pypi.org/project/ultralytics/)"
|
||||
"[](https://pypi.org/project/ultralytics/) [](https://clickpy.clickhouse.com/dashboard/ultralytics) [](https://pypi.org/project/ultralytics/)"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue