Giter VIP home page Giter VIP logo

Comments (4)

junyanz avatar junyanz commented on August 20, 2024

I haven't seen the errors in 1 before and I am not sure about what happened.
For your question 2, note that

self.fake_B_random = self.netG(self.real_A_encoded, self.z_random)

fake_B_random is also conditional on real_A_encoded. The confusion might be caused by the naming. See #31 for more details.

from bicyclegan.

junyanz avatar junyanz commented on August 20, 2024

I was able to reproduce your error 1 now. It didn't happen for the previous PyTorch version. I fixed it with the latest commit.

from bicyclegan.

TropComplique avatar TropComplique commented on August 20, 2024

Hi @junyanz.
I believe that your latest commit introduced an error.

Now this comment is no longer valid.
Because self.backward_G_alone() also computes gradients for the encoder.
You must keep the encoder fixed when minimizing latent regression loss (according to your paper).

from bicyclegan.

junyanz avatar junyanz commented on August 20, 2024

Yes. You are correct. I updated the code with a new commit.
I set self.set_requires_grad([self.netE], False) before self.backward_G_alone(). I assume this will disabling computing graidents for E while we backprop the gradients from loss_z_L1.
I am also not sure why the previous code doesn't work in the recent PyTorch version ( I am using 1.5.0)
@ssnl

from bicyclegan.

Related Issues (20)

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.