├── .gitattributes ├── .gitignore ├── README.md ├── data ├── I2G_dataset.py ├── dataset_util.py ├── paired_dataset.py ├── paired_mask_dataset.py ├── processing │ ├── DeepFakeMask.py │ ├── aug_trans │ │ ├── __init__.py │ │ └── aug_trans.py │ ├── blend_utils │ │ ├── __init__.py │ │ ├── color_transfer.py │ │ ├── color_transfer_faceswap.py │ │ ├── faceBlending.py │ │ └── utils.py │ ├── celebahq_crop.py │ ├── export_tfrecord_to_img.py │ ├── faceforensics_process_frames.py │ ├── find_faces.py │ ├── glow_tf.py │ ├── pgan_tf.py │ └── sgan_tf.py ├── transforms.py └── unpaired_dataset.py ├── generate_I2G.py ├── img ├── I2G.png ├── MSA.png ├── PCL-Demo.png ├── PCL.png └── cat.png ├── models ├── __init__.py ├── base_model.py ├── basic_discriminator_model.py ├── networks │ ├── MultiHeadSelfAttention.py │ ├── PCL.py │ ├── customnet.py │ ├── netutils.py │ ├── networks.py │ └── xception.py ├── patch_discriminator_model.py └── patch_inconsistency_discriminator_model.py ├── options ├── base_options.py ├── test_options.py └── train_options.py ├── requirements.txt ├── resources └── splits │ ├── test.json │ ├── train.json │ └── val.json ├── scripts ├── preprocess.sh ├── test.sh └── train_PCL.sh ├── test.py ├── train.py ├── train_I2G.py └── utils ├── imutil.py ├── lightbox.html ├── logging.py ├── options.py ├── pbar.py ├── pidfile.py ├── renormalize.py ├── rfutil.py ├── show.py ├── tensorboard_utils.py ├── util.py └── visualizer.py /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/.gitattributes -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/README.md -------------------------------------------------------------------------------- /data/I2G_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/data/I2G_dataset.py -------------------------------------------------------------------------------- /data/dataset_util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/data/dataset_util.py -------------------------------------------------------------------------------- /data/paired_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/data/paired_dataset.py -------------------------------------------------------------------------------- /data/paired_mask_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/data/paired_mask_dataset.py -------------------------------------------------------------------------------- /data/processing/DeepFakeMask.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/data/processing/DeepFakeMask.py -------------------------------------------------------------------------------- /data/processing/aug_trans/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/data/processing/aug_trans/__init__.py -------------------------------------------------------------------------------- /data/processing/aug_trans/aug_trans.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/data/processing/aug_trans/aug_trans.py -------------------------------------------------------------------------------- /data/processing/blend_utils/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/data/processing/blend_utils/__init__.py -------------------------------------------------------------------------------- /data/processing/blend_utils/color_transfer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/data/processing/blend_utils/color_transfer.py -------------------------------------------------------------------------------- /data/processing/blend_utils/color_transfer_faceswap.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/data/processing/blend_utils/color_transfer_faceswap.py -------------------------------------------------------------------------------- /data/processing/blend_utils/faceBlending.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/data/processing/blend_utils/faceBlending.py -------------------------------------------------------------------------------- /data/processing/blend_utils/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/data/processing/blend_utils/utils.py -------------------------------------------------------------------------------- /data/processing/celebahq_crop.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/data/processing/celebahq_crop.py -------------------------------------------------------------------------------- /data/processing/export_tfrecord_to_img.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/data/processing/export_tfrecord_to_img.py -------------------------------------------------------------------------------- /data/processing/faceforensics_process_frames.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/data/processing/faceforensics_process_frames.py -------------------------------------------------------------------------------- /data/processing/find_faces.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/data/processing/find_faces.py -------------------------------------------------------------------------------- /data/processing/glow_tf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/data/processing/glow_tf.py -------------------------------------------------------------------------------- /data/processing/pgan_tf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/data/processing/pgan_tf.py -------------------------------------------------------------------------------- /data/processing/sgan_tf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/data/processing/sgan_tf.py -------------------------------------------------------------------------------- /data/transforms.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/data/transforms.py -------------------------------------------------------------------------------- /data/unpaired_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/data/unpaired_dataset.py -------------------------------------------------------------------------------- /generate_I2G.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/generate_I2G.py -------------------------------------------------------------------------------- /img/I2G.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/img/I2G.png -------------------------------------------------------------------------------- /img/MSA.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/img/MSA.png -------------------------------------------------------------------------------- /img/PCL-Demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/img/PCL-Demo.png -------------------------------------------------------------------------------- /img/PCL.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/img/PCL.png -------------------------------------------------------------------------------- /img/cat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/img/cat.png -------------------------------------------------------------------------------- /models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/models/__init__.py -------------------------------------------------------------------------------- /models/base_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/models/base_model.py -------------------------------------------------------------------------------- /models/basic_discriminator_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/models/basic_discriminator_model.py -------------------------------------------------------------------------------- /models/networks/MultiHeadSelfAttention.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/models/networks/MultiHeadSelfAttention.py -------------------------------------------------------------------------------- /models/networks/PCL.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/models/networks/PCL.py -------------------------------------------------------------------------------- /models/networks/customnet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/models/networks/customnet.py -------------------------------------------------------------------------------- /models/networks/netutils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/models/networks/netutils.py -------------------------------------------------------------------------------- /models/networks/networks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/models/networks/networks.py -------------------------------------------------------------------------------- /models/networks/xception.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/models/networks/xception.py -------------------------------------------------------------------------------- /models/patch_discriminator_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/models/patch_discriminator_model.py -------------------------------------------------------------------------------- /models/patch_inconsistency_discriminator_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/models/patch_inconsistency_discriminator_model.py -------------------------------------------------------------------------------- /options/base_options.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/options/base_options.py -------------------------------------------------------------------------------- /options/test_options.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/options/test_options.py -------------------------------------------------------------------------------- /options/train_options.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/options/train_options.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/requirements.txt -------------------------------------------------------------------------------- /resources/splits/test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/resources/splits/test.json -------------------------------------------------------------------------------- /resources/splits/train.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/resources/splits/train.json -------------------------------------------------------------------------------- /resources/splits/val.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/resources/splits/val.json -------------------------------------------------------------------------------- /scripts/preprocess.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/scripts/preprocess.sh -------------------------------------------------------------------------------- /scripts/test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/scripts/test.sh -------------------------------------------------------------------------------- /scripts/train_PCL.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/scripts/train_PCL.sh -------------------------------------------------------------------------------- /test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/test.py -------------------------------------------------------------------------------- /train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/train.py -------------------------------------------------------------------------------- /train_I2G.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/train_I2G.py -------------------------------------------------------------------------------- /utils/imutil.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/utils/imutil.py -------------------------------------------------------------------------------- /utils/lightbox.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/utils/lightbox.html -------------------------------------------------------------------------------- /utils/logging.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/utils/logging.py -------------------------------------------------------------------------------- /utils/options.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/utils/options.py -------------------------------------------------------------------------------- /utils/pbar.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/utils/pbar.py -------------------------------------------------------------------------------- /utils/pidfile.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/utils/pidfile.py -------------------------------------------------------------------------------- /utils/renormalize.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/utils/renormalize.py -------------------------------------------------------------------------------- /utils/rfutil.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/utils/rfutil.py -------------------------------------------------------------------------------- /utils/show.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/utils/show.py -------------------------------------------------------------------------------- /utils/tensorboard_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/utils/tensorboard_utils.py -------------------------------------------------------------------------------- /utils/util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/utils/util.py -------------------------------------------------------------------------------- /utils/visualizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhaotingc/PCL-I2G/HEAD/utils/visualizer.py --------------------------------------------------------------------------------