训练gan需要多少个假示例?

发布于 2025-02-12 09:28:24 字数 103 浏览 3 评论 0原文

最近,我训练了一个带有约1000张真实图像和64张假图像的gan。这显然还不够虚假的图像,因此gan中的大多数“潜在空间”都创建了相同的图像。通常对gan进行多少个假图像,以使其潜在空间可用?

I recently trained a GAN with ~1000 real images and 64 fake images. This obviously wasn't enough fake images, so most of the "latent space" in the GAN just creates the same image. How many fake images are GANs usually trained with in order to make their latent space usable?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夏夜暖风 2025-02-19 09:28:24

您生成的假图像的数量取决于您采样的噪声向量的大小。理想情况下,在训练的单个步骤中,您将采样dimension batch_size x Noings_dim的噪声向量,然后使用生成器生成batch_size face>伪造图像。同样,您的歧视者会看到batch_size真实图像的数量。

这样,在每个步骤中,您的歧视者都会看到相等数量的假和真实图像,而歧视者看到的假图像总数将等于训练集中的图像总数本身。

The number of fake images that you generate depends on the size of the noise vector that you sample. Ideally, in a single step of training, you would sample a noise vector of dimension batch_size x noise_dim and use the generator to generate batch_size fake images. Similarly, your discriminator would see the batch_size number of real images.

This way, at every step, your discriminator sees an equal number of fake and real images, and the total number of fake images seen by your discriminator would be equal to the total number of images in your training set itself.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文