yangyangii / gan-tutorial Goto Github PK
View Code? Open in Web Editor NEWSimple Implementation of many GAN models with PyTorch.
Simple Implementation of many GAN models with PyTorch.
Hi, thank you for making an amazing notebook that I can practice.
I would like to change the size of the image.
For example, in R1GAN and BEGAN, IMAGE_DIM
is (64, 64, 3). However, I would like to change IMAGE_DIM
as (512,512,3) .
I want my result of GAN also to become (512,512,3). Can you give me the instruction about how am I supposed to change the network?
Thank you
Hi, thank you for this great repo, it helps me a lot.
I have a simple question about the training process. Should we freeze parameters in generator / discriminator when training the other?
It seems when running G_loss.backward(), parameters in discriminator will change with it?
def get_sample_image(G, n_noise):
"""
save sample 100 images
"""
z = torch.randn(10, n_noise).to(DEVICE)
y_hat = G(z).view(10, 3, 28, 28).permute(0, 2, 3, 1) # (100, 28, 28)
result = (y_hat.detach().cpu().numpy()+1)/2.
return result
What is the deal with the 10? I understand the 100 is random noise as an input, but what about the 10? Thank you so much for your repo btw, very helpful to me.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.