Add 8-bit scratch detector for Android (38 MB)
Browse files- .gitattributes +1 -0
- README.md +5 -1
- bopbtl_scratch_t384_xnnpack_int8.pte +3 -0
.gitattributes
CHANGED
|
@@ -41,3 +41,4 @@ lama_big_t512_coreml.pte filter=lfs diff=lfs merge=lfs -text
|
|
| 41 |
lama_big_t512_xnnpack.pte filter=lfs diff=lfs merge=lfs -text
|
| 42 |
realesrgan_x4v3_t256_coreml.pte filter=lfs diff=lfs merge=lfs -text
|
| 43 |
realesrgan_x4v3_t256_xnnpack.pte filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 41 |
lama_big_t512_xnnpack.pte filter=lfs diff=lfs merge=lfs -text
|
| 42 |
realesrgan_x4v3_t256_coreml.pte filter=lfs diff=lfs merge=lfs -text
|
| 43 |
realesrgan_x4v3_t256_xnnpack.pte filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
bopbtl_scratch_t384_xnnpack_int8.pte filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -27,7 +27,7 @@ not accurate enough, so iOS uses the XNNPACK files for them.
|
|
| 27 |
| File | Model | Purpose | Upstream license |
|
| 28 |
|---|---|---|---|
|
| 29 |
| `realesrgan_x4v3_t256_{xnnpack,coreml}.pte` | [Real-ESRGAN](https://github.com/xinntao/Real-ESRGAN) general x4v3 | 4x upscaling, 256 px tiles | BSD-3-Clause |
|
| 30 |
-
| `bopbtl_scratch_t384_{xnnpack,coreml}.pte` | Scratch detection from [Bringing Old Photos Back to Life](https://github.com/microsoft/Bringing-Old-Photos-Back-to-Life) | Finds scratches and tears, 384 px | MIT |
|
| 31 |
| `lama_big_t512_xnnpack.pte` | [LaMa](https://github.com/advimman/lama) (big-lama) | Inpaints the damage, 512 px tiles | Apache-2.0 |
|
| 32 |
| `ddcolor_paper_tiny_t512_xnnpack.pte` | [DDColor](https://github.com/piddnad/DDColor) tiny | Colorization, 512 px | Apache-2.0 |
|
| 33 |
|
|
@@ -47,6 +47,10 @@ as mathematically equivalent forms (verified against the upstream PyTorch models
|
|
| 47 |
|
| 48 |
## Notes
|
| 49 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
- The LaMa and DDColor weights were trained on Places365 and ImageNet respectively; those
|
| 51 |
datasets have their own terms of use for the images themselves.
|
| 52 |
- The Bringing Old Photos Back to Life repository states that its code and pretrained models
|
|
|
|
| 27 |
| File | Model | Purpose | Upstream license |
|
| 28 |
|---|---|---|---|
|
| 29 |
| `realesrgan_x4v3_t256_{xnnpack,coreml}.pte` | [Real-ESRGAN](https://github.com/xinntao/Real-ESRGAN) general x4v3 | 4x upscaling, 256 px tiles | BSD-3-Clause |
|
| 30 |
+
| `bopbtl_scratch_t384_{xnnpack,xnnpack_int8,coreml}.pte` | Scratch detection from [Bringing Old Photos Back to Life](https://github.com/microsoft/Bringing-Old-Photos-Back-to-Life) | Finds scratches and tears, 384 px | MIT |
|
| 31 |
| `lama_big_t512_xnnpack.pte` | [LaMa](https://github.com/advimman/lama) (big-lama) | Inpaints the damage, 512 px tiles | Apache-2.0 |
|
| 32 |
| `ddcolor_paper_tiny_t512_xnnpack.pte` | [DDColor](https://github.com/piddnad/DDColor) tiny | Colorization, 512 px | Apache-2.0 |
|
| 33 |
|
|
|
|
| 47 |
|
| 48 |
## Notes
|
| 49 |
|
| 50 |
+
- `bopbtl_scratch_t384_xnnpack_int8.pte` uses 8-bit weights with dynamically quantized
|
| 51 |
+
activations (38 MB instead of 150 MB). Its scratch masks match the float model with IoU 0.95
|
| 52 |
+
to 0.98 on test photos; the app uses it on Android.
|
| 53 |
+
|
| 54 |
- The LaMa and DDColor weights were trained on Places365 and ImageNet respectively; those
|
| 55 |
datasets have their own terms of use for the images themselves.
|
| 56 |
- The Bringing Old Photos Back to Life repository states that its code and pretrained models
|
bopbtl_scratch_t384_xnnpack_int8.pte
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:651299699f28ce2e7dedadcc4732137d7731d5cd3b21aeaa1395fbdfb8b232d5
|
| 3 |
+
size 37772036
|