← Open Source
mnicnc404

CartoonGan-tensorflow

Generate your own cartoon-style images with CartoonGAN (CVPR 2018), powered by TensorFlow 2.0 Alpha.

Model DevelopmentArchitecturePython
Open on GitHub
Momentum
+0stars in 24 hours0.0%
937
Stars
238
Forks
+0
This week
3
Contributors
Created 2019-02-16 · Updated 2026-10-08 · #12524 today
Top developers

mnicnc404/CartoonGan-tensorflow is ranked 12,524 with 937 stars.

Same-category comparison

mnicnc404/CartoonGan-tensorflow is ranked 12,524 among these 8 peers; eaplatanios/tensorflow_scala is ranked 12,521.

Same-category comparison
NameRankMetrics
mst272/LLM-Dojo12,515
Language:
Python
Stars:
938
Forks:
85
qiaoguan/deep-ctr-prediction12,517
Language:
Python
Stars:
938
Forks:
277
Farama-Foundation/Shimmy12,519
Language:
Python
Stars:
937
Forks:
32
Description:
PettingZoo and Gymnasium bindings for popular reinforcement learning environments outside of Farama.
eaplatanios/tensorflow_scala12,521
Language:
Scala
Stars:
937
Forks:
89
Description:
TensorFlow API for the Scala Programming Language.
acbull/pyHGT12,529
Language:
Python
Stars:
936
Forks:
173
Description:
Code for "Heterogeneous Graph Transformer" (WWW'20), which is based on pytorch_geometric.
baal-org/baal12,530
Language:
Python
Stars:
936
Forks:
91
Description:
Bayesian active learning library for research and industrial usecases.
ImprintLab/Medical-SAM212,540
Language:
Python
Stars:
934
Forks:
139
Description:
Medical SAM 2: Segment 3D Medical Images Via Segment Anything Model 2.
benedekrozemberczki/graph2vec12,541
Language:
Python
Stars:
934
Forks:
165
Description:
A parallel implementation of "graph2vec: Learning Distributed Representations of Graphs" (MLGWorkshop 2017).
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguagePython
CategoryModel Development
SubcategoryArchitecture
KeywordsImage production
Stars937
Forks238
Contributors3
Created date2019-02-16
Updated date2026-10-08
Stars in 1 day0
Stars in 7 days0
Rank12,524
Previous rank12,447
Rank change-77
7-day stars rank13,471
Previous 7-day stars rank13,481
7-day stars rank change10
Total stars rank11,711
Previous total stars rank11,694
Total stars rank change-17
CountryTaiwan
README summary

This repo is no longer being maintained. To reproduce the result, please 100% follow the instructions including environment settings and training commands. CartoonGAN-TensorFlow2 Generate your own cartoon-style images with CartoonGAN (CVPR 2018), powered by TensorFlow 2. This repo demonstrates how to: Train your own CartoonGAN Generate anime using trained CartoonGAN Train your own CartoonGAN In this section, we will explain how to train a CartoonGAN using the script we provide. Setup Environment First clone this repo: To run

code in this repo properly, you will need: Python 3. 0 Alpha tqdm imageio tb-nightly For environment management, we recommend Conda. You can get by installing Anaconda or Miniconda. You can install all the packages by running the following commands: If Anaconda is not available, you can also run: You will also need TensorFlow version of keras-contrib for some custom Keras layers used in our CartoonGAN implementation: If all above complete successfully, you're good to go. Prepare Dataset

You also need to prepare your own dataset and arrange the images under folder as below: and folders contain real-world images, while contain images with desired cartoon style. Notice that 8 images in folder will be evaluated after each epoch, so they should not appear in . In order to generate , you can run : smooth. py credit to taki0112 Start training Although you may have to tune hyperparameters to generate best result for your own datasets, train following settings that

we found effective can be your starting point. If you get more than 16GB memory in your GPU, you can try these settings (Note that indicates that we are training GAN with a light-weight generator): Note that is for (source). If your GPU does not have 16GB memory, you can use a smaller and use lower learning rates accordingly. For example, for , you can try: Detailed log messages, model architecture and progress bar are all provided. This enable you

to gain a better understanding of what is happening when training a CartoonGAN. Choose model architecture Notice that we specified in our previous example: When specified, train. py will initialize a light-weight generator for training a CartoonGAN. When we design the light-weight generator, ShuffleNet V2 is taken as our reference. This generator is designed to minimalize inference time while achieving similar effect. We will make some minor adjustments to discriminator as well when is specified. Generator proposed by

the original CartoonGAN authors To train a CartoonGAN with the original generator/discriminator architecture proposed by the CartoonGAN authors, simply remove option: Monitor your training progress In our repo, TensorBoard is integrated perfectly so you can monitor model's performance easily by: After training for awhile, you should be able to see something like this: In addition to metrics and loss functions, it is good practice to keep an eye on the images generated by GAN during training as well. Using

our script, monitoring generated images on TensorBoard is a no-brainer: For further details about training, we recommend reading train.

Frequently asked questions

How many stars and forks are recorded?

mnicnc404/CartoonGan-tensorflow has 937 stars and 238 forks.

What is the repository rank?

mnicnc404/CartoonGan-tensorflow is ranked 12,524.

What language and category are recorded?

mnicnc404/CartoonGan-tensorflow has 937 stars, uses Python and belongs to Model Development.

Which repository is closest in rank?

mnicnc404/CartoonGan-tensorflow is compared with eaplatanios/tensorflow_scala, ranked 12,521 with 937 stars.

Nearby in the ranking
Similar items