AMD Ryzen 7 1700 Eight-Core Processor 3.00GHz,
NVIDIA GeForce GTX 1070
Windows 10(64 bit),
Visual studio 2015 (v140)
GPU, cuda_9.0, cudnn-9.0
Anaconda,
Python35,
TensorFlow,
Pix2pix
参照 https://www.kunihikokaneko.com/dblab/tensorflow/pix2pix.html https://affinelayer.com/pix2pix/ https://github.com/affinelayer/pix2pix-tensorflow
Anaconda prompt conda create -n Python35TensorFlowGPU python=3.5 anaconda activate Python35TensorFlowGPU
activate Python35TensorFlowGPU pip install --ignore-installed --upgrade tensorflow-gpu
https://www.imagemagick.org/script/download.php#windows
ImageMagick-7.0.7-32-Q8-x64-dll.exe
activate Python35TensorFlowGPU
python tools\download-dataset.py facades train val test 推荐比例是8:1:1
Anaconda prompt CD D:\pix2pix-tensorflow-master
python pix2pix.py --mode train --output_dir facades_train --max_epochs 200 --input_dir facades\train --which_direction BtoA
python pix2pix.py --mode test --output_dir facades_test --input_dir facades/val --checkpoint facades_train
##概要図
用photoshop来做Mask处理
split_image_64.sh
join_XXXXXX_0000000.sh
python pix2pix.py --mode test --input_file 111111_1111111.jpg --checkpoint
merge.py