MCPcopy Create free account
hub / github.com/OpenGVLab/DragGAN / download_url

Function download_url

draggan/utils.py:30–33  ·  view source on GitHub ↗
(url, output_path)

Source from the content-addressed store, hash-verified

28
29
30def download_url(url, output_path):
31 with DownloadProgressBar(unit='B', unit_scale=True,
32 miniters=1, desc=url.split('/')[-1]) as t:
33 urllib.request.urlretrieve(url, filename=output_path, reporthook=t.update_to)
34
35
36def get_path(base_path):

Callers 1

get_pathFunction · 0.70

Calls 1

DownloadProgressBarClass · 0.70

Tested by

no test coverage detected