Add generic_segmentation probe for dinov2_vitb14
Browse files
README.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: visbench
|
| 3 |
+
tags:
|
| 4 |
+
- visbench
|
| 5 |
+
- probing
|
| 6 |
+
- generic_segmentation
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
# generic_segmentation probe for `dinov2_vitb14`
|
| 10 |
+
|
| 11 |
+
A **trained probe head**, not a backbone. It is the small module VisBench fits
|
| 12 |
+
on top of frozen `dinov2_vitb14` features to measure what those features carry.
|
| 13 |
+
|
| 14 |
+
```python
|
| 15 |
+
import visbench
|
| 16 |
+
from visbench.hub import load_probe_from_hub
|
| 17 |
+
|
| 18 |
+
backbone = visbench.get_backbone("dinov2_vitb14")
|
| 19 |
+
probe = load_probe_from_hub("turhancan97/visbench-generic_segmentation-dinov2_vitb14", backbone=backbone)
|
| 20 |
+
```
|
| 21 |
+
|
| 22 |
+
## It only works with this backbone
|
| 23 |
+
|
| 24 |
+
These weights were fitted on features from `dinov2_vitb14`, taken with
|
| 25 |
+
`pooling=mean` and `feature_mode=dense_only`. Loading them against
|
| 26 |
+
anything else is refused, because the failure is otherwise silent: a head fitted
|
| 27 |
+
on one pooling and fed another has the right shapes and produces a plausible,
|
| 28 |
+
wrong number.
|
| 29 |
+
|
| 30 |
+
| | |
|
| 31 |
+
| --- | --- |
|
| 32 |
+
| backbone | `dinov2_vitb14` |
|
| 33 |
+
| backbone key | `dinov2/dinov2_vitb14/224/7764ea0f912e` |
|
| 34 |
+
| task | `generic_segmentation` (mid_level) |
|
| 35 |
+
| pooling | `mean` (requested `mean`) |
|
| 36 |
+
| feature mode | `dense_only` |
|
| 37 |
+
| layers | `None` |
|
| 38 |
+
|
| 39 |
+
**Reported scores**
|
| 40 |
+
|
| 41 |
+
| metric | value |
|
| 42 |
+
| --- | --- |
|
| 43 |
+
| `f1` | 0.8422 |
|
| 44 |
+
| `iou` | 0.7579 |
|
| 45 |
+
| `pixel_acc` | 0.9366 |
|
| 46 |
+
|
| 47 |
+
## Reproducing it
|
| 48 |
+
|
| 49 |
+
Fitted with:
|
| 50 |
+
|
| 51 |
+
- `batch_size`: `8`
|
| 52 |
+
- `epochs`: `10`
|
| 53 |
+
- `head`: `linear`
|
| 54 |
+
- `hidden_dim`: `512`
|
| 55 |
+
- `layers`: `None`
|
| 56 |
+
- `loss`: `masked_bce`
|
| 57 |
+
- `lr`: `0.0005`
|
| 58 |
+
- `optimizer`: `adamw`
|
| 59 |
+
- `protocol`: `visbench_binary_seg`
|
| 60 |
+
- `threshold`: `0.5`
|
| 61 |
+
- `warmup_epochs`: `1.5`
|
| 62 |
+
- `weight_decay`: `0.0001`
|
| 63 |
+
|
| 64 |
+
Generated by [VisBench](https://github.com/turhancan97/VisBench).
|
probe.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9d0bde3b1baad6533131507494375a9eac6e3337712fead0e0e4680788be6424
|
| 3 |
+
size 5653
|