Answers.Body: <p>There is no one answer to this. In general, the bigger your model is, the more data you will need to train it.</p>
  <p>You tak about training a classifier. In this case it also depends on the difficulty (or obviousness) of the task, e.g. classifying white from red images versus detecting smile from frown.</p>
  <p>As always with NN, you will need to try training and see if you have enough by looking at the results. If it does not work out, you have options:</p>
  <ul>
  <li>increase your dataset</li>
  <li>perform data augmentation (e.g. scale/rotate/etc.)</li>
  <li>leverage transfer learning. You mention GoogleNet. These were trained on millions of images on the ImageNet task. Leverage this. Use a pretrained model to represent your images. Than use that latent representation as input to your GAN. It will drastically reduce the amount of images that you need.</li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-03-19T12:28:15.333Z
Answers.LastActivityDate: 2023-03-19T12:28:15.333Z
Answers.UserDisplayName: dorien
Body: <p>I'm beginning to study and implement GAN to generate more datasets. I'll just try to experiment with state-of-the-art GAN models as described here <a href="https://paperswithcode.com/sota/image-generation-on-cifar-10" rel="nofollow noreferrer">https://paperswithcode.com/sota/image-generation-on-cifar-10</a>.</p>
  <p>The problem is I don't have a big dataset (around 1.000) for image classification, I have tried to train and test my dataset with GoogleNet and InceptionV3 and the results are mediocre. I'm afraid that GAN will require a bigger dataset than the usual image classification. I couldn't find any detailed guideline of how to prepare datasets properly for GAN (e.g. minimum images).</p>
  <p>So, how many images are required to produce a good GAN model?</p>
  <p>Also, I'm curious whether if I can use my image classification dataset directly to train GAN.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-07-30T02:20:59.150Z
Comments.Text: Have the same question. Did u solve it now?
  Thanks
Comments.UserDisplayName: Tao Chen
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-07-30T07:59:03.620Z
Comments.Text: @TaoChen I trained it using 1500 images only, there's no specific guideline for that I think
Comments.UserDisplayName: iv67
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-08-31T06:54:48.947Z
Comments.Text: @gameon67 Was it successful training? Did yo use augmentation and does it really help? I have similar dataset around 1500 images and I wonder If it should be extended?
Comments.UserDisplayName: Slawomir Orlowski
Tags: <datasets><generative-adversarial-networks><image-generation><training-datasets><sample-complexity>
Title: How many training data is required for GAN?
UserDisplayName: iv67
ThreadText: # How many training data is required for GAN?
  
  (Asked by: username_0 on 2019-11-28)
  
  I'm beginning to study and implement GAN to generate more datasets. I'll just try to experiment with state-of-the-art GAN models as described here <https://paperswithcode.com/sota/image-generation-on-cifar-10>.
  
  The problem is I don't have a big dataset (around 1.000) for image classification, I have tried to train and test my dataset with GoogleNet and InceptionV3 and the results are mediocre. I'm afraid that GAN will require a bigger dataset than the usual image classification. I couldn't find any detailed guideline of how to prepare datasets properly for GAN (e.g. minimum images).
  
  So, how many images are required to produce a good GAN model?
  
  Also, I'm curious whether if I can use my image classification dataset directly to train GAN.
  
  **Tags:** datasets, generative-adversarial-networks, image-generation, training-datasets, sample-complexity
  
  > **Comments:**
  > **username_1**: Have the same question. Did u solve it now? Thanks  
  > **username_0**: @username_1 I trained it using 1500 images only, there's no specific guideline for that I think  
  > **username_2**: @gameon67 Was it successful training? Did yo use augmentation and does it really help? I have similar dataset around 1500 images and I wonder If it should be extended?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_3 on 2023-03-19. Score: 1
  
  There is no one answer to this. In general, the bigger your model is, the more data you will need to train it.
  
  You tak about training a classifier. In this case it also depends on the difficulty (or obviousness) of the task, e.g. classifying white from red images versus detecting smile from frown.
  
  As always with NN, you will need to try training and see if you have enough by looking at the results. If it does not work out, you have options:
  
  * increase your dataset
  * perform data augmentation (e.g. scale/rotate/etc.)
  * leverage transfer learning. You mention GoogleNet. These were trained on millions of images on the ImageNet task. Leverage this. Use a pretrained model to represent your images. Than use that latent representation as input to your GAN. It will drastically reduce the amount of images that you need.
  
  
  ---
  
  