Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pavlo Beylin
MaD Patch Yolov5
Commits
3e7c59ad
Unverified
Commit
3e7c59ad
authored
Aug 11, 2021
by
Glenn Jocher
Committed by
GitHub
Aug 11, 2021
Browse files
Fix rename `utils.google_utils` to `utils.downloads` (#4393)
parent
a4e45530
Changes
2
Show whitespace changes
Inline
Side-by-side
data/scripts/download_weights.sh
View file @
3e7c59ad
...
...
@@ -9,7 +9,7 @@
# └── ...
python -
<<
EOF
from utils.
google_util
s import attempt_download
from utils.
download
s import attempt_download
for x in ['s', 'm', 'l', 'x']:
attempt_download(f'yolov5{x}.pt')
...
...
utils/downloads.py
View file @
3e7c59ad
...
...
@@ -36,7 +36,7 @@ def safe_download(file, url, url2=None, min_bytes=1E0, error_msg=''):
print
(
''
)
def
attempt_download
(
file
,
repo
=
'ultralytics/yolov5'
):
# from utils.
google_util
s import *; attempt_download()
def
attempt_download
(
file
,
repo
=
'ultralytics/yolov5'
):
# from utils.
download
s import *; attempt_download()
# Attempt file download if does not exist
file
=
Path
(
str
(
file
).
strip
().
replace
(
"'"
,
''
))
...
...
@@ -74,7 +74,7 @@ def attempt_download(file, repo='ultralytics/yolov5'): # from utils.google_util
def
gdrive_download
(
id
=
'16TiPfZj7htmTyhntwcZyEEAejOUxuT6m'
,
file
=
'tmp.zip'
):
# Downloads a file from Google Drive. from yolov5.utils.
google_util
s import *; gdrive_download()
# Downloads a file from Google Drive. from yolov5.utils.
download
s import *; gdrive_download()
t
=
time
.
time
()
file
=
Path
(
file
)
cookie
=
Path
(
'cookie'
)
# gdrive cookie
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment