Instructions to use facebook/dinov2-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/dinov2-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-feature-extraction", model="facebook/dinov2-base")# Load model directly from transformers import AutoImageProcessor, AutoModel processor = AutoImageProcessor.from_pretrained("facebook/dinov2-base") model = AutoModel.from_pretrained("facebook/dinov2-base") - Notebooks
- Google Colab
- Kaggle
Upload model
#5
by GooKSL - opened
Flax weights for Dinov2-base model. Pull request for the accompanying code: https://github.com/huggingface/transformers/pull/25579
Thanks @GooKSL ! Let's wait to merge this PR as the last step of your integration of Flax Dinov2, just in case the model changes before we're finished