question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

hf_hub_download call does not increase the download counter

See original GitHub issue

Describe the bug

I have downloaded this model more than 100 times in the last week, but the counter shows 0 downloads: https://huggingface.co/fcakyon/yolov5s-v7.0

Can you tell me which request triggers the download counter? Does hf_hub_download function trigger this counter?

Reproduction

Using yolov5 pypi package for downloading the model.

Here is the download code: https://github.com/fcakyon/yolov5-pip/blob/main/yolov5/utils/downloads.py#L131-L145

Logs

No response

System info

I have downloaded this model from windows 10 and ubuntu 18.04 with huggingface=hub==0.11.1.

Issue Analytics

  • State:open
  • Created 9 months ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
fcakyoncommented, Dec 21, 2022

@julien-c I have just added an automated hub upload function to the package and expect lots of yolov5 models to be published on the hub: https://github.com/fcakyon/yolov5-pip/releases

Original repo is not interested in adding PYPI support, Neptune.ai integration and other features so I am maintaining this package separately.

Maybe my package can be added with the name yolov5-pip into the community API instead of name yolov5.

1reaction
Wauplincommented, Dec 20, 2022

I opened an internal issue to make the “downloaded file spec” configurable in model cards (see https://github.com/huggingface/moon-landing/issues/4927 - internal link).

Let’s wait for @osanseviero 's feedback on how we could add yolov5 as a supported library. Otherwise, I’ll close this issue as it’s not exactly related to huggingface_hub (but will still keep you updated if the internal ticket is implemented).

Read more comments on GitHub >

github_iconTop Results From Across the Web

PC not getting proper download speeds, but phone is
Hi, I have 15Mbps download speed and all this time the fastest speed I've seen it go is 1.3Mbps. Actually, the only time...
Read more >
Increase Download Speed For Call Of Duty Cold War PC ...
Increase Download Speed For Call Of Duty Cold War PC Tutorial | Boost Blizzard Download SpeedsIn this Battle.net tutorial, I will be showing ......
Read more >
How to Increase Download Speeds on Steam - groovyPost
Steam game downloads take time, so here are some tips you can try to increase your Steam download speeds.
Read more >
java - Very slow download speeds with this code, any help ...
Try to increase the buffer size, it will reduce the amount of I/O operations and can make your application work faster. · Updating...
Read more >
How to Boost Your Download Speed: 26 Easy Tricks That Work
1. The more files you try to download at once, the slower each file will download. Limit your downloads to one file at...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found