目录
目录README.md

CGAN_jittor

**This is a repo for training CGAN model based on jittor. You may use it as a practice on how to get start with jittor. **

Introduction

This repo provides a digital image dataset, MNIST, and you can train a Conditional GAN model that maps random noise and category labels to digital images, and use it to generate any input numbers you like.

A sample code framework is provided in ./warm_up_competition, offering data download, model definition, training steps and other functions.

An example generated by Conditional GAN is as the following (with phone number as input):

result.png

Installing

To run the model, please follow the instructions below:

# Clone the repo to local
git clone https://github.com/Jittor/gan-jittor.git
cd gan-jittor
# Install the pakages required
sudo python3 -m pip install -r requirements.txt
cd warm_up_competition
# Run the CGAN model !
python3 CGAN.py

Structure

The descriptions about each directory are as the following:

–CGAN_jittor (root)

  1. –assets: contains the graphs used for model training
  2. –data: contains the scripts for downloading specific datasets
  3. –model: contains all the models that might be used for training
  4. –warm_up_competition: contains the main code CGAN.py; results will also be put into this directory

Other Usage

Besides running the Conditional GAN model, there are also several models provided in directory “models”, and they can all be trained by yourself! Explore them now! The introduction to this part can be find in “./models/README.md”

关于

A Jittor implementation of Conditional GAN (CGAN)

24.8 MB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号