mirror of
https://github.com/ultralytics/yolov5.git
synced 2025-06-03 14:49:29 +08:00
Fixed creation of empty directories in path was entered mistaken (#11174)
FFixed creation of empty directories in path was entered mistaken Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
78a90c9661
commit
d223460f3a
@ -118,8 +118,8 @@ def attempt_download(file, repo='ultralytics/yolov5', release='v7.0'):
|
|||||||
except Exception:
|
except Exception:
|
||||||
tag = release
|
tag = release
|
||||||
|
|
||||||
file.parent.mkdir(parents=True, exist_ok=True) # make parent dir (if required)
|
|
||||||
if name in assets:
|
if name in assets:
|
||||||
|
file.parent.mkdir(parents=True, exist_ok=True) # make parent dir (if required)
|
||||||
safe_download(file,
|
safe_download(file,
|
||||||
url=f'https://github.com/{repo}/releases/download/{tag}/{name}',
|
url=f'https://github.com/{repo}/releases/download/{tag}/{name}',
|
||||||
min_bytes=1E5,
|
min_bytes=1E5,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user