Image Feature Extraction
timm
Safetensors
English
pathology
histopathology
feature-extraction
spectra
Instructions to use medarc/OpenMidnight-1.0-SPECTRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- timm
How to use medarc/OpenMidnight-1.0-SPECTRA with timm:
import timm model = timm.create_model("hf-hub:medarc/OpenMidnight-1.0-SPECTRA", pretrained=True) - Notebooks
- Google Colab
- Kaggle
Download config.json from medarc/OpenMidnight-1.0-SPECTRA: direct link, hf CLI and curl.
- Browser
- Download file 663 Bytes
-
https://huggingface.co/medarc/OpenMidnight-1.0-SPECTRA/resolve/main/config.json
- Command line
-
hf download hf://medarc/OpenMidnight-1.0-SPECTRA/config.json
-
curl -L -o config.json https://huggingface.co/medarc/OpenMidnight-1.0-SPECTRA/resolve/main/config.json
663 Bytes
| { | |
| "architecture": "vit_giant_patch14_reg4_dinov2", | |
| "num_classes": 0, | |
| "num_features": 1536, | |
| "global_pool": "token", | |
| "pretrained_cfg": { | |
| "custom_load": false, | |
| "input_size": [ | |
| 3, | |
| 224, | |
| 224 | |
| ], | |
| "fixed_input_size": true, | |
| "mean": [ | |
| 0.485, | |
| 0.456, | |
| 0.406 | |
| ], | |
| "std": [ | |
| 0.229, | |
| 0.224, | |
| 0.225 | |
| ], | |
| "num_classes": 0, | |
| "license": "Apache 2.0", | |
| "interpolation": "bicubic", | |
| "crop_pct": 0.875, | |
| "crop_mode": "center" | |
| }, | |
| "model_args": { | |
| "img_size": 224, | |
| "init_values": 1e-05, | |
| "dynamic_img_size": false, | |
| "num_classes": 0, | |
| "global_pool": "token" | |
| } | |
| } | |