DEV Community

Cover image for ArtLine, Create Amazing Line Art Portraits
Vijish Madhavan
Vijish Madhavan

Posted on

ArtLine, Create Amazing Line Art Portraits

I am Vijish Madhavan, My experience is into marketing. Coding ka kida caught me last year.

This is just a fun project!!

Introducing Artline, A Deep Learning based project for creating line art portraits.

As I said it was just a fun project, but the response I got surprised me. The results seems to be state of the art comparing it to previous models like APDrawingGan and U-2-Net. You are free to judge as its opensource.

ArtLine, AI generated Line Art.
GitHub Link

Check out for pretty images, scroll through the repo link.

Gist of the project

Note: Being a newbie my code and documentation would be bad, I will improve with time.

Technical Details

Self-Attention ( Generator is pretrained UNET with spectral normalization and self-attention. Something that I got from Jason Antic's DeOldify(, this made a huge difference, all of a sudden I started getting proper details around the facial features.

Progressive Resizing (,( Progressive resizing takes this idea of gradually increasing the image size, In this project the image size were gradually increased and learning rates were adjusted. Thanks to for intrdoucing me to Progressive resizing, this helps the model to generalise better as it sees many more different images.

Generator Loss : Perceptual Loss/Feature Loss based on VGG16. (

Surprise!! No critic,No GAN. GAN did not make much of a difference so I was happy with No GAN.

You can follow me on twitter @Vijish68859437

Top comments (0)