Update README.md
本项目使用Jittor深度学习框架,在数字图片数据集MNIST训练了一个将随机噪声和类别标签映射为数字图片的Conditional GAN模型,生成指定数字序列对应的图片。
运行程序需要安装Jittor框架,具体方法如下,同时可参考https://cg.cs.tsinghua.edu.cn/jittor/download/。
sudo apt install python3.7-dev libomp-dev python3.7 -m pip install jittor python3.7 -m jittor.test.test_example python -m jittor_utils.install_cuda
brew install python@3.7 onednn libomp python3.7 -m pip install jittor python3.7 -m jittor.test.test_example
python --version python -m pip install jittor python3.7 -m jittor.test.test_example
CGAN.py
number
number = '***想要生成的数字序列***'
python3 CGAN.py
python CGAN.py
result.png
“20834462078509”数字序列的生成结果为:
本项目基于Jittor深度学习框架以及第四届计图人工智能挑战赛提供的示例代码搭建。
A Jittor implementation of Conditional GAN (CGAN)
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
CGAN_Jittor
项目简述
本项目使用Jittor深度学习框架,在数字图片数据集MNIST训练了一个将随机噪声和类别标签映射为数字图片的Conditional GAN模型,生成指定数字序列对应的图片。
安装说明
运行环境
Jittor安装
运行程序需要安装Jittor框架,具体方法如下,同时可参考https://cg.cs.tsinghua.edu.cn/jittor/download/。
Linux(pip安装)
macOS
Windows
运行说明
CGAN.py
第201行number
为想要生成的数字序列(字符串类型);CGAN.py
;Linux/macOS
Windows
result.png
即为最终生成结果。运行示例
“20834462078509”数字序列的生成结果为:
致谢
本项目基于Jittor深度学习框架以及第四届计图人工智能挑战赛提供的示例代码搭建。