Spaces:
Sleeping
Sleeping
init app
Browse files
README.md
CHANGED
@@ -1,43 +1,13 @@
|
|
1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
license: mit
|
3 |
---
|
4 |
|
5 |
-
|
6 |
-
## Old Photo Restoration
|
7 |
-
|
8 |
-
This is a lightweight implementation of [Microsoft Bringing Old Photos Back to Life](https://github.com/microsoft/Bringing-Old-Photos-Back-to-Life)
|
9 |
-
|
10 |
-
|
11 |
-
### Install
|
12 |
-
```shell
|
13 |
-
pip install zeroscatches
|
14 |
-
```
|
15 |
-
### Basic usage
|
16 |
-
```python
|
17 |
-
|
18 |
-
import PIL.Image
|
19 |
-
from zeroscratches import EraseScratches
|
20 |
-
|
21 |
-
|
22 |
-
image_path = "/path/to/image-scratched.jpg"
|
23 |
-
eraser = EraseScratches()
|
24 |
-
|
25 |
-
image = PIL.Image.open(image_path)
|
26 |
-
new_img = eraser.erase(image)
|
27 |
-
|
28 |
-
new_img = PIL.Image.fromarray(new_img)
|
29 |
-
new_img.show()
|
30 |
-
```
|
31 |
-
|
32 |
-
Get the pretrained models at [Hugging Face Zero Scratches](https://huggingface.co/leonelhs/zeroscratches)
|
33 |
-
|
34 |
-
## Some Apps using the library:
|
35 |
-
|
36 |
-
### [Face Shine](https://github.com/leonelhs/face-shine)
|
37 |
-
Face Shine Is a backend server for photo enhancement and restoration.
|
38 |
-
|
39 |
-
### [Super Face](https://github.com/leonelhs/SuperFace/)
|
40 |
-
Super Face is a Python QT frontend for Face Shine server.
|
41 |
-
|
42 |
-
<img src="https://drive.google.com/uc?export=view&id=1D7hpjQSlUkzfTba-E5Ul4Rb1c8lYkFj5"/>
|
43 |
-
<img src="https://drive.google.com/uc?export=view&id=1oKpJe-Ff3SeEekhGVRP1Ap3eIFqt0c8u"/>
|
|
|
1 |
---
|
2 |
+
title: Zero Scratches
|
3 |
+
emoji: π
|
4 |
+
colorFrom: yellow
|
5 |
+
colorTo: green
|
6 |
+
sdk: gradio
|
7 |
+
sdk_version: 3.26.0
|
8 |
+
app_file: app.py
|
9 |
+
pinned: false
|
10 |
license: mit
|
11 |
---
|
12 |
|
13 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|