Image Feature Extraction
timm
Safetensors
sapiens
sapiens2
Transformers
vision-transformer
human-centric
pretrained-backbone
feature-extraction
Instructions to use timm/vit_base_patch16_sapiens2.fb with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- timm
How to use timm/vit_base_patch16_sapiens2.fb with timm:
import timm model = timm.create_model("hf-hub:timm/vit_base_patch16_sapiens2.fb", pretrained=True) - sapiens
How to use timm/vit_base_patch16_sapiens2.fb with sapiens:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- sapiens2
How to use timm/vit_base_patch16_sapiens2.fb with sapiens2:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Transformers
How to use timm/vit_base_patch16_sapiens2.fb with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-feature-extraction", model="timm/vit_base_patch16_sapiens2.fb")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("timm/vit_base_patch16_sapiens2.fb", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download conversion.json from timm/vit_base_patch16_sapiens2.fb: direct link, hf CLI and curl.
- Browser
- Download file 545 Bytes
-
https://huggingface.co/timm/vit_base_patch16_sapiens2.fb/resolve/main/conversion.json
- Command line
-
hf download hf://timm/vit_base_patch16_sapiens2.fb/conversion.json
-
curl -L -o conversion.json https://huggingface.co/timm/vit_base_patch16_sapiens2.fb/resolve/main/conversion.json
545 Bytes
| { | |
| "model_name": "vit_base_patch16_sapiens2.fb", | |
| "destination_repo": "timm/vit_base_patch16_sapiens2.fb", | |
| "source_repo": "facebook/sapiens2-pretrain-0.1b", | |
| "source_revision": "b16fc30feddc2cf9330b2980a26a8cc91f51e697", | |
| "source_filename": "model.safetensors", | |
| "license_source": "https://raw.githubusercontent.com/facebookresearch/sapiens2/main/LICENSE.md", | |
| "license_sha256": "1c77a629ee16972ddb9844378038b20321143a6faf0cac26c2c04dc9b61c5288", | |
| "timm_version": "1.0.29", | |
| "torch_version": "2.13.0+cu130", | |
| "metadata_only": false | |
| } | |