Skip to content

radu-b/dl-antialiasing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Antialias with Deep Learning

Adds antialiasing (smooth edges) to an image containing black & white (1-bit) drawings and text.

Here are some examples, which are ideally viewed without browser scaling. They show the B&W image, followed by the algorithm output, followed by the ground truth (original image, with proper antialiasing):

Input Output Truth

Input Output Truth

Input Output Truth

Details

The algorithm uses a UNet based on ResNet18.

Running

Requires Python 3.7, pytorch 1.3.0, fastai 1.0, Pillow 3.1.

The script src/generate_images.py will generate training images in data/train.

Then you can use src/fai_learner.py to train the model and process the test images from data/test.

About

Antialiasing with DL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages