From 6218b820723b9e8647c582589c536c63c1f473f3 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Mon, 1 Jan 2024 15:40:27 +0100 Subject: [PATCH] `ultralytics 8.0.232` OpenCV 4.9.0 readonly np.array fix (#7256) --- pyproject.toml | 6 ++++-- ultralytics/__init__.py | 2 +- ultralytics/utils/plotting.py | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 941ee450599..7d6ae94e58b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -163,7 +163,9 @@ split_before_first_argument = false wrap-summaries = 120 wrap-descriptions = 120 in-place = true -make-summary-multi-line = false pre-summary-newline = true -force-wrap = false close-quotes-on-newline = true + +[tool.codespell] +ignore-words-list = "crate,nd,strack,dota,ane,segway,fo,gool,winn" +skip = '*.csv,*venv*,docs/de,docs/fr,docs/pt,docs/es,docs/mkdocs_de.yml' diff --git a/ultralytics/__init__.py b/ultralytics/__init__.py index 4ddb38b4a04..7ad3a039e0c 100644 --- a/ultralytics/__init__.py +++ b/ultralytics/__init__.py @@ -1,6 +1,6 @@ # Ultralytics YOLO 🚀, AGPL-3.0 license -__version__ = '8.0.231' +__version__ = '8.0.232' from ultralytics.models import RTDETR, SAM, YOLO from ultralytics.models.fastsam import FastSAM diff --git a/ultralytics/utils/plotting.py b/ultralytics/utils/plotting.py index 08d48cb7fb4..0929c7bf155 100644 --- a/ultralytics/utils/plotting.py +++ b/ultralytics/utils/plotting.py @@ -90,7 +90,7 @@ def __init__(self, im, line_width=None, font_size=None, font='Arial.ttf', pil=Fa if check_version(pil_version, '9.2.0'): self.font.getsize = lambda x: self.font.getbbox(x)[2:4] # text width, height else: # use cv2 - self.im = im + self.im = im if im.flags.writeable else im.copy() self.tf = max(self.lw - 1, 1) # font thickness self.sf = self.lw / 3 # font scale # Pose