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:
1 parent
78a90c9661
commit
d223460f3a
1 file changed
+1
-1
+1
-1
@@ -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,
|
||||||
|
|||||||
Reference in new issue
Block a user