Image Classification
Transformers
Safetensors
swinv2
LADI
Aerial Imagery
Disaster Response
Emergency Management
Run this model with HF Jobs
Run MITLL/LADI-v2-classifier-large-reference on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/MITLL/LADI-v2-classifier-large-reference. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/MITLL/LADI-v2-classifier-large-reference on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use MITLL/LADI-v2-classifier-large-reference with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MITLL/LADI-v2-classifier-large-reference with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="MITLL/LADI-v2-classifier-large-reference") 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("MITLL/LADI-v2-classifier-large-reference") model = AutoModelForImageClassification.from_pretrained("MITLL/LADI-v2-classifier-large-reference", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload Swinv2ForImageClassification
Browse filesFiles changed (2)
- config.jsonAdded+87
- model.safetensorsAdded+3
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687{ "_name_or_path": "../models/LADI-v2-classifier-large-reference", "architectures": [ "Swinv2ForImageClassification" ], "attention_probs_dropout_prob": 0.0, "depths": [ 2, 2, 18, 2 ], "drop_path_rate": 0.1, "embed_dim": 192, "encoder_stride": 32, "hidden_act": "gelu", "hidden_dropout_prob": 0.0, "hidden_size": 1536, "id2label": { "0": "bridges_any", "1": "buildings_any", "2": "buildings_affected_or_greater", "3": "buildings_minor_or_greater", "4": "debris_any", "5": "flooding_any", "6": "flooding_structures", "7": "roads_any", "8": "roads_damage", "9": "trees_any", "10": "trees_damage", "11": "water_any" }, "image_size": 256, "initializer_range": 0.02, "label2id": { "bridges_any": "0", "buildings_affected_or_greater": "2", "buildings_any": "1", "buildings_minor_or_greater": "3", "debris_any": "4", "flooding_any": "5", "flooding_structures": "6", "roads_any": "7", "roads_damage": "8", "trees_any": "9", "trees_damage": "10", "water_any": "11" }, "layer_norm_eps": 1e-05, "mlp_ratio": 4.0, "model_type": "swinv2", "num_channels": 3, "num_heads": [ 6, 12, 24, 48 ], "num_layers": 4, "out_features": [ "stage4" ], "out_indices": [ 4 ], "patch_size": 4, "path_norm": true, "pretrained_window_sizes": [ 0, 0, 0, 0 ], "problem_type": "multi_label_classification", "qkv_bias": true, "stage_names": [ "stem", "stage1", "stage2", "stage3", "stage4" ], "torch_dtype": "float32", "transformers_version": "4.37.2", "use_absolute_embeddings": false, "window_size": 16}123version https://git-lfs.github.com/spec/v1oid sha256:49ec901f5d9e6cfba6322b6d705e654005b8c886314af3665a21b9d9b0dcb73esize 780947768config.jsonAdded+87
model.safetensorsAdded+3