ultralytics 8.1.25 fix **kwargs: (dict) warnings (#8815)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
f8f62bc649
commit
2bc605f32a
12 changed files with 22 additions and 22 deletions
|
|
@ -113,7 +113,7 @@ class TQDM(tqdm_original):
|
|||
|
||||
Args:
|
||||
*args (list): Positional arguments passed to original tqdm.
|
||||
**kwargs (dict): Keyword arguments, with custom defaults applied.
|
||||
**kwargs (any): Keyword arguments, with custom defaults applied.
|
||||
"""
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
|
|
|
|||
|
|
@ -410,7 +410,7 @@ def attempt_download_asset(file, repo="ultralytics/assets", release="v8.1.0", **
|
|||
file (str | Path): The filename or file path to be downloaded.
|
||||
repo (str, optional): The GitHub repository in the format 'owner/repo'. Defaults to 'ultralytics/assets'.
|
||||
release (str, optional): The specific release version to be downloaded. Defaults to 'v8.1.0'.
|
||||
**kwargs (dict): Additional keyword arguments for the download process.
|
||||
**kwargs (any): Additional keyword arguments for the download process.
|
||||
|
||||
Returns:
|
||||
(str): The path to the downloaded file.
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ def torch_save(*args, use_dill=True, **kwargs):
|
|||
Args:
|
||||
*args (tuple): Positional arguments to pass to torch.save.
|
||||
use_dill (bool): Whether to try using dill for serialization if available. Defaults to True.
|
||||
**kwargs (dict): Keyword arguments to pass to torch.save.
|
||||
**kwargs (any): Keyword arguments to pass to torch.save.
|
||||
"""
|
||||
try:
|
||||
assert use_dill
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue