Spaces:
Sleeping
Sleeping
Features Module
Feature extraction using CLIP for satellite imagery.
Files
| File | Description |
|---|---|
extractor.py |
CLIP ViT-L/14 feature extractor |
embeddings.py |
Embedding cache utilities |
Model
| Parameter | Value |
|---|---|
| Model | openai/clip-vit-large-patch14 |
| Architecture | Vision Transformer |
| Embedding Dim | 768 |
| Input Resolution | 224x224 |
Usage
from src.features.extractor import FeatureExtractor
# Initialize extractor
extractor = FeatureExtractor(model_name="openai/clip-vit-large-patch14")
# Extract features from single image
embedding = extractor.extract_features(image, modality="optical")
# Extract features from batch
embeddings = extractor.extract_batch(images, modality="optical", batch_size=32)