Skip to content

Normalize rasterization line-drawings to uniform width using deep learning.

License

Notifications You must be signed in to change notification settings

killsking/LineNormalizer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LineNormalizer

Overview

Normalize rasterization line-drawings to uniform width using deep learning with model from Smart Inker.

This model can serve as line-drawings preprocessor for LineRelifer. Line-drawings can be normlized to an intermediate representation and then be used as training data or input for it. Also by using this method, we can achieve uniform line width during scaling up or down the rasterization line-drawings, which is a feature of vector line-drawings. The train data is generated by code, so you can get model for any width easily.

Dependencies

  • Keras2 (Tensorflow backend)
  • OpenCV3
  • CairoSVG

Usage

  1. Set up directories.

  2. Download the model from release and put it in the same folder with code.

  3. Run predict.py for prediction. Run model{NUM}.py for train.

Models

Models are licensed under a CC-BY-NC-SA 4.0 international license.

From Project HAT by Hepesu With ❤️

About

Normalize rasterization line-drawings to uniform width using deep learning.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%