From 8ec320e08dab0d5053cdf9ed3eabc4e97f584dbf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 29 Nov 2025 09:00:19 +0000 Subject: [PATCH 1/2] Update numpy requirement from <2.0.0 to <3.0.0 Updates the requirements on [numpy](https://github.com/numpy/numpy) to permit the latest version. - [Release notes](https://github.com/numpy/numpy/releases) - [Changelog](https://github.com/numpy/numpy/blob/main/doc/RELEASE_WALKTHROUGH.rst) - [Commits](https://github.com/numpy/numpy/compare/v1.23.0...v2.0.2) --- updated-dependencies: - dependency-name: numpy dependency-version: 2.0.2 dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index eaf5956af..b5c6248d8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -88,7 +88,7 @@ dev = [ "minijinja>=2.0.0", # render docs macros without mkdocs-macros-plugin ] export = [ - "numpy<2.0.0", # TF 2.20 compatibility + "numpy<3.0.0", # TF 2.20 compatibility "onnx>=1.12.0; platform_system != 'Darwin'", # ONNX export "onnx>=1.12.0,<1.18.0; platform_system == 'Darwin'", # TF inference hanging on MacOS "coremltools>=8.0; platform_system != 'Windows' and python_version <= '3.13'", # CoreML supported on macOS and Linux From ba15cc95b2ac85fa3b92a7fb3c092d7ed6066a77 Mon Sep 17 00:00:00 2001 From: UltralyticsAssistant Date: Sat, 29 Nov 2025 09:11:52 +0000 Subject: [PATCH 2/2] Auto-format by https://ultralytics.com/actions --- predict.py | 2 +- train.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/predict.py b/predict.py index 3e7837c11..b6dadf0cd 100644 --- a/predict.py +++ b/predict.py @@ -14,4 +14,4 @@ probs = result.probs # 分类输出的Probs对象 obb = result.obb # OBB输出的Oriented boxes对象 result.show() # 显示到屏幕 - result.save(filename="result.jpg") # 保存到磁盘 \ No newline at end of file + result.save(filename="result.jpg") # 保存到磁盘 diff --git a/train.py b/train.py index b5e6c222f..6a8745d76 100644 --- a/train.py +++ b/train.py @@ -6,4 +6,4 @@ model = YOLO("yolo11n.yaml").load("yolo11n.pt") # 从YAML构建并转移权重 # 训练模型 -results = model.train(data="coco8.yaml", epochs=100, imgsz=640) \ No newline at end of file +results = model.train(data="coco8.yaml", epochs=100, imgsz=640)