Home

Awesome

MixNMatch: Multifactor Disentanglement and Encoding for Conditional Image Generation <br> [Paper]

Yuheng Li, Krishna Kumar Singh, Utkarsh Ojha, Yong Jae Lee<br> UC Davis <br> In CVPR, 2020

1/31/2020 update: Code and models released. <br>

Demo Video

IMAGE ALT TEXT HERE

This is our CVPR2020 presentation video link

Web Demo

For interactive web demo click here. This web demo is created by Yang Xue.

Requirements

Getting started

Clone the repository

git clone https://github.com/Yuheng-Li/MixNMatch.git
cd MixNMatch

Setting up the data

Download the formatted CUB data from this link and extract it inside the data directory

Downloading pretrained models

Pretrained models for CUB, Dogs and Cars are available at this link. Download and extract them in the models directory.

Evaluating the model

In code

Training your own model

In code/config.py:

Results

1. Extracting all factors from differnet real images to synthesize a new image

<img src='files/MixNMatch.png' align="middle" width=1000> <br>

2. Comparison between the feature and code mode

<img src='files/main_result2.png' align="middle" width=1000> <br>

3. Manipulating real images by varying a single factor

<img src='files/bird_vary.png' align="middle" width=1000> <br>

4. Inferring style from unseen data

Cartoon -> imageSketch -> image
<img src='files/cartoon2img.png' align="middle" width=450><img src='files/sketch2img.png' align="middle" width=450>
<br>

5. Converting a reference image according to a reference video

<p align="center"> <img src='files/img2gif2.gif' align="middle" width=350> </p> <br>

Citation

If you find this useful in your research, consider citing our work:

@inproceedings{li-cvpr2020,
  title = {MixNMatch: Multifactor Disentanglement and Encoding for Conditional Image Generation},
  author = {Yuheng Li and Krishna Kumar Singh and Utkarsh Ojha and Yong Jae Lee},
  booktitle = {CVPR},
  year = {2020}
}