From 87441ac77d59e488a9f31c8d6bdc06410d6aace5 Mon Sep 17 00:00:00 2001 From: "552068321@qq.com" Date: Mon, 7 Nov 2022 17:25:29 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/yolov5/utils/downloads.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/yolov5/utils/downloads.py b/app/yolov5/utils/downloads.py index bc0d660..79b25dd 100644 --- a/app/yolov5/utils/downloads.py +++ b/app/yolov5/utils/downloads.py @@ -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}"