Output size of GAN Example
10 views (last 30 days)
Show older comments
Hello,
I am using the example of GAN to generate images, and I would like the output generated to be of a different size than 64x64x3, I've tried to change several parameters but I can't get it.
Any ideas?
Thanks in advance.
Answers (1)
Sai Bhargav Avula
on 11 May 2020
Edited: Sai Bhargav Avula
on 11 May 2020
Hi,
The final size depends on the generator network architecture.
One way to achieve it is to change the filtersize of the generator may not be the ideal case for this example.
The ideal way is, based on your required output size you have to add transposedConv2dLayer to the architecture with proper filter size.
For example if you want the size to be 128*128 then simply add one more transposedConv2dLayer to the architecture
Remember you need to adjust the filtersize and channels accordingly
Hope this helps!
3 Comments
Abdullah alsuhail
on 27 Aug 2020
Hi Sara,
Did you find the solution? I stuck with the same problem.
I will appreciate if you can share the code here.
Thank you so much
See Also
Categories
Find more on Image Data Workflows in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!