CycleGAN-and-pix2pix 环境搭建步骤
程序员文章站
2023-11-28 16:11:16
CycleGAN and pix2pix in PyTorchLinux系统下conda的安装与使用git链接conda create -n cycleGan python=3.5.5conda activate cycleGan [pip 源配置](https://blog.csdn.net/sinat_28442665/article/details/86651609)pip install -r requirements.txt......
CycleGAN and pix2pix in PyTorch
Linux下cuda9.1安装Pytorch和Torchvision
conda create -n pix2pix python=3.6.5
pip install torch==1.1.0
pip install pillow
pip install torchvision==0.3.0
pip install dominate
pip install visdom
- 测试
按照 git上的教程,下载对应数据集之后,运行 :
python test.py --dataroot datasets/horse2zebra/testA --name horse2zebra_pretrained --model test --no_dropout
发现:cycleGan-pix2pix/results 目录下生成对应的结果文件夹,查看效果即可
本文地址:https://blog.csdn.net/sinat_28442665/article/details/106999087