-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Hugging Face integration #25
Conversation
Hi @NielsRogge, Thanks for the PR! This sounds like a good idea and definitely something we'd be interested in. As for the implementation, I had a couple questions. Currently we have this repo set up as a PyPI package, and I would like to ensure that functionality doesn't break. I noticed in the code, you changed relative import of Also, the change requires us to make |
Thanks for your reply :) Regarding changing the relative import, the only reason I was doing that was because I got:
when attempting to run the Regarding making Would you be up for trying this |
Thanks for the update! This looks good to me. I'll incorporate this into v0.1.3 (and add you as a contributor to that update). In the mean time, yes it would be preferable to upload the models to the Huggingface hub under the Meta organization. However, I'm not currently a member of the facebookresearch org, so one of my coauthors will likely have to do it (e.g., @chayryali). What would that entail? |
Created the PR for this (#26). Also confirmed that it works (e.g., dbolya/hiera-tiny-224). Also, another question: for this repo, we have it set up so that you have the main model (.e.g., |
Awesome, thanks a lot :) Regarding pushing to the Meta organization, yes your coauthor could do that assuming he/she has write access, or you could be added to the organization as well assuming you still work at Meta. Regarding the branches, the
Based on the commit history of your repo. Since each repo on the hub is a git-based repo, you could create various branches for a single repo, and specify the branch name. However, usually we just create one separate repository per model checkpoint (to have separate model cards, download numbers, etc.) |
Will close this one in favor of #26 |
Hi @dbolya,
Thanks for this nice work. I wrote a quick PoC to showcase that you can easily have integration so that you can automatically load the various Hiera models using
from_pretrained
(and push them usingpush_to_hub
), track download numbers for your models (similar to models in the Transformers library), and have nice model cards on a per-model basis. It leverages the PyTorchModelHubMixin class which allows to inherits these methods.Usage is as follows:
The corresponding model is here for now: https://huggingface.co/nielsr/co-tracker-hf. We could move all checkpoints to separate repos on the Meta organization if you're interested. Ideally, each checkpoint has its own model repository on the 🤗 hub, where a config.json and safetensors weights are hosted.
To improve discoverability, we could add tags like "object-tracking" to the model cards, so that people can find these models by either typing in the search bar/filtering on hf.co/models.
Would you be interested in this integration?
Kind regards,
Niels