1 Star 0 Fork 0

deeplearningrepos/CycleGAN-TensorFlow

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 1.43 KB
一键复制 编辑 原始数据 按行查看 历史
Van Huy 提交于 2017-05-08 23:17 +08:00 . Fix indentation
# set hyperparameters here
BATCH_SIZE = 1
IMAGE_SIZE = 256
NGF = 64
X = apple
Y = orange
# for export_graph: default is the lastest checkpoint
CHECKPOINT_DIR = checkpoints/`ls checkpoints | tail -n 1`
# for inference
INPUT_IMG = input_sample.jpg
OUTPUT_IMG = output_sample.jpg
MODEL = $(X)2$(Y).pb
# commands come here
download_data:
bash download_dataset.sh $(X)2$(Y)
build_data:
python3 build_data.py --X_input_dir=data/$(X)2$(Y)/trainA \
--Y_input_dir=data/$(X)2$(Y)/trainB \
--X_output_file=data/tfrecords/$(X).tfrecords \
--Y_output_file=data/tfrecords/$(Y).tfrecords
train:
python3 train.py --batch_size=$(BATCH_SIZE) \
--image_size=$(IMAGE_SIZE) \
--ngf=$(NGF) \
--X=data/tfrecords/$(X).tfrecords \
--Y=data/tfrecords/$(Y).tfrecords
export_graph:
python3 export_graph.py --checkpoint_dir=$(CHECKPOINT_DIR) \
--XtoY_model=$(X)2$(Y).pb \
--YtoX_model=$(Y)2$(X).pb \
--image_size=$(IMAGE_SIZE)
inference:
python3 inference.py --model=$(MODEL)\
--input=$(INPUT_IMG) \
--output=$(OUTPUT_IMG) \
--image_size=$(IMAGE_SIZE)
tensorboard:
tensorboard --logdir=$(CHECKPOINT_DIR)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/deeplearningrepos/CycleGAN-TensorFlow.git
git@gitee.com:deeplearningrepos/CycleGAN-TensorFlow.git
deeplearningrepos
CycleGAN-TensorFlow
CycleGAN-TensorFlow
master

搜索帮助