A Tensorflow implementation of Pix2Pix
Original paper: Image-to-Image Translation with Conditional Adversarial Networks (pix2pix)
Paper Authors and Researchers: Phillip Isola, Jun-Yan Zhu, Tinghui Zhou, Alexei A. Efros
Dataset face2comics - Author: Alex (Sxela)
- Github: Nguyendat-bit
- Email: nduc0231@gmail
- Linkedin: Đạt Nguyễn Tiến
- python >= 3.9
- numpy >= 1.20.3
- tensorflow >= 2.7.0
- opencv >= 4.5.4
- matplotlib >= 3.4.3
Training script:
python train.py --all-train ${link_to_train_A_folder} \
--all-train ${link_to_train_B_folder} --epochs ${epochs}
--bone ${bone} --weights ${weights} --pretrain ${pretrain} \
--batch-size ${batch_size} --rotation ${rotation} \
--random-brightness ${random_brightness} --image-size ${image-size}
Example:
python train.py --all-train face/*.jpg --all-train comics/*.jpg \
--bone resunet50_unet --weights imagenet --pretrain True --epochs 10 --batch-size 8 --rotation 60 --random-brightness True --image-size 256
There are some important arguments for the script you should consider when running it:
all-train
: The folder of training databatch-size
: The batch size of the datasetimage-size
: The image size of the dataset
If you meet any issues when using this library, please let us know via the issues submission tab.