|
|
|
|
|
|
|
|
print('') |
|
|
print('') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def attempt_download(file, repo='ultralytics/yolov5'): # from utils.google_utils import *; attempt_download() |
|
|
|
|
|
|
|
|
def attempt_download(file, repo='ultralytics/yolov5'): # from utils.downloads import *; attempt_download() |
|
|
# Attempt file download if does not exist |
|
|
# Attempt file download if does not exist |
|
|
file = Path(str(file).strip().replace("'", '')) |
|
|
file = Path(str(file).strip().replace("'", '')) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def gdrive_download(id='16TiPfZj7htmTyhntwcZyEEAejOUxuT6m', file='tmp.zip'): |
|
|
def gdrive_download(id='16TiPfZj7htmTyhntwcZyEEAejOUxuT6m', file='tmp.zip'): |
|
|
# Downloads a file from Google Drive. from yolov5.utils.google_utils import *; gdrive_download() |
|
|
|
|
|
|
|
|
# Downloads a file from Google Drive. from yolov5.utils.downloads import *; gdrive_download() |
|
|
t = time.time() |
|
|
t = time.time() |
|
|
file = Path(file) |
|
|
file = Path(file) |
|
|
cookie = Path('cookie') # gdrive cookie |
|
|
cookie = Path('cookie') # gdrive cookie |