├── LICENSE ├── README.md ├── data ├── __init__.py ├── base_dataset.py ├── image_folder.py ├── single_dataset.py ├── singleimage_dataset.py ├── template_dataset.py └── unaligned_dataset.py ├── datasets ├── bibtex │ ├── cityscapes.tex │ ├── facades.tex │ ├── handbags.tex │ ├── shoes.tex │ └── transattr.tex ├── combine_A_and_B.py ├── detect_cat_face.py ├── download_cut_dataset.sh ├── download_pix2pix_dataset.sh ├── make_dataset_aligned.py └── prepare_cityscapes_dataset.py ├── docs └── datasets.md ├── environment.yml ├── experiments ├── __init__.py └── __main__.py ├── imgs ├── DCLGAN_slide.pptx ├── dclgan.png ├── han_dualcontrastive.pdf ├── results.png ├── results2.png └── table.png ├── models ├── __init__.py ├── base_model.py ├── cut_model.py ├── cycle_gan_model.py ├── dcl_model.py ├── fastcut_model.py ├── networks.py ├── patchnce.py ├── simdcl_model.py ├── stylegan_networks.py └── template_model.py ├── options ├── __init__.py ├── base_options.py ├── test_options.py └── train_options.py ├── requirements.txt ├── test.py ├── train.py └── util ├── __init__.py ├── get_data.py ├── html.py ├── image_pool.py ├── util.py └── visualizer.py /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/README.md -------------------------------------------------------------------------------- /data/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/data/__init__.py -------------------------------------------------------------------------------- /data/base_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/data/base_dataset.py -------------------------------------------------------------------------------- /data/image_folder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/data/image_folder.py -------------------------------------------------------------------------------- /data/single_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/data/single_dataset.py -------------------------------------------------------------------------------- /data/singleimage_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/data/singleimage_dataset.py -------------------------------------------------------------------------------- /data/template_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/data/template_dataset.py -------------------------------------------------------------------------------- /data/unaligned_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/data/unaligned_dataset.py -------------------------------------------------------------------------------- /datasets/bibtex/cityscapes.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/datasets/bibtex/cityscapes.tex -------------------------------------------------------------------------------- /datasets/bibtex/facades.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/datasets/bibtex/facades.tex -------------------------------------------------------------------------------- /datasets/bibtex/handbags.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/datasets/bibtex/handbags.tex -------------------------------------------------------------------------------- /datasets/bibtex/shoes.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/datasets/bibtex/shoes.tex -------------------------------------------------------------------------------- /datasets/bibtex/transattr.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/datasets/bibtex/transattr.tex -------------------------------------------------------------------------------- /datasets/combine_A_and_B.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/datasets/combine_A_and_B.py -------------------------------------------------------------------------------- /datasets/detect_cat_face.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/datasets/detect_cat_face.py -------------------------------------------------------------------------------- /datasets/download_cut_dataset.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/datasets/download_cut_dataset.sh -------------------------------------------------------------------------------- /datasets/download_pix2pix_dataset.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/datasets/download_pix2pix_dataset.sh -------------------------------------------------------------------------------- /datasets/make_dataset_aligned.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/datasets/make_dataset_aligned.py -------------------------------------------------------------------------------- /datasets/prepare_cityscapes_dataset.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/datasets/prepare_cityscapes_dataset.py -------------------------------------------------------------------------------- /docs/datasets.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/docs/datasets.md -------------------------------------------------------------------------------- /environment.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/environment.yml -------------------------------------------------------------------------------- /experiments/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/experiments/__init__.py -------------------------------------------------------------------------------- /experiments/__main__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/experiments/__main__.py -------------------------------------------------------------------------------- /imgs/DCLGAN_slide.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/imgs/DCLGAN_slide.pptx -------------------------------------------------------------------------------- /imgs/dclgan.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/imgs/dclgan.png -------------------------------------------------------------------------------- /imgs/han_dualcontrastive.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/imgs/han_dualcontrastive.pdf -------------------------------------------------------------------------------- /imgs/results.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/imgs/results.png -------------------------------------------------------------------------------- /imgs/results2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/imgs/results2.png -------------------------------------------------------------------------------- /imgs/table.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/imgs/table.png -------------------------------------------------------------------------------- /models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/models/__init__.py -------------------------------------------------------------------------------- /models/base_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/models/base_model.py -------------------------------------------------------------------------------- /models/cut_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/models/cut_model.py -------------------------------------------------------------------------------- /models/cycle_gan_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/models/cycle_gan_model.py -------------------------------------------------------------------------------- /models/dcl_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/models/dcl_model.py -------------------------------------------------------------------------------- /models/fastcut_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/models/fastcut_model.py -------------------------------------------------------------------------------- /models/networks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/models/networks.py -------------------------------------------------------------------------------- /models/patchnce.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/models/patchnce.py -------------------------------------------------------------------------------- /models/simdcl_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/models/simdcl_model.py -------------------------------------------------------------------------------- /models/stylegan_networks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/models/stylegan_networks.py -------------------------------------------------------------------------------- /models/template_model.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/models/template_model.py -------------------------------------------------------------------------------- /options/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/options/__init__.py -------------------------------------------------------------------------------- /options/base_options.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/options/base_options.py -------------------------------------------------------------------------------- /options/test_options.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/options/test_options.py -------------------------------------------------------------------------------- /options/train_options.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/options/train_options.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/requirements.txt -------------------------------------------------------------------------------- /test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/test.py -------------------------------------------------------------------------------- /train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/train.py -------------------------------------------------------------------------------- /util/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/util/__init__.py -------------------------------------------------------------------------------- /util/get_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/util/get_data.py -------------------------------------------------------------------------------- /util/html.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/util/html.py -------------------------------------------------------------------------------- /util/image_pool.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/util/image_pool.py -------------------------------------------------------------------------------- /util/util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/util/util.py -------------------------------------------------------------------------------- /util/visualizer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/JunlinHan/DCLGAN/HEAD/util/visualizer.py --------------------------------------------------------------------------------