Instructions to use internetoftim/dinov1-base-eurosat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use internetoftim/dinov1-base-eurosat with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="internetoftim/dinov1-base-eurosat") 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("internetoftim/dinov1-base-eurosat") model = AutoModelForImageClassification.from_pretrained("internetoftim/dinov1-base-eurosat", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
d40069f
1
Parent(s): cbc8a00
Upload ViTForImageClassification
Browse filesFiles changed (2)
- config.jsonAdded+47
- pytorch_model.binAdded+3
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647{ "_name_or_path": "google/vit-base-patch16-224-in21k", "architectures": [ "ViTForImageClassification" ], "attention_probs_dropout_prob": 0.0, "encoder_stride": 16, "hidden_act": "gelu", "hidden_dropout_prob": 0.0, "hidden_size": 768, "id2label": { "0": "AnnualCrop", "1": "Forest", "2": "HerbaceousVegetation", "3": "Highway", "4": "Industrial", "5": "Pasture", "6": "PermanentCrop", "7": "Residential", "8": "River", "9": "SeaLake" }, "image_size": 224, "initializer_range": 0.02, "intermediate_size": 3072, "label2id": { "AnnualCrop": 0, "Forest": 1, "HerbaceousVegetation": 2, "Highway": 3, "Industrial": 4, "Pasture": 5, "PermanentCrop": 6, "Residential": 7, "River": 8, "SeaLake": 9 }, "layer_norm_eps": 1e-12, "model_type": "vit", "num_attention_heads": 12, "num_channels": 3, "num_hidden_layers": 12, "patch_size": 16, "qkv_bias": true, "torch_dtype": "float32", "transformers_version": "4.25.1"}123version https://git-lfs.github.com/spec/v1oid sha256:4108be627e556c53c6715eccadc9b4f5ff3d5d419012dcdcf0c9d0338df08054size 343290541config.jsonAdded+47
pytorch_model.binAdded+3