Add model card
Browse files
README.md
CHANGED
|
@@ -1,16 +1,67 @@
|
|
| 1 |
-
---
|
| 2 |
-
|
| 3 |
-
pipeline_tag: image-classification
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
-
|
| 9 |
-
-
|
| 10 |
-
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
-
|
| 15 |
-
-
|
| 16 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: silva
|
| 3 |
+
pipeline_tag: image-classification
|
| 4 |
+
license: mit
|
| 5 |
+
base_model: google/siglip2-so400m-patch14-384
|
| 6 |
+
base_model_relation: adapter
|
| 7 |
+
tags:
|
| 8 |
+
- aesthetic
|
| 9 |
+
- siglip2
|
| 10 |
+
- ordinal-regression
|
| 11 |
+
metrics:
|
| 12 |
+
- spearmanr
|
| 13 |
+
- pearsonr
|
| 14 |
+
- mae
|
| 15 |
+
model-index:
|
| 16 |
+
- name: silva-aesthetic
|
| 17 |
+
results:
|
| 18 |
+
- task:
|
| 19 |
+
type: image-classification
|
| 20 |
+
name: Personal Aesthetic Scoring
|
| 21 |
+
metrics:
|
| 22 |
+
- type: spearmanr
|
| 23 |
+
value: 0.7576
|
| 24 |
+
- type: pearsonr
|
| 25 |
+
value: 0.7496
|
| 26 |
+
- type: mae
|
| 27 |
+
value: 0.6619
|
| 28 |
+
---
|
| 29 |
+
|
| 30 |
+
# SILVA — Personal Aesthetic Head
|
| 31 |
+
|
| 32 |
+
Scores an illustration by **one specific person's** taste — not a universal quality
|
| 33 |
+
model, so it won't match anyone else's preferences. Output is a single number in
|
| 34 |
+
`[0, 1]`; higher means more to this person's liking.
|
| 35 |
+
|
| 36 |
+
**Only the head ships here (~7 MB), not an image model.** It runs on top of the frozen
|
| 37 |
+
`google/siglip2-so400m-patch14-384` backbone, which `silva[backbone]` installs and loads for you.
|
| 38 |
+
|
| 39 |
+
## Quickstart
|
| 40 |
+
|
| 41 |
+
```python
|
| 42 |
+
# pip install "silva-scorer[backbone] @ git+https://github.com/Jannchie/silva"
|
| 43 |
+
from silva import SilvaScorer
|
| 44 |
+
|
| 45 |
+
scorer = SilvaScorer.from_pretrained("Jannchie/silva-aesthetic")
|
| 46 |
+
print(scorer.score("your_image.jpg")) # 0.73
|
| 47 |
+
print(scorer.score(["a.jpg", "b.jpg"])) # [0.73, 0.41]
|
| 48 |
+
```
|
| 49 |
+
|
| 50 |
+
Already have `google/siglip2-so400m-patch14-384` embeddings? Skip the backbone and score them directly:
|
| 51 |
+
|
| 52 |
+
```python
|
| 53 |
+
# pip install "silva-scorer @ git+https://github.com/Jannchie/silva"
|
| 54 |
+
from silva import EmbeddingAestheticModel
|
| 55 |
+
|
| 56 |
+
head = EmbeddingAestheticModel.from_pretrained("Jannchie/silva-aesthetic").eval()
|
| 57 |
+
score = head(embedding)["calibrated_score"] # calibrated to the label distribution; ["score"] for raw. embedding: [B, 1152] pooler_output
|
| 58 |
+
```
|
| 59 |
+
|
| 60 |
+
## Scores (held-out test split)
|
| 61 |
+
|
| 62 |
+
| Spearman | Pearson | MAE (1–5) | Top-5% |
|
| 63 |
+
|---|---|---|---|
|
| 64 |
+
| 0.7576 | 0.7496 | 0.6619 | 0.4206 |
|
| 65 |
+
|
| 66 |
+
Architecture: `embedding[1152] → LayerNorm → MLP [1024, 512, 256] → ordinal head`. Trained on one
|
| 67 |
+
person's private 1–5 ratings; labels and images not released. [Source](https://github.com/Jannchie/silva)
|