Skip to content

Commit

Permalink
[Improve] Update the accerlerate url in cn region.
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyaofo committed Nov 30, 2021
1 parent 30344fd commit e764b37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codebase/torchutils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ def patch_download_in_cn():

def _cn_download_url_to_file(url: str, dst, hash_prefix=None, progress=True):
if url.startswith("https://github.com"):
cdn_url = "https://github.91chifun.workers.dev/" + url
cdn_url = "https://dl.chenyf.workers.dev/" + url
return download_url_to_file(cdn_url, dst, hash_prefix, progress)
hub.download_url_to_file = _cn_download_url_to_file

Expand Down

0 comments on commit e764b37

Please sign in to comment.