This commit is contained in:
552068321@qq.com 2022-11-07 17:25:29 +08:00
parent c6a8201e4b
commit 87441ac77d

View File

@ -41,7 +41,7 @@ def url_getsize(url='https://ultralytics.com/images/bus.jpg'):
def safe_download(file, url, url2=None, min_bytes=1E0, error_msg=''):
# Attempts to download file from url or url2, checks and removes incomplete downloads < min_bytes
from utils.general import LOGGER
from app.yolov5.utils.general import LOGGER
file = Path(file)
assert_msg = f"Downloaded file '{file}' does not exist or size is < min_bytes={min_bytes}"