Publish FocalNet checkpoints, model card, and examples
Browse files- .gitattributes +1 -0
- README.md +19 -4
- images/golden-retriever-center.jpg +0 -0
- images/golden-retriever-focalnet.jpg +0 -0
- images/golden-retriever-original.jpg +3 -0
- images/portrait-focalnet.jpg +0 -0
- images/portrait-original.jpg +0 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
images/golden-retriever-original.jpg filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -14,14 +14,29 @@ base_model: timm/repvit_m0_9
|
|
| 14 |
|
| 15 |
Appwrite FocalNet is a compact vision model for content-aware image cropping. It
|
| 16 |
predicts a 64×64 importance map, then ranks crop candidates with a small
|
| 17 |
-
composition head trained on human preferences.
|
| 18 |
-
|
| 19 |
-
This is **not** Microsoft FocalNet (the hierarchical attention backbone in
|
| 20 |
-
`timm`). Training code lives in [appwrite/focalnet](https://github.com/appwrite/focalnet).
|
| 21 |
|
| 22 |
The reference RepViT-M0.9 ranker has 4.76 million parameters. The published
|
| 23 |
`focalnet-human.onnx` artifact is 19.45 MiB in FP32.
|
| 24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
## Files
|
| 26 |
|
| 27 |
| File | Role | SHA-256 |
|
|
|
|
| 14 |
|
| 15 |
Appwrite FocalNet is a compact vision model for content-aware image cropping. It
|
| 16 |
predicts a 64×64 importance map, then ranks crop candidates with a small
|
| 17 |
+
composition head trained on human preferences. Training code lives in
|
| 18 |
+
[appwrite/focalnet](https://github.com/appwrite/focalnet).
|
|
|
|
|
|
|
| 19 |
|
| 20 |
The reference RepViT-M0.9 ranker has 4.76 million parameters. The published
|
| 21 |
`focalnet-human.onnx` artifact is 19.45 MiB in FP32.
|
| 22 |
|
| 23 |
+
## Examples
|
| 24 |
+
|
| 25 |
+
These photographs come from [Autogravity](https://github.com/appwrite/autogravity).
|
| 26 |
+
A centered 1:1 crop of the park scene keeps grass. FocalNet keeps the dog.
|
| 27 |
+
|
| 28 |
+

|
| 29 |
+
|
| 30 |
+
| Center crop | FocalNet 1:1 |
|
| 31 |
+
| --- | --- |
|
| 32 |
+
|  |  |
|
| 33 |
+
|
| 34 |
+
On a wide portrait it tightens around the face instead of the torso.
|
| 35 |
+
|
| 36 |
+
| Source | FocalNet 1:1 |
|
| 37 |
+
| --- | --- |
|
| 38 |
+
|  |  |
|
| 39 |
+
|
| 40 |
## Files
|
| 41 |
|
| 42 |
| File | Role | SHA-256 |
|
images/golden-retriever-center.jpg
ADDED
|
images/golden-retriever-focalnet.jpg
ADDED
|
images/golden-retriever-original.jpg
ADDED
|
Git LFS Details
|
images/portrait-focalnet.jpg
ADDED
|
images/portrait-original.jpg
ADDED
|