CycleGAN Horse-to-Zebra Translation Trained on ImageNet Competition Data

Turn horses into zebras in a photo

Released in 2017, this model exploits a novel technique for image translation, in which two models translating from A to B and vice versa are trained jointly with adversarial training. In addition to the adversarial loss, cycle consistency is also enforced in the loss function: when the output of the first translator is fed into the second, the final result is encouraged to match the input of the first translator. This allows successful training for image translation tasks in which only unpaired training data can be collected. This model was trained to translate horses into zebras.

Number of layers: 94 | Parameter count: 2,855,811 | Trained size: 12 MB |

Training Set Information

Examples

Resource retrieval

Get the pre-trained net:

In[1]:=
NetModel["CycleGAN Horse-to-Zebra Translation Trained on ImageNet \
Competition Data"]
Out[1]=

Basic usage

Run the net on a photo:

In[2]:=
(* Evaluate this cell to get the example input *) CloudGet["https://www.wolframcloud.com/obj/aed98646-c29a-4f43-872c-aecb42178385"]
Out[2]=

Requirements

Wolfram Language 11.3 (March 2018) or above

Resource History

Reference