Skip to content

leonelhs/zeroscratches

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zero Scratches

Old Photo Restoration

This is a lightweight implementation of Microsoft Bringing Old Photos Back to Life

Install

pip install zeroscatches

Basic usage

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

Some Apps using the library:

Face Shine Is a backend server for photo enhancement and restoration.

Super Face is a Python QT frontend for Face Shine server.

About

Old Photo Restoration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages