Instructions to use microsoft/beit-base-patch16-384 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use microsoft/beit-base-patch16-384 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="microsoft/beit-base-patch16-384") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("microsoft/beit-base-patch16-384") model = AutoModelForImageClassification.from_pretrained("microsoft/beit-base-patch16-384", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Add vision tag
3f8133f
-
add model
2937578 -
add config
7666b3e -
Update .gitattributes
b33c4e3
-
Update preprocessor_config.json
4514a84
-
Fix typo in code example
e5dc6f9
-
Add model card
07bf4d6
-
First commit
2258fda -
initial commit
8aaa496