"...git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "dd63168319d4cd3c5f5951daaf2a37a26d2f9b73"
Unverified Commit 467b841a authored by Philip Meier's avatar Philip Meier Committed by GitHub
Browse files

do not re-download from GDrive if file is already present (#5805)

parent 78c24bbb
...@@ -234,6 +234,7 @@ def download_file_from_google_drive(file_id: str, root: str, filename: Optional[ ...@@ -234,6 +234,7 @@ def download_file_from_google_drive(file_id: str, root: str, filename: Optional[
if check_integrity(fpath, md5): if check_integrity(fpath, md5):
print(f"Using downloaded {'and verified ' if md5 else ''}file: {fpath}") print(f"Using downloaded {'and verified ' if md5 else ''}file: {fpath}")
return
url = "https://drive.google.com/uc" url = "https://drive.google.com/uc"
params = dict(id=file_id, export="download") params = dict(id=file_id, export="download")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment