Git Product home page Git Product logo

gngan-pytorch's People

Contributors

w86763777 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

Watchers

 avatar  avatar  avatar

gngan-pytorch's Issues

Why GPU memory usage keeps ceaselessly growing when Combining my GAN with GN?

After integrating Gradient Normalization into CycleGAN, the GPU memory usage keeps ceaselessly growing, and finally, it blows up.

with module_no_grad([netG_A2B]):
    optimizer_D_A.zero_grad()
    pred_real = normalize_gradient(net_D=netD_A, x=real_A)
    pred_fake = normalize_gradient(net_D=netD_A, x=fake_A.detach())
    loss_D_A = -pred_real.mean() + pred_fake.mean() 
    loss_D_A.backward()
    optimizer_D_A.step()

I've tried to del pred_real, pred_fake, loss_D_A in the code above, even del grad_norm, f in gradnorm.py, and it does not help.
The GN sounds great to my work.
And any tips would be appreciated.

About Readme.md

Hello,
I found a very interesting technique.

There may be a mistake about "How to integrate Gradient Normalization into your work?" of Readme.md.

Now it's the following:

loss_real = loss_fn(pred_real, torch.ones_like(pred_real))
loss_fake = loss_fn(pred_fake, torch.ones_like(pred_fake))

Is the following correct?

loss_real = loss_fn(pred_real, torch.ones_like(pred_real))
loss_fake = loss_fn(pred_fake, torch.zeros_like(pred_fake))

The losses.py in your repository was exactly like this.

Thank you.

pretrained model

Hi,

Nice paper, is it any plan to release the pre-trained model?

Thanks!

FID

execuse me, the function "get_inception_score_and_fid" could you have

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.