Giter Site home page Giter Site logo

improvedgan-pytorch's People

Contributors

dm-thu avatar sleepychord avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

improvedgan-pytorch's Issues

Relation with bad GANs

Hello
You mentioned this code is inspired from the paper called "Good Semi-supervised Learning
That Requires a Bad GAN".

Have you changed any part of "Improved Techniques for Training GANs" to close to bad GANs paper?
What are the exact changes?
It is not clear for me.

Thank you

AttributeError: 'BatchNorm1d' object has no attribute 'track_running_stats'

I am getting this error:

File "/home/elhamod/melhamodenv/AML/project2/ImprovedGAN-pytorch-master/Nets.py", line 80, in forward
x = F.softplus(self.bn1(self.fc1(x)) + self.bn1_b)
File "/home/elhamod/melhamodenv/lib/python3.6/site-packages/torch/nn/modules/module.py", line 541, in call
result = self.forward(*input, **kwargs)
File "/home/elhamod/melhamodenv/lib/python3.6/site-packages/torch/nn/modules/batchnorm.py", line 69, in forward
if self.training and self.track_running_stats:
File "/home/elhamod/melhamodenv/lib/python3.6/site-packages/torch/nn/modules/module.py", line 585, in getattr
type(self).name, name))
AttributeError: 'BatchNorm1d' object has no attribute 'track_running_stats'

Any ideas how to fix it?

change input data

Hello
I tried to feed cifar10, I change the input size to 3072, however in run time I still get
(0): LinearWeightNorm(in_features=784, out_features=1000, weight_scale=1)
(1): LinearWeightNorm(in_features=1000, out_features=500, weight_scale=1)
(2): LinearWeightNorm(in_features=500, out_features=250, weight_scale=1)
(3): LinearWeightNorm(in_features=250, out_features=250, weight_scale=1)
(4): LinearWeightNorm(in_features=250, out_features=250, weight_scale=1)

for first layer it is still 784

the unlabeled samples include the labeled samples

Dear author, thanks for sharing the improved GAN in pytorch. In readme.md, you said: Default configs can train models achieving 98.5% accuracy on test dataset with 100 labeled data(10 per class) and other 59,000 unlabeled data after 100 epochs.
However, according to your implementation, the unlabeled samples are selected as the full train samples of MNIST. It seems they are inconsistent. Which is correct?

hello. When the loss_unsupervised is nearly equal with 0, the loss_supervised is still pretty large, how should I do to get better result?

when I run this code, the partial results are as follows.
Iteration 8, loss_supervised = 0.5682, loss_unsupervised = 0.0012, loss_gen = 1.8700 train acc = 0.7541
Eval: correct 6277/ 10000
.......
Iteration 34, loss_supervised = 0.8746, loss_unsupervised = 0.0009, loss_gen = 8.1296 train acc = 0.5644
Eval: correct 8050/ 1800
.......
Iteration 48, loss_supervised = 0.7172, loss_unsupervised = 0.0002, loss_gen = 7.7574 train acc = 0.6869
Eval: correct 8056/ 1800
........
then the results have few change.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.