https://github.com/leonelhs/zeroscratches
Old Photo Restoration
https://github.com/leonelhs/zeroscratches
Last synced: 5 months ago
JSON representation
Old Photo Restoration
- Host: GitHub
- URL: https://github.com/leonelhs/zeroscratches
- Owner: leonelhs
- License: mit
- Created: 2023-06-06T03:15:56.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-05-25T01:55:50.000Z (about 1 year ago)
- Last Synced: 2025-11-29T07:47:54.030Z (7 months ago)
- Language: Python
- Size: 43 KB
- Stars: 22
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Zero Scratches
## Old Photo Restoration
This is a lightweight implementation of [Microsoft Bringing Old Photos Back to Life](https://github.com/microsoft/Bringing-Old-Photos-Back-to-Life)
### Install
```shell
pip install zeroscratches
```
### Basic usage
```python
import PIL.Image
from zeroscratches import EraseScratches
image_path = "/path/to/image-scratched.jpg"
eraser = EraseScratches()
image = PIL.Image.open(image_path)
new_img = eraser.erase(image)
new_img = PIL.Image.fromarray(new_img)
new_img.show()
```
Get the pretrained models at [Hugging Face Zero Scratches](https://huggingface.co/leonelhs/zeroscratches)
## Some Apps using the library:
### [Face Shine](https://github.com/leonelhs/face-shine)
Face Shine Is a backend server for photo enhancement and restoration.
### [Super Face](https://github.com/leonelhs/SuperFace/)
Super Face is a Python QT frontend for Face Shine server.