New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
image extraction #5
Comments
Hello! The function of generator will map latent variable into fake image. So, all you need to do is:
then you set a loop if you want to generate more! |
Awesome, thanks for your quick response. I have another question but its a general question, actually. I have a data set contains 5 classes (each has about 50 samples). I want to generate GAN samples. I decided to use ACGAN in order to take advantage of class information rather than DCGAN etc. So, can you give me more tips how can i build a stable model. Can classic data augmentation techniques help to improve training, do u think? |
@yrg23 As far as I know, the dataset‘s Statistics information play an importance role in your task. Some simple dataset like human face and MNIST which has strong Statistics feature will make it easier for generator to learn the Probability distribution and fool the discriminator. Some hard dataset like Cifar10 and ImageNet will prevent generator from learning Probability distribution easily and discriminator will easily discriminate the real and fake image. This will lead model train fail. |
thanks. i will try... |
sorry to bother you again. one last question. my data set consists of 5 classes as i mentioned before. if i want to produce images for five classes only (not 10), which part of your code i should change? i tried but i get dimension error. |
change both '10' to '5' in sampled_labels, you will get 25×25 for your 5 classes image |
thanks but why the final image dimension does not reflect the generated images' dimensions. if i want to produce an image consists of 10 in row and 10 in column, so, the final image should be in dimension of 32x10=(320 x 320), right? it should be related with vis_square function but, i could not figure it out yet |
In vis_square function, there exists black line between two figures. You need to take that into consideration |
i noticed now. thank again |
thank for your awesome work, after whole training complete how can i generate examples and save them one by one. thanks...
The text was updated successfully, but these errors were encountered: