Image Classification
timm
PyTorch
Safetensors
vit
vision-transformer
transformer
gravitational-lensing
strong-lensing
astronomy
astrophysics
Eval Results (legacy)
Instructions to use parlange/vit-gravit-c2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- timm
How to use parlange/vit-gravit-c2 with timm:
import timm model = timm.create_model("hf_hub:parlange/vit-gravit-c2", pretrained=True) - Notebooks
- Google Colab
- Kaggle
| { | |
| "architecture": "vit_base_patch16_224", | |
| "num_classes": 2, | |
| "num_features": 768, | |
| "global_pool": "token", | |
| "crop_pct": 0.875, | |
| "interpolation": "bicubic", | |
| "mean": [ | |
| 0.485, | |
| 0.456, | |
| 0.406 | |
| ], | |
| "std": [ | |
| 0.229, | |
| 0.224, | |
| 0.225 | |
| ], | |
| "first_conv": "patch_embed.proj", | |
| "classifier": "head", | |
| "input_size": [ | |
| 3, | |
| 224, | |
| 224 | |
| ], | |
| "pool_size": [ | |
| 7, | |
| 7 | |
| ], | |
| "pretrained_cfg": { | |
| "tag": "gravit_c2", | |
| "custom_load": false, | |
| "input_size": [ | |
| 3, | |
| 224, | |
| 224 | |
| ], | |
| "fixed_input_size": true, | |
| "interpolation": "bicubic", | |
| "crop_pct": 0.875, | |
| "crop_mode": "center", | |
| "mean": [ | |
| 0.485, | |
| 0.456, | |
| 0.406 | |
| ], | |
| "std": [ | |
| 0.229, | |
| 0.224, | |
| 0.225 | |
| ], | |
| "num_classes": 2, | |
| "pool_size": [ | |
| 7, | |
| 7 | |
| ], | |
| "first_conv": "patch_embed.proj", | |
| "classifier": "head" | |
| }, | |
| "model_name": "vit_gravit_c2", | |
| "experiment": "c2", | |
| "training_strategy": "half", | |
| "dataset": "C21+J24", | |
| "hyperparameters": { | |
| "batch_size": "192", | |
| "learning_rate": "AdamW with ReduceLROnPlateau", | |
| "epochs": "100", | |
| "patience": "10", | |
| "optimizer": "AdamW", | |
| "scheduler": "ReduceLROnPlateau", | |
| "image_size": "224x224", | |
| "fine_tune_mode": "half", | |
| "stochastic_depth_probability": "0.1" | |
| }, | |
| "hf_hub_id": "parlange/vit-gravit-c2", | |
| "license": "apache-2.0" | |
| } |