Downloads · 30 days
4
3% of all-time downloads
rishii100/clip-rsicd-finetuned
clip-rsicd-finetuned is a zero-shot image classification model from rishii100. Use it for the zero-shot image classification task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as mit.
CLIP-SatIR is a fine-tuned CLIP (ViT-B/32) model trained on the RSICD remote sensing dataset for cross-modal satellite image retrieval. The model aligns satellite imagery and natural language captions in a shared embe…
Downloads · 30 days
4
3% of all-time downloads
All-time downloads
140
Public
Parameters
151M
605 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors605 MB · 99%
From the Hugging Face model README
CLIP-SatIR is a fine-tuned CLIP (ViT-B/32) model trained on the RSICD remote sensing dataset for cross-modal satellite image retrieval. The model aligns satellite imagery and natural language captions in a shared embedding space using contrastive learning.
Supports:
Contrastive CLIP loss: L = CrossEntropy(sim(image_i, text_j))
The model learns:
| Parameter | Value |
|---|---|
| Batch Size | 32 |
| Learning Rate | 1e-5 |
| Optimizer | AdamW |
| Epochs | 5 |
| Hardware | CUDA GPU |
This model is designed for:
from transformers import CLIPModel, CLIPProcessor
from PIL import Image
import torch
model = CLIPModel.from_pretrained("rishii100/clip-rsicd-finetuned")
processor = CLIPProcessor.from_pretrained("rishii100/clip-rsicd-finetuned")
text = ["an airport with multiple airplanes and runway"]
inputs = processor(text=text, return_tensors="pt", padding=True)
with torch.no_grad():
text_features = model.get_text_features(**inputs)
print(text_features.shape)