voidstrike / ASGIT

Pytorch implementation of "Attention-Based Spatial Guidance for Image-to-Image Translation" (WACV 2021)
MIT License
15 stars 2 forks source link

Attention-Based Spatial Guidance for Image-to-Image Translation

This repo contains the PyTorch implementation of "Attention-Based Spatial Guidance for Image-to-Image Translation" (WACV 2021).\ This implementation is based on the official CycleGAN code.\ Our model and contributions are in ./models/attn_cycle_gan_model.py and ./models/attn_cycle_gan_v2_model.py, respectively.

Getting Started

Installation

For CONDA users, you can use script ./scripts/conda_dep.sh to install pytorch and other libraries (NOT tested)

Download Datasets

Cityscapes dataset can be downloaded from Cityscapes. You must register an account to access and download the dataset.

ImageNet based datasets like apple2orange, horse2zebra and .etc can be downloaded using ./scripts/download_cyclegan_model.sh.

Day2Night dataset can be downloaded from here. Please note that those street images are cropped from BDD100K dataset.

Run Experiments

Results

We provide some translation results of our model.

SCENERY

OBJECT

Citation

If you use this code or dataset for your research, please consider cite our paper:

@InProceedings{Lin_2021_WACV,
    author    = {Lin, Yu and Wang, Yigong and Li, Yifan and Gao, Yang and Wang, Zhuoyi and Khan, Latifur},
    title     = {Attention-Based Spatial Guidance for Image-to-Image Translation},
    booktitle = {Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV)},
    month     = {January},
    year      = {2021},
    pages     = {816-825}
}

Update

2021-06-03