调试
This commit is contained in:
parent
c6a8201e4b
commit
87441ac77d
@ -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=''):
|
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
|
# 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)
|
file = Path(file)
|
||||||
assert_msg = f"Downloaded file '{file}' does not exist or size is < min_bytes={min_bytes}"
|
assert_msg = f"Downloaded file '{file}' does not exist or size is < min_bytes={min_bytes}"
|
||||||
|
Loading…
Reference in New Issue
Block a user