Image Feature Extraction
timm
Safetensors
microscopy
single-cell
self-supervised
dinov2
vision-transformer
biology
Instructions to use CSEM-AI4LS/scdino-v2-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- timm
How to use CSEM-AI4LS/scdino-v2-base with timm:
import timm model = timm.create_model("hf-hub:CSEM-AI4LS/scdino-v2-base", pretrained=True) - Notebooks
- Google Colab
- Kaggle
Download config.json from CSEM-AI4LS/scdino-v2-base: direct link, hf CLI and curl.
- Browser
- Download file 1.31 kB
-
https://huggingface.co/CSEM-AI4LS/scdino-v2-base/resolve/main/config.json
- Command line
-
hf download hf://CSEM-AI4LS/scdino-v2-base/config.json
-
curl -L -o config.json https://huggingface.co/CSEM-AI4LS/scdino-v2-base/resolve/main/config.json
1.31 kB
| { | |
| "architecture": "vit_base_patch16_224", | |
| "num_classes": 0, | |
| "num_features": 128, | |
| "global_pool": "token", | |
| "model_args": { | |
| "img_size": 56, | |
| "patch_size": 4, | |
| "in_chans": 5, | |
| "embed_dim": 128, | |
| "depth": 12, | |
| "num_heads": 8, | |
| "mlp_ratio": 4, | |
| "reg_tokens": 8, | |
| "init_values": 1e-05, | |
| "dynamic_img_size": true, | |
| "num_classes": 0 | |
| }, | |
| "pretrained_cfg": { | |
| "custom_load": false, | |
| "input_size": [ | |
| 5, | |
| 56, | |
| 56 | |
| ], | |
| "fixed_input_size": true, | |
| "interpolation": "bilinear", | |
| "crop_pct": 1.0, | |
| "crop_mode": "center", | |
| "mean": [ | |
| 0.0972, | |
| 0.7408, | |
| 0.103, | |
| 0.0761, | |
| 0.0893 | |
| ], | |
| "std": [ | |
| 0.141, | |
| 0.118, | |
| 0.1694, | |
| 0.1051, | |
| 0.0972 | |
| ], | |
| "num_classes": 0, | |
| "pool_size": null, | |
| "first_conv": null, | |
| "classifier": "head" | |
| }, | |
| "scdino_variant": "dinov2", | |
| "scdino_preprocessing": { | |
| "norm_type": "clip_max", | |
| "clip_mode": "clip_and_scale", | |
| "input_layout": "HWC", | |
| "max_vals_clip": [ | |
| 3713.48, | |
| 1297.59, | |
| 6904.38, | |
| 3412.43, | |
| 3133.96 | |
| ], | |
| "mean": [ | |
| 0.0972, | |
| 0.7408, | |
| 0.103, | |
| 0.0761, | |
| 0.0893 | |
| ], | |
| "std": [ | |
| 0.141, | |
| 0.118, | |
| 0.1694, | |
| 0.1051, | |
| 0.0972 | |
| ], | |
| "resize": 56 | |
| } | |
| } | |