SinGAN: Learning a Generative Model from a Single Natural Image: Difference between revisions

Line 46: Line 46:
This drops the log from the traditional cross-entropy loss.<br>
This drops the log from the traditional cross-entropy loss.<br>
<math>\min_{G_n}\max_{D_n}L_{adv}(G_n, D_n)+\alpha L_{rec}(G_n)</math><br>
<math>\min_{G_n}\max_{D_n}L_{adv}(G_n, D_n)+\alpha L_{rec}(G_n)</math><br>
<!--
The final loss is the average over all the patches.<br>
The final loss is the average over all the patches.<br>
-->
<syntaxhighlight lang="python">
<syntaxhighlight lang="python">