Generated images from GAN look blurry

username: torch_ml
cooked: <p>Hey everyone, I trained my GAN on both a 50 images dataset and a 500 images dataset, each for 400 epochs, and they both look blurry. Does anyone know why this happens please?</p>
<p>50 images training run.<br>
Losses<br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/1/f/1f8443dbc89b9344e92c3af0bc3f02dfd26f187d.jpeg" data-download-href="https://discuss.pytorch.org/uploads/default/1f8443dbc89b9344e92c3af0bc3f02dfd26f187d" title="gen_disc_losses"><img src="https://discuss.pytorch.org/uploads/default/optimized/3X/1/f/1f8443dbc89b9344e92c3af0bc3f02dfd26f187d_2_666x500.jpeg" alt="gen_disc_losses" data-base62-sha1="4uOb2YKZibkDnsa5iYD1dNg6ueN" width="666" height="500" srcset="https://discuss.pytorch.org/uploads/default/optimized/3X/1/f/1f8443dbc89b9344e92c3af0bc3f02dfd26f187d_2_666x500.jpeg, https://discuss.pytorch.org/uploads/default/optimized/3X/1/f/1f8443dbc89b9344e92c3af0bc3f02dfd26f187d_2_999x750.jpeg 1.5x, https://discuss.pytorch.org/uploads/default/optimized/3X/1/f/1f8443dbc89b9344e92c3af0bc3f02dfd26f187d_2_1332x1000.jpeg 2x" data-dominant-color="FDFDFD"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">gen_disc_losses</span><span class="informations">1440×1080 49.3 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div><br>
Input<br>
<img src="https://discuss.pytorch.org/uploads/default/original/3X/2/f/2f3f2a06b720a93e2701d1848bf366958279f37d.jpeg" alt="input_0" data-base62-sha1="6JXLILxNrsnu7Ah1i0T4LjPANdz" width="256" height="256"><br>
Generated<br>
<img src="https://discuss.pytorch.org/uploads/default/original/3X/9/5/95d44d17dfea338e2aa86113ee6cfa69239a69ab.jpeg" alt="gen_400" data-base62-sha1="lnrZLpbrnISz0XxSFWmEvO8TexJ" width="256" height="256"><br>
Actual output<br>
<img src="https://discuss.pytorch.org/uploads/default/original/3X/f/4/f4c3aa3285718ed2e8b0299e29417f04ffeac5ff.jpeg" alt="target_0" data-base62-sha1="yVhIbR4VXFYu5SrOgVF8h7ClNcX" width="256" height="256"></p>
<p>500 images training run<br>
Losses<br>
<div class="lightbox-wrapper"><a class="lightbox" href="https://discuss.pytorch.org/uploads/default/original/3X/d/b/db86412a565da0a30146827001c9f48a78eedb49.jpeg" data-download-href="https://discuss.pytorch.org/uploads/default/db86412a565da0a30146827001c9f48a78eedb49" title="gen_disc_losses"><img src="https://discuss.pytorch.org/uploads/default/optimized/3X/d/b/db86412a565da0a30146827001c9f48a78eedb49_2_666x500.jpeg" alt="gen_disc_losses" data-base62-sha1="vk0cIkiWPgK7bpxoLMQqy8xHnUB" width="666" height="500" srcset="https://discuss.pytorch.org/uploads/default/optimized/3X/d/b/db86412a565da0a30146827001c9f48a78eedb49_2_666x500.jpeg, https://discuss.pytorch.org/uploads/default/optimized/3X/d/b/db86412a565da0a30146827001c9f48a78eedb49_2_999x750.jpeg 1.5x, https://discuss.pytorch.org/uploads/default/optimized/3X/d/b/db86412a565da0a30146827001c9f48a78eedb49_2_1332x1000.jpeg 2x" data-dominant-color="FDFDFD"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">gen_disc_losses</span><span class="informations">1440×1080 51.1 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div><br>
Input<br>
<img src="https://discuss.pytorch.org/uploads/default/original/3X/5/1/51540f24361b1c7cd55a73fb1a00c6f17d18c3e9.jpeg" alt="input_0" data-base62-sha1="bBsLNI6qFvDG6O4KH4NL03l1bCx" width="256" height="256"><br>
Generated<br>
<img src="https://discuss.pytorch.org/uploads/default/original/3X/3/1/3199dbabe5ab2f0a343dec0b7a08f267f58b7fc9.jpeg" alt="gen_400" data-base62-sha1="74N2cr13vvO8da39eKfkYM2ZANz" width="256" height="256"><br>
Actual output<br>
<img src="https://discuss.pytorch.org/uploads/default/original/3X/3/a/3ad6f3a49da59d9cd9e549340199eb09effbe996.jpeg" alt="target_0" data-base62-sha1="8owdXQa0V8arXyU1Ja35bS8Rpwq" width="256" height="256"></p>
<p>I’m not sure why they look blurry, and am not sure if it’s linked to the GAN losses not being correct or something like that. Would appreciate any input on this please.</p>

username: thecho7
cooked: <p>I don’t think your question is PyTorch-like.<br>
Since only we have is a loss curve, the only comment I can tell you is to focus on generator rather than discriminator.</p>