emiliendupont / wgan-gp Goto Github PK
View Code? Open in Web Editor NEWPytorch implementation of Wasserstein GANs with Gradient Penalty
License: MIT License
Pytorch implementation of Wasserstein GANs with Gradient Penalty
License: MIT License
Hi!
I love this great job but I have difficulty reading the codes. Does this WGAN also use EMD i.e. the Wasserstein distance to approximate the real instances? I haven't find such a loss in loss_G or other losses, Thank you
Do you plan to add a license to this repo? Thanks!
The self.img_size[0]/16 needs to be typecasted to int:
`class Generator(nn.Module):
def init(self, img_size, latent_dim, dim):
super(Generator, self).init()
self.dim = dim
self.latent_dim = latent_dim
self.img_size = img_size
self.feature_sizes = (int(self.img_size[0] / 16), int(self.img_size[1] / 16))`
I can't Reappearance that Results like issue 4.
And I find it that this gif what my model generated 6.60Mb,
But in this code example gif folder,it is 8.22 Mb.
What make this difference?
I hope author to anser this question,thank you very much!
Thanks for sharing this repo.
Running the code (main.py
, 200 epochs, parameters as mentioned in readme, only fixing the the issue mentioned in #1), I couldn't reproduce the results shown in https://github.com/EmilienDupont/wgan-gp/blob/master/gifs/mnist_200_epochs.gif. Instead, the generated samples look as follows:
Any hints on what would need to be changed to make the training successful?
One step towards reproducibility would be to fix random seeds in the beginning of main.py
, e.g. with the following code:
import random
import numpy as np
import torch
random_seed = 42
random.seed(random_seed)
np.random.seed(random_seed)
torch.manual_seed(random_seed)
torch.cuda.manual_seed_all(random_seed)
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.