Giter Club home page Giter Club logo

qmupd's Introduction

Quality Metric Guided Portrait Line Drawing Generation from Unpaired Training Data

We provide PyTorch implementations for our TPAMI paper "Quality Metric Guided Portrait Line Drawing Generation from Unpaired Training Data". paper

Our method can (1) learn to generate high quality portrait drawings in multiple styles using a single network and (2) generate portrait drawings in a “new style” unseen in the training data.

Our Proposed Framework

Sample Results

Prerequisites

  • Linux or macOS
  • Python 3
  • CPU or NVIDIA GPU + CUDA CuDNN

Installation

  • To install the dependencies, run
pip install -r requirements.txt

Quick Test (apply a pretrained model, generate high quality portrait drawings in multiple styles using a single network)

    1. Download pre-trained models from BaiduYun(extract code:g8is) or GoogleDrive and rename the folder to checkpoints/.
    1. Test for example photos: generate artistic portrait drawings for example photos in the folder ./examples using
python test_seq_style3.py

The test results will be saved to html files here: ./results/QMUPD_model/test_200/indexstyle*.html. The result images are saved in ./results/QMUPD_model/test_200/imagesstyle*, where real, fake, correspond to input face photo, synthesized drawing of a certain style, respectively.

You can contact email [email protected] for any questions.

Citation

If you use this code for your research, please cite our paper.

@article{YiLLR22,
  title     = {Quality Metric Guided Portrait Line Drawing Generation from Unpaired Training Data},
  author    = {Yi, Ran and Liu, Yong-Jin and Lai, Yu-Kun and Rosin, Paul L},
  journal   = {IEEE Transactions on Pattern Analysis and Machine Intelligence},
  year      = {DOI (identifier)  10.1109/TPAMI.2022.3147570, 2022},
}

Acknowledgments

Our code is inspired by pytorch-CycleGAN-and-pix2pix.

qmupd's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.