Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenGVLab/DragGAN
/ DownloadProgressBar
Class
DownloadProgressBar
draggan/utils.py:23–27 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
21
22
23
class
DownloadProgressBar(tqdm):
24
def
update_to(self, b=1, bsize=1, tsize=None):
25
if
tsize is not None:
26
self.total = tsize
27
self.update(b * bsize - self.n)
28
29
30
def
download_url(url, output_path):
Callers
1
download_url
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected