ultralytics 8.2.9__py3-none-any.whl → 8.2.10__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.
- ultralytics/__init__.py +1 -1
- ultralytics/cfg/__init__.py +1 -0
- ultralytics/engine/exporter.py +1 -0
- ultralytics/engine/results.py +22 -16
- ultralytics/utils/tuner.py +1 -1
- {ultralytics-8.2.9.dist-info → ultralytics-8.2.10.dist-info}/METADATA +2 -2
- {ultralytics-8.2.9.dist-info → ultralytics-8.2.10.dist-info}/RECORD +11 -11
- {ultralytics-8.2.9.dist-info → ultralytics-8.2.10.dist-info}/LICENSE +0 -0
- {ultralytics-8.2.9.dist-info → ultralytics-8.2.10.dist-info}/WHEEL +0 -0
- {ultralytics-8.2.9.dist-info → ultralytics-8.2.10.dist-info}/entry_points.txt +0 -0
- {ultralytics-8.2.9.dist-info → ultralytics-8.2.10.dist-info}/top_level.txt +0 -0
ultralytics/__init__.py
CHANGED
ultralytics/cfg/__init__.py
CHANGED
ultralytics/engine/exporter.py
CHANGED
|
@@ -599,6 +599,7 @@ class Exporter:
|
|
|
599
599
|
|
|
600
600
|
LOGGER.info(f"\n{prefix} starting export with coremltools {ct.__version__}...")
|
|
601
601
|
assert not WINDOWS, "CoreML export is not supported on Windows, please run on macOS or Linux."
|
|
602
|
+
assert self.args.batch == 1, "CoreML batch sizes > 1 are not supported. Please retry at 'batch=1'."
|
|
602
603
|
f = self.file.with_suffix(".mlmodel" if mlmodel else ".mlpackage")
|
|
603
604
|
if f.is_dir():
|
|
604
605
|
shutil.rmtree(f)
|
ultralytics/engine/results.py
CHANGED
|
@@ -387,26 +387,32 @@ class Results(SimpleClass):
|
|
|
387
387
|
|
|
388
388
|
def summary(self, normalize=False, decimals=5):
|
|
389
389
|
"""Convert the results to a summarized format."""
|
|
390
|
-
if self.probs is not None:
|
|
391
|
-
LOGGER.warning("Warning: Classify results do not support the `summary()` method yet.")
|
|
392
|
-
return
|
|
393
|
-
|
|
394
390
|
# Create list of detection dictionaries
|
|
395
391
|
results = []
|
|
396
|
-
|
|
392
|
+
if self.probs is not None:
|
|
393
|
+
class_id = self.probs.top1
|
|
394
|
+
results.append(
|
|
395
|
+
{
|
|
396
|
+
"name": self.names[class_id],
|
|
397
|
+
"class": class_id,
|
|
398
|
+
"confidence": round(self.probs.top1conf.item(), decimals),
|
|
399
|
+
}
|
|
400
|
+
)
|
|
401
|
+
return results
|
|
402
|
+
|
|
403
|
+
data = self.boxes or self.obb
|
|
404
|
+
is_obb = self.obb is not None
|
|
397
405
|
h, w = self.orig_shape if normalize else (1, 1)
|
|
398
406
|
for i, row in enumerate(data): # xyxy, track_id if tracking, conf, class_id
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
"
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
if self.boxes.is_track:
|
|
409
|
-
result["track_id"] = int(row[-3]) # track ID
|
|
407
|
+
class_id, conf = int(row.cls), round(row.conf.item(), decimals)
|
|
408
|
+
box = (row.xyxyxyxy if is_obb else row.xyxy).squeeze().reshape(-1, 2).tolist()
|
|
409
|
+
xy = {}
|
|
410
|
+
for i, b in enumerate(box):
|
|
411
|
+
xy[f"x{i + 1}"] = round(b[0] / w, decimals)
|
|
412
|
+
xy[f"y{i + 1}"] = round(b[1] / h, decimals)
|
|
413
|
+
result = {"name": self.names[class_id], "class": class_id, "confidence": conf, "box": xy}
|
|
414
|
+
if data.is_track:
|
|
415
|
+
result["track_id"] = int(row.id.item()) # track ID
|
|
410
416
|
if self.masks:
|
|
411
417
|
result["segments"] = {
|
|
412
418
|
"x": (self.masks.xy[i][:, 0] / w).round(decimals).tolist(),
|
ultralytics/utils/tuner.py
CHANGED
|
@@ -57,7 +57,7 @@ def run_ray_tune(
|
|
|
57
57
|
except (ImportError, AssertionError):
|
|
58
58
|
wandb = False
|
|
59
59
|
|
|
60
|
-
checks.check_version(ray.__version__, "
|
|
60
|
+
checks.check_version(ray.__version__, ">=2.0.0", "ray")
|
|
61
61
|
default_space = {
|
|
62
62
|
# 'optimizer': tune.choice(['SGD', 'Adam', 'AdamW', 'NAdam', 'RAdam', 'RMSProp']),
|
|
63
63
|
"lr0": tune.uniform(1e-5, 1e-1),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: ultralytics
|
|
3
|
-
Version: 8.2.
|
|
3
|
+
Version: 8.2.10
|
|
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
|
|
@@ -73,7 +73,7 @@ Requires-Dist: tensorflowjs >=3.9.0 ; (python_version <= "3.11") and extra == 'e
|
|
|
73
73
|
Provides-Extra: extra
|
|
74
74
|
Requires-Dist: hub-sdk >=0.0.5 ; extra == 'extra'
|
|
75
75
|
Requires-Dist: ipython ; extra == 'extra'
|
|
76
|
-
Requires-Dist: albumentations
|
|
76
|
+
Requires-Dist: albumentations >=1.4.6 ; extra == 'extra'
|
|
77
77
|
Requires-Dist: pycocotools >=2.0.7 ; extra == 'extra'
|
|
78
78
|
Provides-Extra: logging
|
|
79
79
|
Requires-Dist: comet ; extra == 'logging'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
ultralytics/__init__.py,sha256=
|
|
1
|
+
ultralytics/__init__.py,sha256=JRHBL4PFEZmSrqSDusfaD0hEQrOr33jrN49kmwDERZE,633
|
|
2
2
|
ultralytics/assets/bus.jpg,sha256=wCAZxJecGR63Od3ZRERe9Aja1Weayrb9Ug751DS_vGM,137419
|
|
3
3
|
ultralytics/assets/zidane.jpg,sha256=Ftc4aeMmen1O0A3o6GCDO9FlfBslLpTAw0gnetx7bts,50427
|
|
4
|
-
ultralytics/cfg/__init__.py,sha256=
|
|
4
|
+
ultralytics/cfg/__init__.py,sha256=lR6jykSO_0cigsjrqSyFj_8JG_LvYi796viasyWhcfs,21358
|
|
5
5
|
ultralytics/cfg/default.yaml,sha256=KoXq5DHQK-Voge9DbkySd2rRpDizG6Oq-A4Byqz5Exc,8211
|
|
6
6
|
ultralytics/cfg/datasets/Argoverse.yaml,sha256=FyeuJT5CHq_9d4hlfAf0kpZlnbUMO0S--UJ1yIqcdKk,3134
|
|
7
7
|
ultralytics/cfg/datasets/DOTAv1.5.yaml,sha256=YDsyFPI6F6-OQXLBM3hOXo3vADYREwZzmMQfJNdpWyM,1193
|
|
@@ -78,10 +78,10 @@ ultralytics/data/explorer/utils.py,sha256=EvvukQiQUTBrsZznmMnyEX2EqTuwZo_Geyc8yf
|
|
|
78
78
|
ultralytics/data/explorer/gui/__init__.py,sha256=mHtJuK4hwF8cuV-VHDc7tp6u6D1gHz2Z7JI8grmQDTs,42
|
|
79
79
|
ultralytics/data/explorer/gui/dash.py,sha256=2oAbNroR2lfS45v53M1sRqZklLXbbj6qXqNxvplulC0,10087
|
|
80
80
|
ultralytics/engine/__init__.py,sha256=mHtJuK4hwF8cuV-VHDc7tp6u6D1gHz2Z7JI8grmQDTs,42
|
|
81
|
-
ultralytics/engine/exporter.py,sha256=
|
|
81
|
+
ultralytics/engine/exporter.py,sha256=JmROwWm1q_GOC9TGXXKOI67PQYdi4gemen6D72k2bQw,55182
|
|
82
82
|
ultralytics/engine/model.py,sha256=EkLTBSm3RT0mWPsZQpVRShihEvI5vx5X_VnkBHc1fxk,40032
|
|
83
83
|
ultralytics/engine/predictor.py,sha256=wQRKdWGDTP5A6CS0gTC6U3RPDMhP3QkEzWSPm6eqCkU,17022
|
|
84
|
-
ultralytics/engine/results.py,sha256=
|
|
84
|
+
ultralytics/engine/results.py,sha256=r5dxL5of8TAf7GQECPehbvfz3KiYi4gUQHRqgPLBe3w,30919
|
|
85
85
|
ultralytics/engine/trainer.py,sha256=GpseAovVKLRgAoqG4bEVtQqemWdDcxrY7gE3vGRU9gs,35048
|
|
86
86
|
ultralytics/engine/tuner.py,sha256=iZrgMmXSDpfuDu4bdFRflmAsscys2-8W8qAGxSyOVJE,11844
|
|
87
87
|
ultralytics/engine/validator.py,sha256=Y21Uo8_Zto4qjk_YqQk6k7tyfpq_Qk9cfjeXeyDRxs8,14643
|
|
@@ -187,7 +187,7 @@ ultralytics/utils/plotting.py,sha256=8Bts0M758PxAdOywsn8xv4ULBG7DuCGMhYWBVH5BrOM
|
|
|
187
187
|
ultralytics/utils/tal.py,sha256=xuIyryUjaaYHkHPG9GvBwh1xxN2Hq4y3hXOtuERehwY,16017
|
|
188
188
|
ultralytics/utils/torch_utils.py,sha256=y1qJniyii0sJFg8dpP-yjYh8AMOoFok9NEZcRi669Jo,25916
|
|
189
189
|
ultralytics/utils/triton.py,sha256=gg1finxno_tY2Ge9PMhmu7PI9wvoFZoiicdT4Bhqv3w,3936
|
|
190
|
-
ultralytics/utils/tuner.py,sha256=
|
|
190
|
+
ultralytics/utils/tuner.py,sha256=49KAadKZsUeCpwIm5Sn0grb0RPcMNI8vHGLwroDEJNI,6171
|
|
191
191
|
ultralytics/utils/callbacks/__init__.py,sha256=YrWqC3BVVaTLob4iCPR6I36mUxIUOpPJW7B_LjT78Qw,214
|
|
192
192
|
ultralytics/utils/callbacks/base.py,sha256=A8H6jXnPQJfOxA1ByTBWF2ePDs5ldccUabXG0u5BfRI,5776
|
|
193
193
|
ultralytics/utils/callbacks/clearml.py,sha256=M9Fi1OfdWqcm8uVkauuX3zJIYhNh6Tp7Jo4CfA0u0nw,5923
|
|
@@ -199,9 +199,9 @@ ultralytics/utils/callbacks/neptune.py,sha256=5Z3ua5YBTUS56FH8VQKQG1aaIo9fH8GEyz
|
|
|
199
199
|
ultralytics/utils/callbacks/raytune.py,sha256=ODVYzy-CoM4Uge0zjkh3Hnh9nF2M0vhDrSenXnvcizw,705
|
|
200
200
|
ultralytics/utils/callbacks/tensorboard.py,sha256=Z1veCVcn9THPhdplWuIzwlsW2yF7y-On9IZIk3khM0Y,4135
|
|
201
201
|
ultralytics/utils/callbacks/wb.py,sha256=woCQVuZzqtM5KnwxIibcfM3sFBYojeMPnv11jrRaIQA,6674
|
|
202
|
-
ultralytics-8.2.
|
|
203
|
-
ultralytics-8.2.
|
|
204
|
-
ultralytics-8.2.
|
|
205
|
-
ultralytics-8.2.
|
|
206
|
-
ultralytics-8.2.
|
|
207
|
-
ultralytics-8.2.
|
|
202
|
+
ultralytics-8.2.10.dist-info/LICENSE,sha256=DZak_2itbUtvHzD3E7GNUYSRK6jdOJ-GqncQ2weavLA,34523
|
|
203
|
+
ultralytics-8.2.10.dist-info/METADATA,sha256=9VTYzdpmTqWjX2MFmT2DqzaFGqX1VQiTc1VlzP88O8A,40694
|
|
204
|
+
ultralytics-8.2.10.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
205
|
+
ultralytics-8.2.10.dist-info/entry_points.txt,sha256=YM_wiKyTe9yRrsEfqvYolNO5ngwfoL4-NwgKzc8_7sI,93
|
|
206
|
+
ultralytics-8.2.10.dist-info/top_level.txt,sha256=XP49TwiMw4QGsvTLSYiJhz1xF_k7ev5mQ8jJXaXi45Q,12
|
|
207
|
+
ultralytics-8.2.10.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|