Skip to content

Commit

Permalink
download: tqdm names
Browse files Browse the repository at this point in the history
  • Loading branch information
nim65s committed Oct 30, 2023
1 parent 0a5b04b commit 92c0927
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion happypose/toolbox/utils/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,11 @@ async def download_file(self, download_path, local_path):
async with self.client.stream("GET", download_path) as r:
total = int(r.headers["Content-Length"])
with tqdm(
total=total, unit_scale=True, unit_divisor=1024, unit="B"
desc=local_path.name,
total=total,
unit_scale=True,
unit_divisor=1024,
unit="B",
) as progress:
num_bytes_downloaded = r.num_bytes_downloaded
async for chunk in r.aiter_bytes():
Expand Down

0 comments on commit 92c0927

Please sign in to comment.