ultralytics 8.0.67__py3-none-any.whl → 8.0.68__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 🚀, GPL-3.0 license
2
2
 
3
- __version__ = '8.0.67'
3
+ __version__ = '8.0.68'
4
4
 
5
5
  from ultralytics.hub import start
6
6
  from ultralytics.yolo.engine.model import YOLO
ultralytics/hub/auth.py CHANGED
@@ -11,7 +11,7 @@ API_KEY_URL = 'https://hub.ultralytics.com/settings?tab=api+keys'
11
11
  class Auth:
12
12
  id_token = api_key = model_key = False
13
13
 
14
- def __init__(self, api_key=''):
14
+ def __init__(self, api_key='', verbose=True):
15
15
  """
16
16
  Initialize the Auth class with an optional API key.
17
17
 
@@ -29,7 +29,8 @@ class Auth:
29
29
  # If the provided API key matches the API key in the SETTINGS
30
30
  if self.api_key == SETTINGS.get('api_key'):
31
31
  # Log that the user is already logged in
32
- LOGGER.info(f'{PREFIX}Authenticated ✅')
32
+ if verbose:
33
+ LOGGER.info(f'{PREFIX}Authenticated ✅')
33
34
  return
34
35
  else:
35
36
  # Attempt to authenticate with the provided API key
@@ -46,8 +47,9 @@ class Auth:
46
47
  if success:
47
48
  set_settings({'api_key': self.api_key})
48
49
  # Log that the new login was successful
49
- LOGGER.info(f'{PREFIX}New authentication successful ✅')
50
- else:
50
+ if verbose:
51
+ LOGGER.info(f'{PREFIX}New authentication successful ✅')
52
+ elif verbose:
51
53
  LOGGER.info(f'{PREFIX}Retrieve API key from {API_KEY_URL}')
52
54
 
53
55
  def request_api_key(self, max_attempts=3):
@@ -58,7 +58,7 @@ class HUBTrainingSession:
58
58
  raise ValueError(f'Invalid HUBTrainingSession input: {url}')
59
59
 
60
60
  # Authorize
61
- auth = Auth(key)
61
+ auth = Auth(key, verbose=False)
62
62
  self.agent_id = None # identifies which instance is communicating with server
63
63
  self.model_id = model_id
64
64
  self.model_url = f'https://hub.ultralytics.com/models/{model_id}'
@@ -126,10 +126,10 @@ def safe_download(url,
126
126
  raise ConnectionError(emojis(f'❌ Download failure for {url}. Retry limit reached.')) from e
127
127
  LOGGER.warning(f'⚠️ Download failure, retrying {i + 1}/{retry} {url}...')
128
128
 
129
- if unzip and f.exists() and f.suffix in ('.zip', '.tar', '.gz'):
129
+ if unzip and f.exists() and f.suffix in ('', '.zip', '.tar', '.gz'):
130
130
  unzip_dir = dir or f.parent # unzip to dir if provided else unzip in place
131
131
  LOGGER.info(f'Unzipping {f} to {unzip_dir}...')
132
- if f.suffix == '.zip':
132
+ if is_zipfile(f):
133
133
  unzip_dir = unzip_file(file=f, path=unzip_dir) # unzip
134
134
  elif f.suffix == '.tar':
135
135
  subprocess.run(['tar', 'xf', f, '--directory', unzip_dir], check=True) # unzip
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ultralytics
3
- Version: 8.0.67
3
+ Version: 8.0.68
4
4
  Summary: Ultralytics YOLOv8
5
5
  Home-page: https://github.com/ultralytics/ultralytics
6
6
  Author: Ultralytics
@@ -1,4 +1,4 @@
1
- ultralytics/__init__.py,sha256=pWBvGMMghyHCRLhlEuhLQ6YcuTUawXUSEYtyoQi7qMg,295
1
+ ultralytics/__init__.py,sha256=wk7ZWcL-2cFsmmxyvpaEhZuj1S6Z86m9lAEf17xPAFQ,295
2
2
  ultralytics/assets/bus.jpg,sha256=wCAZxJecGR63Od3ZRERe9Aja1Weayrb9Ug751DS_vGM,137419
3
3
  ultralytics/assets/zidane.jpg,sha256=Ftc4aeMmen1O0A3o6GCDO9FlfBslLpTAw0gnetx7bts,50427
4
4
  ultralytics/datasets/Argoverse.yaml,sha256=EOZ3aUOi9mgCVot4TMiUBXVuovIdTAZ1FSOy7G224vA,2750
@@ -17,8 +17,8 @@ ultralytics/datasets/coco8-seg.yaml,sha256=tsdE6xhhQ2EgjXvasn7YWJoAsvo7BpRUvHDs0
17
17
  ultralytics/datasets/coco8.yaml,sha256=YIlvnkEGEk9KOX9PtwQkr3gLvLY4CzSCMBXouP66WKQ,1776
18
18
  ultralytics/datasets/xView.yaml,sha256=5JIVo4LOvkm8XJZ8Vxp-2SZMNG-K6ED9jfjG305-_cY,5177
19
19
  ultralytics/hub/__init__.py,sha256=OqEYcAfLp9n6RoeiG2SAD5MP__R_NCt_IEAPzi6pWZI,3435
20
- ultralytics/hub/auth.py,sha256=pVQC55Oektnznpgwko7YjYTtjct9jiZpxbi89jazmhg,5123
21
- ultralytics/hub/session.py,sha256=L7tMtWBmvEAs8b6t1P1fUDhIER9v1FHki4LP8aBjAkU,8176
20
+ ultralytics/hub/auth.py,sha256=Y5ho3MIO2OFZ4nco6j3EfRU6JSwIoT_uY_2Y9t2wZzE,5205
21
+ ultralytics/hub/session.py,sha256=9yPpov2Re5qpUN9L-3ELHXeFdY3a1OjCPhdqUZ5Wukk,8191
22
22
  ultralytics/hub/utils.py,sha256=BgJbCo57C2wWuRMADwxnSQ94O8nwklRH6Cu_Jzu6vt4,10416
23
23
  ultralytics/models/v3/yolov3-spp.yaml,sha256=shxxs9C4fVvdpvZR2DK-PRsu-JSjU7ilI339J280IHI,1434
24
24
  ultralytics/models/v3/yolov3-tiny.yaml,sha256=yHN4XyVK6QjbWspEvKm1rzZQVDkKBjwLgdUhGB0h0fc,1135
@@ -75,7 +75,7 @@ ultralytics/yolo/utils/autobatch.py,sha256=I09al9DZbo6aNyf-GS1N1WFBOWC4xmHB2Yt81
75
75
  ultralytics/yolo/utils/benchmarks.py,sha256=_fo6TzZ8YLEJOQa7rG9hjjg2XIkKd-NnoiYNas0tB3k,5414
76
76
  ultralytics/yolo/utils/checks.py,sha256=MocPCdWYNIgH49uQhrCrDpRao43F21VLDj5VPe08Aqo,13858
77
77
  ultralytics/yolo/utils/dist.py,sha256=6on1z6Jo6VbHwTg5V3yprEwJwkFUdNLJxf1gqDGx_Ks,2412
78
- ultralytics/yolo/utils/downloads.py,sha256=Vup6Is4RIRgGjPPOGWKmqYJeL0NuSTOSH8e3-0sNa4M,10053
78
+ ultralytics/yolo/utils/downloads.py,sha256=kaJeS2zXl4EYTTIyQBCQIMc8zrHa8yHOS-Zlr5iC9Qc,10052
79
79
  ultralytics/yolo/utils/files.py,sha256=c-ig7zwG67MwnKgoj1FEpAe-bq1iC9wYXjMqRlzqzLU,3105
80
80
  ultralytics/yolo/utils/instance.py,sha256=rMxybRdrilqpWAOfUtH-YQx4wHNj2Y2lR48u2G8V4bk,11394
81
81
  ultralytics/yolo/utils/loss.py,sha256=JTgCauhA-gHhYn7IaMhR5UAUVHG_wx3S8YR5XhkRs88,2889
@@ -108,9 +108,9 @@ ultralytics/yolo/v8/segment/__init__.py,sha256=1OK2oVv3A-iWPf_V4Jz0uXhBQZyLd7dlI
108
108
  ultralytics/yolo/v8/segment/predict.py,sha256=hmgTGQTnk2nrS6XMLD7VgiLoXd-ZFuwNw7wKGGK0obo,5446
109
109
  ultralytics/yolo/v8/segment/train.py,sha256=-J4FQ6lgFF_cbBUi4rJMhRNWK93SaeNczR4GsMj5uI4,7674
110
110
  ultralytics/yolo/v8/segment/val.py,sha256=2YB44XzJiy3cp6EyXsIRhcRCZFatoHXRCUcwadvEzag,11995
111
- ultralytics-8.0.67.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
112
- ultralytics-8.0.67.dist-info/METADATA,sha256=lZiU4abtcH5B5L5Bf9YjQKaw2RNfQ9CDaBvXA4u2G5Q,25952
113
- ultralytics-8.0.67.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
114
- ultralytics-8.0.67.dist-info/entry_points.txt,sha256=Ck1F6qKNokeHozQD5pmaFgXHL6dKyC2qCdyXao2e6Yg,103
115
- ultralytics-8.0.67.dist-info/top_level.txt,sha256=XP49TwiMw4QGsvTLSYiJhz1xF_k7ev5mQ8jJXaXi45Q,12
116
- ultralytics-8.0.67.dist-info/RECORD,,
111
+ ultralytics-8.0.68.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
112
+ ultralytics-8.0.68.dist-info/METADATA,sha256=kz2ywJP2k0e8h6Yyu1ITu8cV8R1Mlm4GaCcy9PEL5AA,25952
113
+ ultralytics-8.0.68.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
114
+ ultralytics-8.0.68.dist-info/entry_points.txt,sha256=Ck1F6qKNokeHozQD5pmaFgXHL6dKyC2qCdyXao2e6Yg,103
115
+ ultralytics-8.0.68.dist-info/top_level.txt,sha256=XP49TwiMw4QGsvTLSYiJhz1xF_k7ev5mQ8jJXaXi45Q,12
116
+ ultralytics-8.0.68.dist-info/RECORD,,