From 121f2242e1dfed67ba3e838afe68686ea143bc53 Mon Sep 17 00:00:00 2001 From: Jan Knobloch <116908874+jk4e@users.noreply.github.com> Date: Sat, 3 Aug 2024 19:59:16 +0200 Subject: [PATCH] Fix `is_url()` and `check_disk_space()` docstrings in downloads.py (#14923) --- ultralytics/utils/downloads.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ultralytics/utils/downloads.py b/ultralytics/utils/downloads.py index bc9ac2cb6..de9f63687 100644 --- a/ultralytics/utils/downloads.py +++ b/ultralytics/utils/downloads.py @@ -41,7 +41,7 @@ def is_url(url, check=False): Args: url (str): The string to be validated as a URL. check (bool, optional): If True, performs an additional check to see if the URL exists online. - Defaults to True. + Defaults to False. Returns: (bool): Returns True for a valid URL. If 'check' is True, also returns True if the URL exists online. @@ -201,7 +201,7 @@ def check_disk_space(url="https://ultralytics.com/assets/coco8.zip", path=Path.c Args: url (str, optional): The URL to the file. Defaults to 'https://ultralytics.com/assets/coco8.zip'. path (str | Path, optional): The path or drive to check the available free space on. - sf (float, optional): Safety factor, the multiplier for the required free space. Defaults to 2.0. + sf (float, optional): Safety factor, the multiplier for the required free space. Defaults to 1.5. hard (bool, optional): Whether to throw an error or not on insufficient disk space. Defaults to True. Returns: