🌟 A Conditional Generative Adversarial Network (cGAN) implemented using Jittor, designed for generating digit images on the MNIST dataset. Control the generated images via conditional input (class labels), combined with custom data augmentation and training strategies.
📚 Overview
This project implements a simple yet powerful Conditional GAN focusing on generating handwritten digit images on the MNIST dataset. The model architecture includes:
Generator: Transforms random noise and digit labels into realistic digit images.
Discriminator: Determines the authenticity of input images along with their corresponding labels.
Powered by Jittor framework for dynamic computation graphs and auto-differentiation.
🛠️ Installation
1️⃣ Clone this repository:
git clone https://www.gitlink.org.cn/guanning/cgan
cd cgan
2️⃣ Install dependencies:
pip install jittor
3️⃣ (Optional) To enable GPU support:
import jittor as jt
if jt.has_cuda:
jt.flags.use_cuda = 1
🖼️ Jittor Conditional GAN (cGAN)
🌟 A Conditional Generative Adversarial Network (cGAN) implemented using Jittor, designed for generating digit images on the MNIST dataset. Control the generated images via conditional input (class labels), combined with custom data augmentation and training strategies.
📚 Overview
This project implements a simple yet powerful Conditional GAN focusing on generating handwritten digit images on the MNIST dataset. The model architecture includes:
🛠️ Installation
1️⃣ Clone this repository:
2️⃣ Install dependencies:
3️⃣ (Optional) To enable GPU support:
🚀 Usage
1️⃣ Train the model:
2️⃣ Generate digit images:
1000.png
).result.png
, showcasing multiple digits.🏗️ Model Architecture
🎨 Generator
🔍 Discriminator
📂 Project Structure