ultralytics 8.2.82__py3-none-any.whl → 8.2.83__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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Ultralytics YOLO 🚀, AGPL-3.0 license
2
2
 
3
- __version__ = "8.2.82"
3
+ __version__ = "8.2.83"
4
4
 
5
5
  import os
6
6
 
@@ -13,6 +13,7 @@ from ultralytics.utils import (
13
13
  DEFAULT_CFG,
14
14
  DEFAULT_CFG_DICT,
15
15
  DEFAULT_CFG_PATH,
16
+ IS_VSCODE,
16
17
  LOGGER,
17
18
  RANK,
18
19
  ROOT,
@@ -25,6 +26,7 @@ from ultralytics.utils import (
25
26
  checks,
26
27
  colorstr,
27
28
  deprecation_warn,
29
+ vscode_msg,
28
30
  yaml_load,
29
31
  yaml_print,
30
32
  )
@@ -791,11 +793,7 @@ def entrypoint(debug=""):
791
793
  from ultralytics import FastSAM
792
794
 
793
795
  model = FastSAM(model)
794
- elif "sam2" in stem:
795
- from ultralytics import SAM2
796
-
797
- model = SAM2(model)
798
- elif "sam" in stem:
796
+ elif "sam_" in stem or "sam2_" in stem:
799
797
  from ultralytics import SAM
800
798
 
801
799
  model = SAM(model)
@@ -834,6 +832,10 @@ def entrypoint(debug=""):
834
832
  # Show help
835
833
  LOGGER.info(f"💡 Learn more at https://docs.ultralytics.com/modes/{mode}")
836
834
 
835
+ # Recommend VS Code extension
836
+ if IS_VSCODE and SETTINGS.get("vscode_msg", True):
837
+ LOGGER.info(vscode_msg())
838
+
837
839
 
838
840
  # Special modes --------------------------------------------------------------------------------------------------------
839
841
  def copy_default_cfg():
@@ -84,7 +84,7 @@ class LoadStreams:
84
84
  # Start thread to read frames from video stream
85
85
  st = f"{i + 1}/{n}: {s}... "
86
86
  if urlparse(s).hostname in {"www.youtube.com", "youtube.com", "youtu.be"}: # if source is YouTube video
87
- # YouTube format i.e. 'https://www.youtube.com/watch?v=Zgi9g1ksQHc' or 'https://youtu.be/LNwODJXcvt4'
87
+ # YouTube format i.e. 'https://www.youtube.com/watch?v=Jsn8D3aC840' or 'https://youtu.be/Jsn8D3aC840'
88
88
  s = get_best_youtube_url(s)
89
89
  s = eval(s) if s.isnumeric() else s # i.e. s = '0' local webcam
90
90
  if s == 0 and (IS_COLAB or IS_KAGGLE):
@@ -46,6 +46,7 @@ ARM64 = platform.machine() in {"arm64", "aarch64"} # ARM64 booleans
46
46
  PYTHON_VERSION = platform.python_version()
47
47
  TORCH_VERSION = torch.__version__
48
48
  TORCHVISION_VERSION = importlib.metadata.version("torchvision") # faster than importing torchvision
49
+ IS_VSCODE = os.environ.get("TERM_PROGRAM", False) == "vscode"
49
50
  HELP_MSG = """
50
51
  Examples for running Ultralytics:
51
52
 
@@ -1046,7 +1047,7 @@ class SettingsManager(dict):
1046
1047
  version (str): Settings version. In case of local version mismatch, new default settings will be saved.
1047
1048
  """
1048
1049
 
1049
- def __init__(self, file=SETTINGS_YAML, version="0.0.4"):
1050
+ def __init__(self, file=SETTINGS_YAML, version="0.0.5"):
1050
1051
  """Initializes the SettingsManager with default settings and loads user settings."""
1051
1052
  import copy
1052
1053
  import hashlib
@@ -1077,6 +1078,7 @@ class SettingsManager(dict):
1077
1078
  "raytune": True,
1078
1079
  "tensorboard": True,
1079
1080
  "wandb": True,
1081
+ "vscode_msg": True,
1080
1082
  }
1081
1083
  self.help_msg = (
1082
1084
  f"\nView settings with 'yolo settings' or at '{self.file}'"
@@ -1152,6 +1154,18 @@ def url2file(url):
1152
1154
  return Path(clean_url(url)).name
1153
1155
 
1154
1156
 
1157
+ def vscode_msg(ext="ultralytics.ultralytics-snippets") -> str:
1158
+ """Display a message to install Ultralytics-Snippets for VS Code if not already installed."""
1159
+ path = (USER_CONFIG_DIR.parents[2] if WINDOWS else USER_CONFIG_DIR.parents[1]) / ".vscode/extensions"
1160
+ obs_file = path / ".obsolete" # file tracks uninstalled extensions, while source directory remains
1161
+ installed = any(path.glob(f"{ext}*")) and ext not in (obs_file.read_text("utf-8") if obs_file.exists() else "")
1162
+ return (
1163
+ f"{colorstr('VS Code:')} view Ultralytics VS Code Extension ⚡ at https://docs.ultralytics.com/integrations/vscode"
1164
+ if not installed
1165
+ else ""
1166
+ )
1167
+
1168
+
1155
1169
  # Run below code on utils init ------------------------------------------------------------------------------------
1156
1170
 
1157
1171
  # Check first-install steps
@@ -178,7 +178,7 @@ def _get_covariance_matrix(boxes):
178
178
  boxes (torch.Tensor): A tensor of shape (N, 5) representing rotated bounding boxes, with xywhr format.
179
179
 
180
180
  Returns:
181
- (torch.Tensor): Covariance metrixs corresponding to original rotated bounding boxes.
181
+ (torch.Tensor): Covariance matrices corresponding to original rotated bounding boxes.
182
182
  """
183
183
  # Gaussian bounding boxes, ignore the center points (the first two columns) because they are not needed here.
184
184
  gbbs = torch.cat((boxes[:, 2:4].pow(2) / 12, boxes[:, 4:]), dim=-1)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ultralytics
3
- Version: 8.2.82
3
+ Version: 8.2.83
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
@@ -96,6 +96,7 @@ Requires-Dist: dvclive>=2.12.0; extra == "logging"
96
96
  <a href="https://hub.docker.com/r/ultralytics/ultralytics"><img src="https://img.shields.io/docker/pulls/ultralytics/ultralytics?logo=docker" alt="Ultralytics Docker Pulls"></a>
97
97
  <a href="https://ultralytics.com/discord"><img alt="Ultralytics Discord" src="https://img.shields.io/discord/1089800235347353640?logo=discord&logoColor=white&label=Discord&color=blue"></a>
98
98
  <a href="https://community.ultralytics.com"><img alt="Ultralytics Forums" src="https://img.shields.io/discourse/users?server=https%3A%2F%2Fcommunity.ultralytics.com&logo=discourse&label=Forums&color=blue"></a>
99
+ <a href="https://reddit.com/r/ultralytics"><img alt="Ultralytics Reddit" src="https://img.shields.io/reddit/subreddit-subscribers/ultralytics?style=flat&logo=reddit&logoColor=white&label=Reddit&color=blue"></a>
99
100
  <br>
100
101
  <a href="https://console.paperspace.com/github/ultralytics/ultralytics"><img src="https://assets.paperspace.io/img/gradient-badge.svg" alt="Run Ultralytics on Gradient"></a>
101
102
  <a href="https://colab.research.google.com/github/ultralytics/ultralytics/blob/main/examples/tutorial.ipynb"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open Ultralytics In Colab"></a>
@@ -105,7 +106,7 @@ Requires-Dist: dvclive>=2.12.0; extra == "logging"
105
106
 
106
107
  [Ultralytics](https://ultralytics.com) [YOLOv8](https://github.com/ultralytics/ultralytics) is a cutting-edge, state-of-the-art (SOTA) model that builds upon the success of previous YOLO versions and introduces new features and improvements to further boost performance and flexibility. YOLOv8 is designed to be fast, accurate, and easy to use, making it an excellent choice for a wide range of object detection and tracking, instance segmentation, image classification and pose estimation tasks.
107
108
 
108
- We hope that the resources here will help you get the most out of YOLOv8. Please browse the YOLOv8 <a href="https://docs.ultralytics.com/">Docs</a> for details, raise an issue on <a href="https://github.com/ultralytics/ultralytics/issues/new/choose">GitHub</a> for support, and join our <a href="https://ultralytics.com/discord">Discord</a> community for questions and discussions!
109
+ We hope that the resources here will help you get the most out of YOLOv8. Please browse the YOLOv8 <a href="https://docs.ultralytics.com/">Docs</a> for details, raise an issue on <a href="https://github.com/ultralytics/ultralytics/issues/new/choose">GitHub</a> for support, questions, or discussions, become a member of the Ultralytics <a href="https://ultralytics.com/discord">Discord</a>, <a href="https://reddit.com/r/ultralytics">Reddit</a> and <a href="https://community.ultralytics.com">Forums</a>!
109
110
 
110
111
  To request an Enterprise License please complete the form at [Ultralytics Licensing](https://ultralytics.com/license).
111
112
 
@@ -361,7 +362,7 @@ Ultralytics offers two licensing options to accommodate diverse use cases:
361
362
 
362
363
  ## <div align="center">Contact</div>
363
364
 
364
- For Ultralytics bug reports and feature requests please visit [GitHub Issues](https://github.com/ultralytics/ultralytics/issues), and join our [Discord](https://ultralytics.com/discord) community for questions and discussions!
365
+ For Ultralytics bug reports and feature requests please visit [GitHub Issues](https://github.com/ultralytics/ultralytics/issues). Become a member of the Ultralytics [Discord](https://ultralytics.com/discord), [Reddit](https://reddit.com/r/ultralytics), or [Forums](https://community.ultralytics.com) for asking questions, sharing projects, learning discussions, or for help with all things Ultralytics!
365
366
 
366
367
  <br>
367
368
  <div align="center">
@@ -8,10 +8,10 @@ tests/test_exports.py,sha256=Uezf3OatpPHlo5qoPw-2kqkZxuMCF9L4XF2riD4vmII,8225
8
8
  tests/test_integrations.py,sha256=xglcfMPjfVh346PV8WTpk6tBxraCXEFJEQyyJMr5tyU,6064
9
9
  tests/test_python.py,sha256=SxBf5GNu7vXQP8QxTlSOzCzcQNN0PLA6EX8M33VDHsU,21927
10
10
  tests/test_solutions.py,sha256=p_2edhl96Ty3jwzSf02Q2m2mTu9skc0Z-eMcUuuXfLg,3300
11
- ultralytics/__init__.py,sha256=Ykb1PhzrTTEwW2znpAgkqlGINAMwTmaN5wcyDS_gZV0,694
11
+ ultralytics/__init__.py,sha256=GCuzRCtg8kNcfqSooPJeB90ILBmOEWf_LhJirWsy0Z4,694
12
12
  ultralytics/assets/bus.jpg,sha256=wCAZxJecGR63Od3ZRERe9Aja1Weayrb9Ug751DS_vGM,137419
13
13
  ultralytics/assets/zidane.jpg,sha256=Ftc4aeMmen1O0A3o6GCDO9FlfBslLpTAw0gnetx7bts,50427
14
- ultralytics/cfg/__init__.py,sha256=gzN0gWztGS1Y2uWO2_m236w0MZzP9a5JHmquOI9zIcs,33005
14
+ ultralytics/cfg/__init__.py,sha256=pkB7wk0pHOA3xzKzMbS-hA0iJoPOWVNnwZJh0LuWh-w,33089
15
15
  ultralytics/cfg/default.yaml,sha256=xRKVF-Z9E3imXTU9OCK94kj3jGgYoo67VJQwuYlHiUU,8228
16
16
  ultralytics/cfg/datasets/Argoverse.yaml,sha256=FyeuJT5CHq_9d4hlfAf0kpZlnbUMO0S--UJ1yIqcdKk,3134
17
17
  ultralytics/cfg/datasets/DOTAv1.5.yaml,sha256=QVfp_Qp-4rukuicaB4qx86NxSHM8Mrzym8l_fIDo8gw,1195
@@ -89,7 +89,7 @@ ultralytics/data/base.py,sha256=HK-YZOStAkD8hVHhfBetH-Q_CWfEfuyPvv_gYwxULzY,1352
89
89
  ultralytics/data/build.py,sha256=AfMmz0sHIYmwry_90tEJFRk_kz0S3SolScVXqYHiT08,7261
90
90
  ultralytics/data/converter.py,sha256=E_za4V-ZR49NA5CvwJUTg5Y6Jx8mhJS4CS89olgvHGg,21501
91
91
  ultralytics/data/dataset.py,sha256=ZBnO9KPVOJXwKQbN2LlmROIxLEb0mtppVQlrC4sX3oE,22879
92
- ultralytics/data/loaders.py,sha256=dF2dQk1E3fNB_kDUtn18fehY2QYLWUs4od6BuqYSCPg,24094
92
+ ultralytics/data/loaders.py,sha256=JF2Z_ESK6RweavOuYWejYSGJwmqINb5hNwwCb3AAf0M,24094
93
93
  ultralytics/data/split_dota.py,sha256=DLSiVXFJVZeia9a1xr2jf7pD47kaqd58Lo_KAsKwlgA,10688
94
94
  ultralytics/data/utils.py,sha256=ZvqocYXUGGhqJnLDvxF-gWChISkPZL-Bt-T2ZcA9tBI,31042
95
95
  ultralytics/data/explorer/__init__.py,sha256=-Y3m1ZedepOQUv_KW82zaGxvU_PSHcuwUTFqG9BhAr4,113
@@ -196,7 +196,7 @@ ultralytics/trackers/utils/__init__.py,sha256=mHtJuK4hwF8cuV-VHDc7tp6u6D1gHz2Z7J
196
196
  ultralytics/trackers/utils/gmc.py,sha256=VcURuY041qGCeWUGMxHZBr10T16LtcMqyv7AmTfE1MY,14557
197
197
  ultralytics/trackers/utils/kalman_filter.py,sha256=cH9zD3fwkuezP97H9mw8cSBN7a8hHKx_Sx1j7t3oYGs,21349
198
198
  ultralytics/trackers/utils/matching.py,sha256=3Ie1WNNRZ4_q3365F03XD7Nr9juZB_08mw4yUKC3w74,7162
199
- ultralytics/utils/__init__.py,sha256=el8br71WUrPdhIxT3-xrrgAli83FBUB3WMbUrW50u70,43333
199
+ ultralytics/utils/__init__.py,sha256=8AG5hOzrZmh_kax3haI1EM7gnS4jtfMPXKZXb3ED6g8,44101
200
200
  ultralytics/utils/autobatch.py,sha256=AXboYfNSnTGsYj5FmgGYPQd0crfkeleyms6QXQfZGQ4,4194
201
201
  ultralytics/utils/benchmarks.py,sha256=3FaUK0416u9ZwWE4MEms1DwHomr7XJSDumXsBGjrlNg,23655
202
202
  ultralytics/utils/checks.py,sha256=Joc2-VJ-muKDjkXc8ZLNah41dSbfQFFAEw8OFWg585c,28512
@@ -206,7 +206,7 @@ ultralytics/utils/errors.py,sha256=GqP_Jgj_n0paxn8OMhn3DTCgoNkB2WjUcUaqs-M6SQk,8
206
206
  ultralytics/utils/files.py,sha256=zxKNaH6YJvGKrD4DVPk0kkoo44Q7Xi-n_1Fy48TzTxw,8240
207
207
  ultralytics/utils/instance.py,sha256=QSms7mPHZ5e8JGuJYLohLWltzI0aBE8dob2rOUK4RtM,16249
208
208
  ultralytics/utils/loss.py,sha256=mDHGmF-gjggAUVhI1dkCm7TtfZHCwz25XKm4M2xJKLs,33916
209
- ultralytics/utils/metrics.py,sha256=NGNKyBbMANY-csw21RaMeIyWErBUUHkhngztxBkA5cc,53926
209
+ ultralytics/utils/metrics.py,sha256=OIRyet-EvUwzo1baad-aeQ90H0w9cHANNTfUkqhuc_M,53927
210
210
  ultralytics/utils/ops.py,sha256=zeONcBrEKCuQMMidgYBO1mMkqkq_TsPSsifwB_ctia8,32878
211
211
  ultralytics/utils/patches.py,sha256=Oo3DkP7MbXnNGvPfoFSocAkVvaPh9kwMT_9RQUfjVhI,3594
212
212
  ultralytics/utils/plotting.py,sha256=m-JR-kAS_l3i-Dy1sFnGxfJuGGb0jlJZWZKORQtYZtQ,56183
@@ -225,9 +225,9 @@ ultralytics/utils/callbacks/neptune.py,sha256=5Z3ua5YBTUS56FH8VQKQG1aaIo9fH8GEyz
225
225
  ultralytics/utils/callbacks/raytune.py,sha256=ODVYzy-CoM4Uge0zjkh3Hnh9nF2M0vhDrSenXnvcizw,705
226
226
  ultralytics/utils/callbacks/tensorboard.py,sha256=0kn4IR10no99UCIheojWRujgybmUHSx5fPI6Vsq6l_g,4135
227
227
  ultralytics/utils/callbacks/wb.py,sha256=9-fjQIdLjr3b73DTE3rHO171KvbH1VweJ-bmbv-rqTw,6747
228
- ultralytics-8.2.82.dist-info/LICENSE,sha256=DZak_2itbUtvHzD3E7GNUYSRK6jdOJ-GqncQ2weavLA,34523
229
- ultralytics-8.2.82.dist-info/METADATA,sha256=FBCRfQis7bGVKd22cPGP9UN5xCo6nz4dcPXJ0YoyBEI,41264
230
- ultralytics-8.2.82.dist-info/WHEEL,sha256=Mdi9PDNwEZptOjTlUcAth7XJDFtKrHYaQMPulZeBCiQ,91
231
- ultralytics-8.2.82.dist-info/entry_points.txt,sha256=YM_wiKyTe9yRrsEfqvYolNO5ngwfoL4-NwgKzc8_7sI,93
232
- ultralytics-8.2.82.dist-info/top_level.txt,sha256=XP49TwiMw4QGsvTLSYiJhz1xF_k7ev5mQ8jJXaXi45Q,12
233
- ultralytics-8.2.82.dist-info/RECORD,,
228
+ ultralytics-8.2.83.dist-info/LICENSE,sha256=DZak_2itbUtvHzD3E7GNUYSRK6jdOJ-GqncQ2weavLA,34523
229
+ ultralytics-8.2.83.dist-info/METADATA,sha256=bcRaFabp1etZymVCQyCNkWtJeVceTpSGXSOmywZaBiA,41778
230
+ ultralytics-8.2.83.dist-info/WHEEL,sha256=UvcQYKBHoFqaQd6LKyqHw9fxEolWLQnlzP0h_LgJAfI,91
231
+ ultralytics-8.2.83.dist-info/entry_points.txt,sha256=YM_wiKyTe9yRrsEfqvYolNO5ngwfoL4-NwgKzc8_7sI,93
232
+ ultralytics-8.2.83.dist-info/top_level.txt,sha256=XP49TwiMw4QGsvTLSYiJhz1xF_k7ev5mQ8jJXaXi45Q,12
233
+ ultralytics-8.2.83.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (73.0.1)
2
+ Generator: setuptools (74.0.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5