Prepares A-B outlined vs. actual images for pix2pix training
git clone https://github.com/simonpinkas/pix2pix_outliner.git
cd pix2pix_outliner
pip install matplotlib
pip install opencv-python
- Add images to the 'original' folder
- Adjust script to fit your dataset (number of samples, width, height, threshold)
- Run the following:
python pix2pix_outliner.py
- Output images will be available in 'train', 'val' and 'test' directories.
- Use with pix2pix-tensorflow