CycleGAN
我的设备:
- 操作系统 Mac OS 11.6 Bigsur
- 图形卡 Intel HD Graphics 6000 1536 MB
- homebrew(一个包管理工具)
需要安装的环境:
- torch及其依赖LuaJIT等
- CycleGAN
开始!
先安装torch(macOS的方式)
通过运行以下三个命令,可以将 Torch 安装到 ~/torch 中的主文件夹:
# in a terminal, run the commands WITHOUT sudo
git clone https://github.com/torch/distro.git ~/torch --recursive
cd ~/torch; bash install-deps;
./install.sh
验证是否安装成功
直接运行th
,会出现以下界面
另外,在安装过程中可能因为网络问题丢失了部分包,需要重新安装;下边是删除torch的方法
# 清除临时编译文件 ~/torch
./clean.sh
# cd出来
rm -rf ~/torch
安装CycleGAN
官方库CycleGAN
- 安装torch的三个依赖包
nngraph
,class
,display