Commit Graph
1129 Commits
Author SHA1 Message Date
Glenn JocherandUltralyticsAssistant 22e9afef74 Python refactor and simplification (#12624)
* Python code cleanup

* Auto-format by Ultralytics actions

---------

Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
2024-01-13 22:34:05 +01:00
9abbef522f Update banners for YOLOv8 release v8.1.0 (#12605)
* Auto-format by Ultralytics actions

* updated git banner

* Update README.md

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

* Update README.zh-CN.md

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

---------

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2024-01-10 16:16:40 +01:00
ad97dc6a6d Update Actions with Lychee and GitHub Token (#12592)
* Add Ultralytics Actions

* Auto-format by Ultralytics actions

* Update format.yml

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

---------

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2024-01-08 01:29:14 +01:00
46ae996cb1 Bugfix: update dataloaders.py to fix Multi-GPU DDP RAM multiple-cache issue (#10383)
* Update dataloaders.py

This is to address (and hopefully fix) this issue: Multi-GPU DDP RAM multiple-cache bug #3818 (https://github.com/ultralytics/yolov5/issues/3818).  This was a very serious and "blocking" issue until I could figure out what was going on.  The problem was especially bad when running Multi-GPU jobs with 8 GPUs, RAM usage was 8x higher than expected (!), causing repeated OOM failures.  Hopefully this fix will help others.
DDP causes each RANK to launch it's own process (one for each GPU) with it's own trainloader, and its own RAM image cache.  The DistributedSampler used by DDP (https://github.com/pytorch/pytorch/blob/master/torch/utils/data/distributed.py) will feed only a subset of images (1/WORLD_SIZE) to each available GPU on each epoch, but since the images are shuffled between epochs, each GPU process must still cache all images.  So I created a subclass of DistributedSampler called SmartDistributedSampler that forces each GPU process to always sample the same subset (using modulo arithmetic with RANK and WORLD_SIZE) while still allowing random shuffling between epochs.  I don't believe this disrupts the overall "randomness" of the sampling, and I haven't noticed any performance degradation.  

Signed-off-by: davidsvaughn <davidsvaughn@gmail.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update dataloaders.py

move extra parameter (rank) to end so won't mess up pre-existing positional args

* Update dataloaders.py

removing extra '#'

* Update dataloaders.py

sample from DDP index array (self.idx) in mixup mosaic

* Merging self.indices and self.idx (DDP indices) into single attribute (self.indices).
Also adding SmartDistributedSampler to segmentation dataloader

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Multiply GB displayed by WORLD_SIZE

---------

Signed-off-by: davidsvaughn <davidsvaughn@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2024-01-03 08:15:07 +01:00
151c953d5e Add segmentation and classification support for ClearML (#10752)
* Added ClearML instance segmentation and classification support

* Cleaned up ClearML plot output

* typos

* Log results as plots instead of debug samples

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2024-01-03 08:14:39 +01:00
Yakuhoandpre-commit-ci[bot] 69b0faf2f7 Update selectable device Profile (#12353)
* Update selectable device Profile

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-01-03 08:09:23 +01:00
bd1a8295fb Fix bug in issue #12457. (#12459)
* Fix bug in #12457.
When run 'python.exe segment/predict.py --visualize' will throw AttributeError: 'tuple' object has no attribute 'shape'

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2024-01-03 08:07:19 +01:00
Aarni Koskelaandpre-commit-ci[bot] 52db52b927 Add ndjson logging for training (#10970)
* Add ndjson logging for training

This adds support for NDJSON (newline-delimited JSON) metrics logging,
for both console (stdout) output and a file (like the current CSV file).

NDJSON can be easily grepped from the output and/or parsed with e.g. `jq`.

The feature is enabled with the `--ndjson-console` and `--ndjson-file`
switches to `train.py`.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-01-03 08:06:26 +01:00
Glenn Jocherandsnyk-bot 0873e5fa33 [Snyk] Security upgrade ubuntu from mantic-20231011 to 23.10 (#12460)
fix: utils/docker/Dockerfile-cpu to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-UBUNTU2310-GNUTLS28-6069047
- https://snyk.io/vuln/SNYK-UBUNTU2310-PERL-6085371
- https://snyk.io/vuln/SNYK-UBUNTU2310-PROCPS-5972730
- https://snyk.io/vuln/SNYK-UBUNTU2310-PROCPS-5972730
- https://snyk.io/vuln/SNYK-UBUNTU2310-TAR-6096092

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2023-12-11 13:45:00 +01:00
Glenn Jocherandsnyk-bot 6ca8f33796 [Snyk] Security upgrade ubuntu from 23.04 to mantic-20231011 (#12308)
* fix: utils/docker/Dockerfile-cpu to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-UBUNTU2304-COREUTILS-5484945
- https://snyk.io/vuln/SNYK-UBUNTU2304-GLIBC-5919743
- https://snyk.io/vuln/SNYK-UBUNTU2304-GLIBC-5919743
- https://snyk.io/vuln/SNYK-UBUNTU2304-PROCPS-5816666
- https://snyk.io/vuln/SNYK-UBUNTU2304-XZUTILS-5854648

* Update apt install libgl1-mesa-glx to libgl1

---------

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2023-11-03 18:59:36 +01:00
dependabot[bot] fd39c2b1d8 Bump pip from 21.1 to 23.3 in /utils/google_app_engine (#12316)
Bumps [pip](https://github.com/pypa/pip) from 21.1 to 23.3.
- [Changelog](https://github.com/pypa/pip/blob/main/NEWS.rst)
- [Commits](https://github.com/pypa/pip/compare/21.1...23.3)

---
updated-dependencies:
- dependency-name: pip
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-03 16:03:52 +01:00
Glenn Jocherandsnyk-bot c2f131abbe [Snyk] Security upgrade werkzeug from 2.2.3 to 3.0.1 (#12288)
fix: utils/google_app_engine/additional_requirements.txt to reduce vulnerabilities


The following vulnerabilities are fixed by pinning transitive dependencies:
- https://snyk.io/vuln/SNYK-PYTHON-WERKZEUG-6035177

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2023-10-29 20:08:19 +01:00
Glenn Jocherandsnyk-bot e4df1ec5ba [Snyk] Security upgrade ubuntu from lunar-20230615 to 23.04 (#12232)
* fix: utils/docker/Dockerfile-cpu to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-UBUNTU2304-GLIBC-5901400
- https://snyk.io/vuln/SNYK-UBUNTU2304-GLIBC-5901400
- https://snyk.io/vuln/SNYK-UBUNTU2304-GLIBC-5927364
- https://snyk.io/vuln/SNYK-UBUNTU2304-GLIBC-5927364
- https://snyk.io/vuln/SNYK-UBUNTU2304-XZUTILS-5854648

* Update Dockerfile-cpu

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

---------

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2023-10-14 19:13:57 +02:00
Glenn Jocher ec690e42af Update YouTube URL https://youtu.be/LNwODJXcvt4 (#12106)
Update example YouTube URL
2023-09-10 04:59:27 +02:00
Glenn Jocher 378ed74967 Docker COPY with checkout fetch-depth: 0 (#12066)
Docker COPY with checkout fetch-depth: 0
2023-08-31 15:45:22 +02:00
Glenn Jocher 493981cd3b Bump Python>=3.8.0 (#11971) 2023-08-11 00:53:13 +02:00
Glenn Jocherandpre-commit-ci[bot] 38737bdafa Fix missing ultralytics package on torch.hub.load() (#11950)
* Fix missing `ultralytics` package on `torch.hub.load()`

https://github.com/ultralytics/yolov5/issues/11945

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update common.py

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

* Update common.py

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

* Update general.py

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

---------

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-08-08 01:56:02 +02:00
pre-commit-ci[bot]andGlenn Jocher cffd24843c Replace type(1) == int with isinstance(1, int) (#11951)
* [pre-commit.ci] pre-commit suggestions

updates:
- [github.com/asottile/pyupgrade: v3.8.0 → v3.10.1](https://github.com/asottile/pyupgrade/compare/v3.8.0...v3.10.1)
- [github.com/PyCQA/flake8: 6.0.0 → 6.1.0](https://github.com/PyCQA/flake8/compare/6.0.0...6.1.0)

* Update __init__.py

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

* Update __init__.py

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

---------

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2023-08-08 01:52:45 +02:00
Glenn Jocherandpre-commit-ci[bot] 2270f0d1e7 Import Annotator class from ultralytics package (#11930)
* Import Annotator class from `ultralytics` package

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Import Annotator class from `ultralytics` package

* Update requirements.txt

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

---------

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-08-01 20:56:35 +02:00
Glenn Jocherandsnyk-bot 05e4c0543b [Snyk] Security upgrade ubuntu from 22.10 to lunar-20230615 (#11927)
* fix: utils/docker/Dockerfile-cpu to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-UBUNTU2210-SYSTEMD-5721329
- https://snyk.io/vuln/SNYK-UBUNTU2210-SYSTEMD-5721343
- https://snyk.io/vuln/SNYK-UBUNTU2210-SYSTEMD-5721343
- https://snyk.io/vuln/SNYK-UBUNTU2210-SYSTEMD-5721350
- https://snyk.io/vuln/SNYK-UBUNTU2210-SYSTEMD-5721350

* Update Dockerfile-cpu

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

---------

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2023-08-01 14:42:08 +02:00
Adrian BoguszewskiandGlenn Jocher 34c21874f8 Bringing OpenVINO updates from YOLOv8 to YOLOv5 (#11912)
Bringing OpenVINO updates from yolov8 to volov5

Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2023-07-30 14:21:04 +02:00
Glenn Jocher d43d87666c Update requirements.txt to ultralytics 8.0.145 (#11920) 2023-07-30 13:38:55 +02:00
Dhruv Nairandpre-commit-ci[bot] 485da42273 Comet updates (#11818)
* update colab link

* fix path check for datasets

* apply yapf

* run precommit hooks

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-07-06 18:06:28 +02:00
Glenn Jocherandpre-commit-ci[bot] 459dd49c02 Update setup.cfg (#11814)
* Update setup.cfg

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update .pre-commit-config.yaml

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

* Update export.py

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

* Update downloads.py

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

* Update yolo.py

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

---------

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-07-05 00:42:57 +02:00
Glenn Jocherandpre-commit-ci[bot] 2334aa7338 Uninstall wandb from notebook environments (#11730)
* Uninstall `wandb` from notebook environments

Due to undesired behavior in https://www.kaggle.com/code/ultralytics/yolov8/comments#2306977

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

* fix import

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-06-18 16:09:41 +02:00
Glenn Jocher f616dc5af2 Uninstall wandb from notebook environments (#11729)
Uninstall W&B that are present in notebooks

Resolves unwanted W&B install issues in https://www.kaggle.com/code/ultralytics/yolov8/comments#2306977

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2023-06-18 15:44:56 +02:00
Glenn Jocherandpre-commit-ci[bot] 98acd111b1 Update Comet integration (#11648)
* Update Comet

* Update Comet

* Update Comet

* Add default Experiment Name

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update tutorial.ipynb

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

* Update tutorial.ipynb

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

* Update tutorial.ipynb

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

* Update tutorial.ipynb

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

---------

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-06-15 13:49:19 +02:00
Peter van LunterenandGlenn Jocher 6e04b94fa9 add smoothing line to results.png to improve readability (#11536)
Signed-off-by: Peter van Lunteren <contact@pvanlunteren.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2023-05-22 14:12:10 +02:00
Glenn Jocherandpre-commit-ci[bot] 5deff1471d Add ultralytics pip package (#11529)
* Add ultralytics pip package

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Add requirements.txt locations

* Update requirements.txt

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

---------

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-05-14 21:44:53 +02:00
Glenn Jocher b72efd2306 Fix check_requirements() txt not found bug (#11518)
Fix check_requirements() txt not found bug

@AyushExel @kalenmike fixes "requirements.txt" not found warning.

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2023-05-11 18:50:06 +02:00
dependabot[bot] c3e4e94e94 Bump flask from 1.0.2 to 2.3.2 in /utils/google_app_engine (#11465)
Bumps [flask](https://github.com/pallets/flask) from 1.0.2 to 2.3.2.
- [Release notes](https://github.com/pallets/flask/releases)
- [Changelog](https://github.com/pallets/flask/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/flask/compare/1.0.2...2.3.2)

---
updated-dependencies:
- dependency-name: flask
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-02 22:14:24 +02:00
Glenn Jocherandsnyk-bot 3e14883825 [Snyk] Security upgrade ubuntu from rolling to 22.10 (#11389)
* fix: utils/docker/Dockerfile-cpu to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-UBUNTU2210-GNUTLS28-3319585
- https://snyk.io/vuln/SNYK-UBUNTU2210-SYSTEMD-3148007
- https://snyk.io/vuln/SNYK-UBUNTU2210-SYSTEMD-3148007
- https://snyk.io/vuln/SNYK-UBUNTU2210-SYSTEMD-3180315
- https://snyk.io/vuln/SNYK-UBUNTU2210-TAR-3261142

* Update Dockerfile-arm64

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

---------

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: snyk-bot <snyk-bot@snyk.io>
2023-04-23 01:49:44 +02:00
Glenn Jocherandpre-commit-ci[bot] be61a64c47 Update links to https://docs.ultralytics.com (#11412)
* Update links

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-04-21 23:47:29 +02:00
Glenn Jocherandpre-commit-ci[bot] fb1e746b8a Docs update for new YOLOv5 URLs (#11409)
* Update YOLOv5 Docs Tutorials

* Update YOLOv5 Docs Tutorials

* Update actions

* Update actions

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update actions

* Update actions

* Update actions

* Update actions

* Update actions

* Update actions

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-04-21 13:50:28 +02:00
Glenn Jocher 94714fe6ad Update requirements.txt to comment tensorboard (#11362)
* Update requirements.txt comment tensorboard

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

* Make tensorboard optional

* Update __init__.py

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

---------

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2023-04-15 00:51:17 +02:00
Glenn Jocher 60e29e2d86 Update check_requirements() (#11360)
Update general.py

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2023-04-14 14:47:07 +02:00
Glenn Jocher 2118e3b88e Update check_requirements.py (#11358)
Update general.py

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2023-04-14 14:37:02 +02:00
Glenn Jocher 34cf749958 Update LICENSE to AGPL-3.0 (#11359)
* Update LICENSE to AGPL-3.0

This pull request updates the license of the YOLOv5 project from GNU General Public License v3.0 (GPL-3.0) to GNU Affero General Public License v3.0 (AGPL-3.0).

We at Ultralytics have decided to make this change in order to better protect our intellectual property and ensure that any modifications made to the YOLOv5 source code will be shared back with the community when used over a network.

AGPL-3.0 is very similar to GPL-3.0, but with an additional clause to address the use of software over a network. This change ensures that if someone modifies YOLOv5 and provides it as a service over a network (e.g., through a web application or API), they must also make the source code of their modified version available to users of the service.

This update includes the following changes:
- Replace the `LICENSE` file with the AGPL-3.0 license text
- Update the license reference in the `README.md` file
- Update the license headers in source code files

We believe that this change will promote a more collaborative environment and help drive further innovation within the YOLOv5 community.

Please review the changes and let us know if you have any questions or concerns.


Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

* Update headers to AGPL-3.0

---------

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2023-04-14 14:36:16 +02:00
Glenn Jocherandpre-commit-ci[bot] f7c656278c Update general.py (#11322)
* Update general.py

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-04-09 17:51:25 +02:00
Grzegorz K a82132c10b Do not monkey-patch cv2 methods for unaware caller (#11210) 2023-03-30 11:39:11 +02:00
Glenn Jocher b54fd0ac28 FROM pytorch/pytorch:2.0.0-cuda11.7-cudnn8-runtime (#11246)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2023-03-26 20:27:43 +02:00
Grzegorz KandGlenn Jocher f095258e0c Sync signature of cv2.imread and cv2.imwrite (#11209)
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2023-03-23 20:34:03 +01:00
6dd17516c8 dataloaders: fix class filtering for segmentation (#11171)
* dataloaders: fix class filtering for segmentation

self.segments[i] and segment[j] are lists so they cannot be indexed with booleans
self.segments is a tuple so it has to be converted into a list first

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2023-03-23 20:29:11 +01:00
imyhxyandGlenn Jocher d223460f3a Fixed creation of empty directories in path was entered mistaken (#11174)
FFixed creation of empty directories in path was entered mistaken

Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2023-03-23 20:27:46 +01:00
Sheng Hu 78a90c9661 Remove duplicate assignment code (#11178)
Signed-off-by: Sheng Hu <husheng_7@163.com>
2023-03-23 11:29:44 +01:00
Jonas Heinle ef7039ea18 Error in tensor shape of docstring (#11206)
Corrected the tensor shape in the doc string.
The incoming masks are stacked in dim=0 therefore the doc is wrong

Signed-off-by: Jonas Heinle <jonasheinle@googlemail.com>
2023-03-23 11:28:31 +01:00
Sheng HuandGlenn Jocher 5543b89466 Fix a visualization bug (#11134)
Fix a visualization bug reported here: https://github.com/ultralytics/yolov5/issues/11133

Signed-off-by: Sheng Hu <husheng_7@163.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2023-03-09 23:55:02 +01:00
Glenn Jocher 3c0a6e664b Security fixes for IPython (#11069)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
2023-02-25 16:15:07 -08:00
Glenn Jocher feca55719b Update "YOLOv5 is out of date" msg (#11061) 2023-02-24 20:09:02 -08:00
Glenn Jocherandpre-commit-ci[bot] 7a972e86c4 Update .pre-commit-config.yaml (#11009)
* Update .pre-commit-config.yaml

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update __init__.py

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

* Update .pre-commit-config.yaml

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>

* Pre-commit updates

* Pre-commit updates

---------

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-02-18 01:06:24 +01:00