Commit Graph

2 Commits (b2c0aeb0ecf43ad3b6eea45510237024486ec777)

Author SHA1 Message Date
Mike Walmsley 496ba54485
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__

6ccb7d6a7c/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!
2024-03-19 13:39:21 -04:00
Nathan Raw 9f5bba9ef9
Structure Hugging Face Docs (#1575)
* 🎨 structure docs

* 🚧 wip docs

* 📝 add installation doc

* 📝 wip docs

* 📝 wip docs

* 📝 wip docs

* 📝 wip docs

* 📝 wip docs

* 📝 add basic reference docs

* 📝 remove augmentation from toctree

* 👷 update pr doc builder to bugfix branch

* 📝 wip docs

* 🚧 wip

* 👷 bump CI

* 🚧 wip

* 🚧 bump CI

* 🚧 wip

* 🚧 wip

* 🚧 wip

* 📝 add hf hub tutorial doc

* 🔥 remove inference tut

* 🚧 wip

* 📝 wip docs

* 📝 wip docs

* 📝 update docs

* 📝 move validation script doc up in order

* 🎨 restructure to remove legacy docs

* 📝 update index doc

* 📝 update number of pretrained models

* Update hfdocs/README.md

* Update .github/workflows/build_pr_documentation.yml

* Update build_pr_documentation.yml

* bump

* 📌 update gh action to use main branch

* 🔥 remove comment
2023-01-03 14:13:53 -08:00