ultralytics 8.2.100__py3-none-any.whl → 8.2.101__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.100"
3
+ __version__ = "8.2.101"
4
4
 
5
5
 
6
6
  import os
@@ -127,7 +127,7 @@ class Model(nn.Module):
127
127
  # Check if Ultralytics HUB model from https://hub.ultralytics.com
128
128
  if self.is_hub_model(model):
129
129
  # Fetch model from HUB
130
- checks.check_requirements("hub-sdk>=0.0.8")
130
+ checks.check_requirements("hub-sdk>=0.0.12")
131
131
  session = HUBTrainingSession.create_session(model)
132
132
  model = session.model_file
133
133
  if session.train_args: # training sent from HUB
@@ -38,7 +38,7 @@ def login(api_key: str = None, save=True) -> bool:
38
38
  Returns:
39
39
  (bool): True if authentication is successful, False otherwise.
40
40
  """
41
- checks.check_requirements("hub-sdk>=0.0.8")
41
+ checks.check_requirements("hub-sdk>=0.0.12")
42
42
  from hub_sdk import HUBClient
43
43
 
44
44
  api_key_url = f"{HUB_WEB_ROOT}/settings?tab=api+keys" # set the redirect URL
@@ -63,22 +63,24 @@ class HUBTrainingSession:
63
63
  # Initialize client
64
64
  self.client = HUBClient(credentials)
65
65
 
66
- # Load models if authenticated
67
- if self.client.authenticated:
66
+ # Load models
67
+ try:
68
68
  if model_id:
69
69
  self.load_model(model_id) # load existing model
70
70
  else:
71
71
  self.model = self.client.model() # load empty model
72
+ except Exception:
73
+ if identifier.startswith(f"{HUB_WEB_ROOT}/models/") and not self.client.authenticated:
74
+ LOGGER.warning(
75
+ f"{PREFIX}WARNING ⚠️ Please log in using 'yolo login API_KEY'. "
76
+ "You can find your API Key at: https://hub.ultralytics.com/settings?tab=api+keys."
77
+ )
72
78
 
73
79
  @classmethod
74
80
  def create_session(cls, identifier, args=None):
75
81
  """Class method to create an authenticated HUBTrainingSession or return None."""
76
82
  try:
77
83
  session = cls(identifier)
78
- if not session.client.authenticated:
79
- if identifier.startswith(f"{HUB_WEB_ROOT}/models/"):
80
- LOGGER.warning(f"{PREFIX}WARNING ⚠️ Login to Ultralytics HUB with 'yolo hub login API_KEY'.")
81
- return None
82
84
  if args and not identifier.startswith(f"{HUB_WEB_ROOT}/models/"): # not a HUB model URL
83
85
  session.create_model(args)
84
86
  assert session.model.id, "HUB model not loaded correctly"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ultralytics
3
- Version: 8.2.100
3
+ Version: 8.2.101
4
4
  Summary: Ultralytics YOLO for SOTA object detection, multi-object tracking, instance segmentation, pose estimation and image classification.
5
5
  Author: Ayush Chaurasia
6
6
  Author-email: Glenn Jocher <glenn.jocher@ultralytics.com>, Jing Qiu <jing.qiu@ultralytics.com>
@@ -77,7 +77,7 @@ Requires-Dist: h5py!=3.11.0; platform_machine == "aarch64" and extra == "export"
77
77
  Requires-Dist: tensorstore>=0.1.63; (platform_machine == "aarch64" and python_version >= "3.9") and extra == "export"
78
78
  Requires-Dist: coremltools>=7.0; (platform_system != "Windows" and python_version <= "3.11") and extra == "export"
79
79
  Provides-Extra: extra
80
- Requires-Dist: hub-sdk>=0.0.8; extra == "extra"
80
+ Requires-Dist: hub-sdk>=0.0.12; extra == "extra"
81
81
  Requires-Dist: ipython; extra == "extra"
82
82
  Requires-Dist: albumentations>=1.4.6; extra == "extra"
83
83
  Requires-Dist: pycocotools>=2.0.7; extra == "extra"
@@ -8,7 +8,7 @@ tests/test_exports.py,sha256=2NILfcHbCCpmbfgG6_3BSjHaa-QrTwspAVTBf8id5vY,8134
8
8
  tests/test_integrations.py,sha256=iWuqcWThasLVQzacrAwkqgU0jP-8uRkONhNLxPg2wcg,6126
9
9
  tests/test_python.py,sha256=vkA0F9XgOSpU1BxI2Lzq69f6g-vi8PtOfmb_7P96ZUk,23560
10
10
  tests/test_solutions.py,sha256=p_2edhl96Ty3jwzSf02Q2m2mTu9skc0Z-eMcUuuXfLg,3300
11
- ultralytics/__init__.py,sha256=UlxVV--AJ6sJhG11jdIX2CJVK3V5_0EMBxSzvi5V8HU,696
11
+ ultralytics/__init__.py,sha256=SLcXh7-npHBTJ3Ej9x4C8X3N9fizNxQ6nBCvdd3GHuo,696
12
12
  ultralytics/assets/bus.jpg,sha256=wCAZxJecGR63Od3ZRERe9Aja1Weayrb9Ug751DS_vGM,137419
13
13
  ultralytics/assets/zidane.jpg,sha256=Ftc4aeMmen1O0A3o6GCDO9FlfBslLpTAw0gnetx7bts,50427
14
14
  ultralytics/cfg/__init__.py,sha256=dLbqNkfXWngwiibvrxH6wMe_oZG4OIsxhIiSvkrCbEk,33145
@@ -99,15 +99,15 @@ ultralytics/data/explorer/gui/__init__.py,sha256=mHtJuK4hwF8cuV-VHDc7tp6u6D1gHz2
99
99
  ultralytics/data/explorer/gui/dash.py,sha256=vZ476NaUH4FKU08rAJ1K9WNyKtg0soMyJJxqg176yWc,10498
100
100
  ultralytics/engine/__init__.py,sha256=mHtJuK4hwF8cuV-VHDc7tp6u6D1gHz2Z7JI8grmQDTs,42
101
101
  ultralytics/engine/exporter.py,sha256=BFYvv763kbEm5q0-AYIh979vL0ccU4RNvON2w8qtm1s,57019
102
- ultralytics/engine/model.py,sha256=1sWOBvLL2JIH8JuHoxwvr1MPfKFww0ORyLESx3Fs2c8,51582
102
+ ultralytics/engine/model.py,sha256=RDxuxKMTkO2_zTwZDxd474dhNeRSo-7WvvqO_Ahjz5c,51583
103
103
  ultralytics/engine/predictor.py,sha256=MgMWHUJdRcVCaVmOyvdy2Gjk_EyRHv-ar0SSGxQe8F4,17471
104
104
  ultralytics/engine/results.py,sha256=8RJlN8J-_9w-mrDZm9wC-DZJTPBS7v1c_r_R173QyRM,75043
105
105
  ultralytics/engine/trainer.py,sha256=VOuR9WpDgYILevpWnWAtKLEIcJ4iFG41HxOCSbOy0YA,36657
106
106
  ultralytics/engine/tuner.py,sha256=gPqDTHH7vRB2O3YyH26m1BjVKbXxuA2XAlPRzTKFZsc,11838
107
107
  ultralytics/engine/validator.py,sha256=483Ad87Irk7IBlJNLu2SQAJsb7YriALTX9GIgriCmRg,14650
108
- ultralytics/hub/__init__.py,sha256=5jgMARywvUPDy-fS_Eb3e8ksd_1tAloP15pbNRKtxtg,5643
108
+ ultralytics/hub/__init__.py,sha256=3SKvZ5aRina3h94xMPQIB3D4maF62qFcyIqPPHRHNAc,5644
109
109
  ultralytics/hub/auth.py,sha256=kDLakGa2NbzvMAeXc2UdzZ65r0AH-XeM_JfsDY97WGk,5545
110
- ultralytics/hub/session.py,sha256=xD4oBiWfeIMReNxSIPE-VK5xVdUHEjS8WrpBvjlRfnU,16350
110
+ ultralytics/hub/session.py,sha256=2KznO5kX14HFZ2-Ct9LoG312sdHuigQSLZb58MGvbJY,16411
111
111
  ultralytics/hub/utils.py,sha256=I7NATG6O_QRw7EU7EHkdTVvbCkwKCyUe54BP60To_so,9715
112
112
  ultralytics/hub/google/__init__.py,sha256=uclNs-_5vAzQMgQKgl8eBvml1cx6IZYXRUhrF57v6_k,7504
113
113
  ultralytics/models/__init__.py,sha256=TT9iLCL_n9Y80dcUq0Fo-p-GRZCSU2vrWXM3CoMwqqE,265
@@ -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.100.dist-info/LICENSE,sha256=DZak_2itbUtvHzD3E7GNUYSRK6jdOJ-GqncQ2weavLA,34523
229
- ultralytics-8.2.100.dist-info/METADATA,sha256=QD9H-onZkaZ4tSh_tzEVY2ZYn_wwqqWNG43QrDfSBpE,39711
230
- ultralytics-8.2.100.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
231
- ultralytics-8.2.100.dist-info/entry_points.txt,sha256=YM_wiKyTe9yRrsEfqvYolNO5ngwfoL4-NwgKzc8_7sI,93
232
- ultralytics-8.2.100.dist-info/top_level.txt,sha256=XP49TwiMw4QGsvTLSYiJhz1xF_k7ev5mQ8jJXaXi45Q,12
233
- ultralytics-8.2.100.dist-info/RECORD,,
228
+ ultralytics-8.2.101.dist-info/LICENSE,sha256=DZak_2itbUtvHzD3E7GNUYSRK6jdOJ-GqncQ2weavLA,34523
229
+ ultralytics-8.2.101.dist-info/METADATA,sha256=gOauVqH-fydZLsjiuXMRu1X5nvcwVYKqFWXC0TFzKLg,39712
230
+ ultralytics-8.2.101.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
231
+ ultralytics-8.2.101.dist-info/entry_points.txt,sha256=YM_wiKyTe9yRrsEfqvYolNO5ngwfoL4-NwgKzc8_7sI,93
232
+ ultralytics-8.2.101.dist-info/top_level.txt,sha256=XP49TwiMw4QGsvTLSYiJhz1xF_k7ev5mQ8jJXaXi45Q,12
233
+ ultralytics-8.2.101.dist-info/RECORD,,