update .gitignore
本项目基于 Jittor 深度学习框架,在数字图片数据集 MNIST 上训练 Conditional GAN 模型,通过输入一个随机向量 z 和额外的辅助信息 y (如类别标签),生成特定数字的图像。
运行前请确保运行环境已经安装了 jittor,安装命令如下:
jittor
python -m pip install jittor
python CGAN.py
成功运行后,会生成 CGAN.py 中的 number 对应的数字图片 result.png。
CGAN.py
number
result.png
例如,number = "20700232065110" ,那么生成的 result.png 为:
number = "20700232065110"
A Jittor implementation of Conditional GAN (CGAN)
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
CGAN_jittor
项目简介
本项目基于 Jittor 深度学习框架,在数字图片数据集 MNIST 上训练 Conditional GAN 模型,通过输入一个随机向量 z 和额外的辅助信息 y (如类别标签),生成特定数字的图像。
环境配置
运行前请确保运行环境已经安装了
jittor
,安装命令如下:运行方式
运行结果实例
成功运行后,会生成
CGAN.py
中的number
对应的数字图片result.png
。例如,
number = "20700232065110"
,那么生成的result.png
为: