AAnoosheh / ToDayGAN

http://arxiv.org/abs/1809.09767
BSD 2-Clause "Simplified" License
172 stars 32 forks source link

ToDayGAN

This is our PyTorch implementation for ToDayGAN. Code was written by Asha Anoosheh (built upon ComboGAN)

[ToDayGAN Paper]

[ComboGAN Paper]

If you use this code for your research, please cite:

Night-to-Day Image Translation for Retrieval-based Localization Asha Anoosheh, Torsten Sattler, Radu Timofte, Marc Pollefeys, Luc van Gool In Arxiv, 2018.





Prerequisites

Getting Started

Installation

Training

Example running scripts can be found in the scripts directory.

One of our pretrained models for the Oxford Robotcars dataset is found HERE. Place under ./checkpoints/robotcar_2day and test using the instructions below, with args --name robotcar_2day --dataroot ./datasets/<your_test_dir> --n_domains 2 --which_epoch 150 --loadSize 512

Because of sesitivity to instrinsic camera characteristics, testing should ideally be on the same Oxford dataset photos (and same Grasshopper camera) found conveniently preprocessed and ready-to-use HERE.

If using this pretrained model, <your_test_dir> should contain two subfolders test0 & test1, containing Day and Night images to test, respectively (as mine was trained with this ordering). test0 can be empty if you do not care about Day image translated to Night, but just needs to exist to not break the code.

Training/Testing Details