mirror of
https://github.com/THU-MIG/yolov10.git
synced 2025-05-23 21:44:22 +08:00
ultralytics 8.0.205
HUB dataset downloads fix (#6101)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
ff0aba10c5
commit
ff921ca93e
@ -78,8 +78,8 @@ To gain insight into the current configuration of your settings, you can view th
|
|||||||
# View all settings
|
# View all settings
|
||||||
print(settings)
|
print(settings)
|
||||||
|
|
||||||
# Return a specific setting
|
# Return analytics and crash reporting setting
|
||||||
value = settings['runs_dir']
|
value = settings['sync']
|
||||||
```
|
```
|
||||||
|
|
||||||
=== "CLI"
|
=== "CLI"
|
||||||
@ -109,14 +109,14 @@ Ultralytics allows users to easily modify their settings. Changes can be perform
|
|||||||
=== "CLI"
|
=== "CLI"
|
||||||
If you prefer using the command-line interface, the following commands will allow you to modify your settings:
|
If you prefer using the command-line interface, the following commands will allow you to modify your settings:
|
||||||
```bash
|
```bash
|
||||||
# Update a setting
|
# Disable analytics and crash reporting
|
||||||
yolo settings sync=false
|
yolo settings sync=False
|
||||||
|
|
||||||
# Reset settings to default values
|
# Reset settings to default values
|
||||||
yolo settings reset
|
yolo settings reset
|
||||||
```
|
```
|
||||||
|
|
||||||
This will prevent any data from being sent to Google Analytics or Snyk. Your settings will be respected across all sessions using the Ultralytics package.
|
The `sync=False` setting will prevent any data from being sent to Google Analytics or Snyk. Your settings will be respected across all sessions using the Ultralytics package and saved to disk for future sessions.
|
||||||
|
|
||||||
## Commitment to Privacy
|
## Commitment to Privacy
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Ultralytics YOLO 🚀, AGPL-3.0 license
|
# Ultralytics YOLO 🚀, AGPL-3.0 license
|
||||||
|
|
||||||
__version__ = '8.0.204'
|
__version__ = '8.0.205'
|
||||||
|
|
||||||
from ultralytics.models import RTDETR, SAM, YOLO
|
from ultralytics.models import RTDETR, SAM, YOLO
|
||||||
from ultralytics.models.fastsam import FastSAM
|
from ultralytics.models.fastsam import FastSAM
|
||||||
|
@ -707,7 +707,7 @@ def remove_colorstr(input_string):
|
|||||||
>>> remove_colorstr(colorstr('blue', 'bold', 'hello world'))
|
>>> remove_colorstr(colorstr('blue', 'bold', 'hello world'))
|
||||||
>>> 'hello world'
|
>>> 'hello world'
|
||||||
"""
|
"""
|
||||||
ansi_escape = re.compile(r'\x1B(?:[@-Z\\\-_]|\[[0-9]*[ -/]*[@-~])')
|
ansi_escape = re.compile(r'\x1B\[[0-9;]*[A-Za-z]')
|
||||||
return ansi_escape.sub('', input_string)
|
return ansi_escape.sub('', input_string)
|
||||||
|
|
||||||
|
|
||||||
|
@ -278,7 +278,9 @@ def safe_download(url,
|
|||||||
url, file = get_google_drive_file_info(url)
|
url, file = get_google_drive_file_info(url)
|
||||||
|
|
||||||
f = Path(dir or '.') / (file or url2file(url)) # URL converted to filename
|
f = Path(dir or '.') / (file or url2file(url)) # URL converted to filename
|
||||||
if not f.is_file(): # URL and file do not exist
|
if '://' not in str(url) and Path(url).is_file(): # URL exists ('://' check required in Windows Python<3.10)
|
||||||
|
f = Path(url) # filename
|
||||||
|
elif not f.is_file(): # URL and file do not exist
|
||||||
desc = f"Downloading {url if gdrive else clean_url(url)} to '{f}'"
|
desc = f"Downloading {url if gdrive else clean_url(url)} to '{f}'"
|
||||||
LOGGER.info(f'{desc}...')
|
LOGGER.info(f'{desc}...')
|
||||||
f.parent.mkdir(parents=True, exist_ok=True) # make directory if missing
|
f.parent.mkdir(parents=True, exist_ok=True) # make directory if missing
|
||||||
|
Loading…
x
Reference in New Issue
Block a user