Instructions to use internetoftim/dino-vitb16-eurosat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use internetoftim/dino-vitb16-eurosat with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="internetoftim/dino-vitb16-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/dino-vitb16-eurosat") model = AutoModelForImageClassification.from_pretrained("internetoftim/dino-vitb16-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
"facebook/dino-vitb16" # pre-trained model from which to fine-tune
"Graphcore/vit-base-ipu" # config specific to the IPU (Used POD4)
Using: https://github.com/graphcore/Gradient-HuggingFace/tree/main/image-classification
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