torstendittmann commited on
Commit
b70efa7
·
verified ·
1 Parent(s): 66d104d

Publish FocalNet checkpoints, model card, and examples

Browse files
.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
+ ![Golden retriever sitting on the left side of a park](images/golden-retriever-original.jpg)
29
+
30
+ | Center crop | FocalNet 1:1 |
31
+ | --- | --- |
32
+ | ![Centered crop of empty grass](images/golden-retriever-center.jpg) | ![FocalNet crop keeping the dog](images/golden-retriever-focalnet.jpg) |
33
+
34
+ On a wide portrait it tightens around the face instead of the torso.
35
+
36
+ | Source | FocalNet 1:1 |
37
+ | --- | --- |
38
+ | ![Portrait in a courtyard](images/portrait-original.jpg) | ![FocalNet crop around the face](images/portrait-focalnet.jpg) |
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

  • SHA256: 441aa7f9e2f8dfea30c3716fc8e607d5ee95b95ce43eb392e7c0d708e96965b8
  • Pointer size: 131 Bytes
  • Size of remote file: 123 kB
images/portrait-focalnet.jpg ADDED
images/portrait-original.jpg ADDED