Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenGVLab/DragGAN
/ update_to
Method
update_to
draggan/deprecated/utils.py:24–27 ·
view source on GitHub ↗
(self, b=1, bsize=1, tsize=None)
Source
from the content-addressed store, hash-verified
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
nothing calls this directly
Calls
1
update
Method · 0.80
Tested by
no test coverage detected