mirror of
https://github.com/THU-MIG/yolov10.git
synced 2025-05-23 05:24:22 +08:00
ultralytics 8.0.232
OpenCV 4.9.0 readonly np.array fix (#7256)
This commit is contained in:
parent
4d9e613833
commit
6218b82072
@ -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'
|
||||
|
@ -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
|
||||
|
@ -90,7 +90,7 @@ class Annotator:
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user