Instructions to use internetoftim/dinov2-base-eurosat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use internetoftim/dinov2-base-eurosat with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="internetoftim/dinov2-base-eurosat") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("internetoftim/dinov2-base-eurosat") model = AutoModelForImageClassification.from_pretrained("internetoftim/dinov2-base-eurosat") - Notebooks
- Google Colab
- Kaggle
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Fine-tuning Details
To fine-tuning Details
nielsr/dinov2-base # pre-trained model from which to fine-tune
Graphcore/vit-base-ipu # config specific to the IPU (Used POD4)
Using: image_classification-dinov2-base.ipynb
Run the notebook in Gradient, make sure to upload the .ipynb file from this repository:
Poplar SDK: v3.2.1
Dataset:
load a custom dataset from local/remote files or folders using the ImageFolder feature option 1: local/remote files (supporting the following formats: tar, gzip, zip, xz, rar, zstd) url = "https://madm.dfki.de/files/sentinel/EuroSAT.zip" files = list(Path(dataset_dir).rglob("EuroSAT.zip"))
- Downloads last month
- 12