Git Product home page Git Product logo

cartoongan-pytorch's Introduction

Description

This is an implementation of CartoonGAN. We provide both ".py" and "ipynb" version for tha training. The testing file will be uploaded soon.

Reference

We got greate inspiration from ComixGAN, and we used the implementation from this repository for blurring the comic images.

How to Start?

Firstly, prepare your datasets.

datasets
  ├─comic
  │  ├─001.jpg
  │  ├─002.jpg
  │  ├─...
  │  └─xxx.jpg
  ├─comic_blurred
  └─real
     ├─001.jpg
     ├─002.jpg
     ├─...
     └─xxx.jpg

Secondly, blur the comic images.

python comic_blurring.py

Attention

You need to delete the tmp.txt in the three sub-dir in datasets before you save images in the corresponding directories.

Train

run python train3.py to start training. The Training consists of three parts, which is inspired by ComixGAN, they are

1) Pretrain the Generator to reconstruct the input clear comic images;
2) Pretrain the Discriminator to distinguish images among comic, blurred comic and real images;
** we use LSGAN instead.
3) Adversarially train both the Generator and Discriminator.

Some Results

Note that because of the portraiture right of some real images, we just display the cartoonized results of some data. alt sample_1 alt sample_1 alt sample_1 alt sample_1 alt sample_1 alt sample_1 alt sample_1 alt sample_1

cartoongan-pytorch's People

Contributors

nevergiveu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cartoongan-pytorch's Issues

some questions

Thank you very much for sharing, I have some questions.

  1. What are the specific experimental environments, and you want to train yourself to see the effect.
  2. How was the training set obtained and how many cartoons were used

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.