Commit 496ba54
authored
Update hf_hub.mdx with new import, rename labels
Change suggested import from timm.models.hub.push_to_hf_hub to timm.models.push_to_hf_hub
timm.models.hub.push_to_hf_hub import fails because of refactor. timm now uses _hub.py
https://github.com/huggingface/pytorch-image-models/blob/main/timm/models/_hub.py#L270
which is imported into timm.models.__init__
https://github.com/huggingface/pytorch-image-models/blob/6ccb7d6a7c6f10fcb126313ef80034bca8fcd268/timm/models/__init__.py#L87
Also update model_cfg=dict(labels...) to model_cfg=dict(label_names...) as per deprecation warning, while we're here.
Thank you for all your work creating this, it's a brilliant library!1 parent 6ccb7d6 commit 496ba54
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
| 42 | + | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
0 commit comments