ultralytics 8.2.45__py3-none-any.whl → 8.2.46__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of ultralytics might be problematic. Click here for more details.

tests/test_python.py CHANGED
@@ -236,13 +236,14 @@ def test_results(model):
236
236
  results = YOLO(WEIGHTS_DIR / model)([SOURCE, SOURCE], imgsz=160)
237
237
  for r in results:
238
238
  r = r.cpu().numpy()
239
+ print(r, len(r), r.path) # print numpy attributes
239
240
  r = r.to(device="cpu", dtype=torch.float32)
240
241
  r.save_txt(txt_file=TMP / "runs/tests/label.txt", save_conf=True)
241
242
  r.save_crop(save_dir=TMP / "runs/tests/crops/")
242
243
  r.tojson(normalize=True)
243
244
  r.plot(pil=True)
244
245
  r.plot(conf=True, boxes=True)
245
- print(r, len(r), r.path)
246
+ print(r, len(r), r.path) # print after methods
246
247
 
247
248
 
248
249
  def test_labels_and_crops():
ultralytics/__init__.py CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ultralytics YOLO 🚀, AGPL-3.0 license
2
2
 
3
- __version__ = "8.2.45"
3
+ __version__ = "8.2.46"
4
4
 
5
5
  import os
6
6
 
@@ -743,9 +743,10 @@ class OBB(BaseTensor):
743
743
 
744
744
  Accepts both torch and numpy boxes.
745
745
  """
746
- x1 = self.xyxyxyxy[..., 0].min(1).values
747
- x2 = self.xyxyxyxy[..., 0].max(1).values
748
- y1 = self.xyxyxyxy[..., 1].min(1).values
749
- y2 = self.xyxyxyxy[..., 1].max(1).values
750
- xyxy = [x1, y1, x2, y2]
751
- return np.stack(xyxy, axis=-1) if isinstance(self.data, np.ndarray) else torch.stack(xyxy, dim=-1)
746
+ x = self.xyxyxyxy[..., 0]
747
+ y = self.xyxyxyxy[..., 1]
748
+ return (
749
+ torch.stack([x.amin(1), y.amin(1), x.amax(1), y.amax(1)], -1)
750
+ if isinstance(x, torch.Tensor)
751
+ else np.stack([x.min(1), y.min(1), x.max(1), y.max(1)], -1)
752
+ )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ultralytics
3
- Version: 8.2.45
3
+ Version: 8.2.46
4
4
  Summary: Ultralytics YOLOv8 for SOTA object detection, multi-object tracking, instance segmentation, pose estimation and image classification.
5
5
  Author: Glenn Jocher, Ayush Chaurasia, Jing Qiu
6
6
  Maintainer: Glenn Jocher, Ayush Chaurasia, Jing Qiu
@@ -30,7 +30,7 @@ Classifier: Operating System :: Microsoft :: Windows
30
30
  Requires-Python: >=3.8
31
31
  Description-Content-Type: text/markdown
32
32
  License-File: LICENSE
33
- Requires-Dist: numpy <2.0.0,>=1.23.5
33
+ Requires-Dist: numpy <2.0.0,>=1.23.0
34
34
  Requires-Dist: matplotlib >=3.3.0
35
35
  Requires-Dist: opencv-python >=4.6.0
36
36
  Requires-Dist: pillow >=7.1.2
@@ -6,8 +6,8 @@ tests/test_engine.py,sha256=fFzcbqZuMkzZHjA5FMddWcqVE703iq8HB_a0Q2lcBKM,4705
6
6
  tests/test_explorer.py,sha256=r1pWer2y290Y0DqsM-La7egfEY0497YCdC4rwq3URV4,2178
7
7
  tests/test_exports.py,sha256=qc4YOgsGixqYLO6IRNY16-v6z14R0dp5fdni1v222xw,8034
8
8
  tests/test_integrations.py,sha256=8Ru7GyKV8j44EEc8X9_E7q7aR4CTOIMPuSagXjSGUxw,5847
9
- tests/test_python.py,sha256=zeF4Z4jn9j9ouCz3kNjLgHtqXlgynEpwbOxm1kDovnc,20623
10
- ultralytics/__init__.py,sha256=g00_5KQ1-Ej72lN1CLYs9UIFh6Fd1Vn3S0rwMT_6i5I,694
9
+ tests/test_python.py,sha256=kic6XuQrxKUt7IlIDNoGQRs7-Gs_pis7v5JlzlZcIqQ,20705
10
+ ultralytics/__init__.py,sha256=d4fh73dIY5sU0rsiLKKk13IEegqozt_4PLDfGCzUmr4,694
11
11
  ultralytics/assets/bus.jpg,sha256=wCAZxJecGR63Od3ZRERe9Aja1Weayrb9Ug751DS_vGM,137419
12
12
  ultralytics/assets/zidane.jpg,sha256=Ftc4aeMmen1O0A3o6GCDO9FlfBslLpTAw0gnetx7bts,50427
13
13
  ultralytics/cfg/__init__.py,sha256=JblkT6Ze9MZ8hSs8gkV8JPcEKNMm-YqRqM4x501Dn9g,21507
@@ -100,7 +100,7 @@ ultralytics/engine/__init__.py,sha256=mHtJuK4hwF8cuV-VHDc7tp6u6D1gHz2Z7JI8grmQDT
100
100
  ultralytics/engine/exporter.py,sha256=csuukmfnqkrcJQx9Z008LrobxhIOYubSj9jkCUHN2do,58557
101
101
  ultralytics/engine/model.py,sha256=XxV97SX-TWLU3FYY_FImupUJo75NQm7mTw7m5FIYDYM,39046
102
102
  ultralytics/engine/predictor.py,sha256=W58kDCFH2AfoFzpGbos3k8zUEVsLunBuM8sc2B64rPY,17449
103
- ultralytics/engine/results.py,sha256=zRuEIrBtpoCQ3M6a_YscnyXrWSP-zpL3ACv0gTdrDaw,30987
103
+ ultralytics/engine/results.py,sha256=b9G9Cbf5DESuM8cyXNhKi9zeF--3rgmaq2mB8CVtS3s,30936
104
104
  ultralytics/engine/trainer.py,sha256=K3I7HWtgt72FH91Wl8La8Wl9zgg4TN-AiYIGGWjKGKw,35447
105
105
  ultralytics/engine/tuner.py,sha256=iZrgMmXSDpfuDu4bdFRflmAsscys2-8W8qAGxSyOVJE,11844
106
106
  ultralytics/engine/validator.py,sha256=Y21Uo8_Zto4qjk_YqQk6k7tyfpq_Qk9cfjeXeyDRxs8,14643
@@ -219,9 +219,9 @@ ultralytics/utils/callbacks/neptune.py,sha256=5Z3ua5YBTUS56FH8VQKQG1aaIo9fH8GEyz
219
219
  ultralytics/utils/callbacks/raytune.py,sha256=ODVYzy-CoM4Uge0zjkh3Hnh9nF2M0vhDrSenXnvcizw,705
220
220
  ultralytics/utils/callbacks/tensorboard.py,sha256=QEgOVhUqY9akOs5TJIwz1Rvn6l32xWLpOxlwEyWF0B8,4136
221
221
  ultralytics/utils/callbacks/wb.py,sha256=9-fjQIdLjr3b73DTE3rHO171KvbH1VweJ-bmbv-rqTw,6747
222
- ultralytics-8.2.45.dist-info/LICENSE,sha256=DZak_2itbUtvHzD3E7GNUYSRK6jdOJ-GqncQ2weavLA,34523
223
- ultralytics-8.2.45.dist-info/METADATA,sha256=RRqqDjjKd_zxhIIDAkS20ar9R03MnPfyyZ8MrGkXMYU,41210
224
- ultralytics-8.2.45.dist-info/WHEEL,sha256=mguMlWGMX-VHnMpKOjjQidIo1ssRlCFu4a4mBpz1s2M,91
225
- ultralytics-8.2.45.dist-info/entry_points.txt,sha256=YM_wiKyTe9yRrsEfqvYolNO5ngwfoL4-NwgKzc8_7sI,93
226
- ultralytics-8.2.45.dist-info/top_level.txt,sha256=XP49TwiMw4QGsvTLSYiJhz1xF_k7ev5mQ8jJXaXi45Q,12
227
- ultralytics-8.2.45.dist-info/RECORD,,
222
+ ultralytics-8.2.46.dist-info/LICENSE,sha256=DZak_2itbUtvHzD3E7GNUYSRK6jdOJ-GqncQ2weavLA,34523
223
+ ultralytics-8.2.46.dist-info/METADATA,sha256=pk0U20QDxjkmQm11RwCie7fVQ4IKe-H-_lt_s18mDVE,41210
224
+ ultralytics-8.2.46.dist-info/WHEEL,sha256=mguMlWGMX-VHnMpKOjjQidIo1ssRlCFu4a4mBpz1s2M,91
225
+ ultralytics-8.2.46.dist-info/entry_points.txt,sha256=YM_wiKyTe9yRrsEfqvYolNO5ngwfoL4-NwgKzc8_7sI,93
226
+ ultralytics-8.2.46.dist-info/top_level.txt,sha256=XP49TwiMw4QGsvTLSYiJhz1xF_k7ev5mQ8jJXaXi45Q,12
227
+ ultralytics-8.2.46.dist-info/RECORD,,