Instructions to use timm/samvit_base_patch16.sa1b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- timm
How to use timm/samvit_base_patch16.sa1b with timm:
import timm model = timm.create_model("hf_hub:timm/samvit_base_patch16.sa1b", pretrained=True) - Transformers
How to use timm/samvit_base_patch16.sa1b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-feature-extraction", model="timm/samvit_base_patch16.sa1b")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("timm/samvit_base_patch16.sa1b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "architecture": "samvit_base_patch16", | |
| "num_classes": 0, | |
| "num_features": 768, | |
| "global_pool": "avg", | |
| "pretrained_cfg": { | |
| "tag": "sa1b", | |
| "custom_load": false, | |
| "input_size": [ | |
| 3, | |
| 1024, | |
| 1024 | |
| ], | |
| "fixed_input_size": true, | |
| "interpolation": "bicubic", | |
| "crop_pct": 1.0, | |
| "crop_mode": "center", | |
| "mean": [ | |
| 0.485, | |
| 0.456, | |
| 0.406 | |
| ], | |
| "std": [ | |
| 0.229, | |
| 0.224, | |
| 0.225 | |
| ], | |
| "num_classes": 0, | |
| "pool_size": null, | |
| "first_conv": "patch_embed.proj", | |
| "classifier": "head", | |
| "license": "apache-2.0" | |
| } | |
| } |