🌌 pit-gravit-s1
🔭 This model is part of GraViT: Transfer Learning with Vision Transformers and MLP-Mixer for Strong Gravitational Lens Discovery
🔗 GitHub Repository: https://github.com/parlange/gravit
🛰️ Model Details
🤖 Model Type: PiT
🧪 Experiment: S1 - C21-classification-head-18660
🌌 Dataset: C21
🪐 Fine-tuning Strategy: classification-head
🎲 Random Seed: 18660
💻 Quick Start
import torch
import timm
# Load the model directly from the Hub
model = timm.create_model(
'hf-hub:parlange/pit-gravit-s1',
pretrained=True
)
model.eval()
# Example inference
dummy_input = torch.randn(1, 3, 224, 224)
with torch.no_grad():
output = model(dummy_input)
predictions = torch.softmax(output, dim=1)
print(f"Lens probability: {predictions[0][1]:.4f}")
⚡️ Training Configuration
Training Dataset: C21 (Cañameras et al. 2021)
Fine-tuning Strategy: classification-head
| 🔧 Parameter | 📝 Value |
|---|---|
| Batch Size | 192 |
| Learning Rate | AdamW with ReduceLROnPlateau |
| Epochs | 100 |
| Patience | 10 |
| Optimizer | AdamW |
| Scheduler | ReduceLROnPlateau |
| Image Size | 224x224 |
| Fine Tune Mode | classification_head |
| Stochastic Depth Probability | 0.1 |
📈 Training Curves
🏁 Final Epoch Training Metrics
| Metric | Training | Validation |
|---|---|---|
| 📉 Loss | 0.2209 | 0.2665 |
| 🎯 Accuracy | 0.9115 | 0.9130 |
| 📊 AUC-ROC | 0.9716 | 0.9634 |
| ⚖️ F1 Score | 0.9115 | 0.9138 |
☑️ Evaluation Results
ROC Curves and Confusion Matrices
Performance across all test datasets (a through l) in the Common Test Sample (More et al. 2024):
📋 Performance Summary
Average performance across 12 test datasets from the Common Test Sample (More et al. 2024):
| Metric | Value |
|---|---|
| 🎯 Average Accuracy | 0.7887 |
| 📈 Average AUC-ROC | 0.8150 |
| ⚖️ Average F1-Score | 0.4919 |
📘 Citation
If you use this model in your research, please cite:
@misc{parlange2025gravit,
title={GraViT: Transfer Learning with Vision Transformers and MLP-Mixer for Strong Gravitational Lens Discovery},
author={René Parlange and Juan C. Cuevas-Tello and Octavio Valenzuela and Omar de J. Cabrera-Rosas and Tomás Verdugo and Anupreeta More and Anton T. Jaelani},
year={2025},
eprint={2509.00226},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2509.00226},
}
Model Card Contact
For questions about this model, please contact the author through: https://github.com/parlange/
- Downloads last month
- 5
Collection including parlange/pit-gravit-s1
Collection
123 fine-tuned models; 10 architectures, 12 experiments, plus 3 baseline ResNet-18
•
149 items
•
Updated
Paper for parlange/pit-gravit-s1
Evaluation results
- Average Accuracy on Common Test Sample (More et al. 2024)self-reported0.789
- Average AUC-ROC on Common Test Sample (More et al. 2024)self-reported0.815
- Average F1-Score on Common Test Sample (More et al. 2024)self-reported0.492












