Giter VIP home page Giter VIP logo

Comments (3)

junyanz avatar junyanz commented on July 19, 2024 2

@samrudhdhirangrej The code is correct as fake_B_random = netG(real_A_encoded, z_random), which means fake_B_random corresponds to real_A_encoded.

@eveningglow Given the same real image A, we sample a random vector z and produce a fake output (fake_B_random). This implements G(A, z) in Eqn (7) in the paper. Of course, one can also use real_A_random as input for Eqn (7). (let's denote A1=A_encoded and A2=A_random)
In our implementation, we ask D to classify (A1, G(A1, z)) vs. (A2, B2).
In the alternative case, D aims to classify (A2, G(A2, z)) vs. (A2, B2).
In practice, we find that the first implementation can produce slightly more diverse results, as we are mixing different input-output pairs and styles.

Sorry that the variables could have been better named. (Maybe A1, A2 might be better)
@pathak22 Maybe Deepak can explain the intuition better.

from bicyclegan.

eveningglow avatar eveningglow commented on July 19, 2024

I think so too and also in this line which is self.fake_B_random = self.netG.forward(self.real_A_encoded, self.z_random), why do you make self.fake_B_random using self.real_A_encoded not self.real_A_random?

from bicyclegan.

eveningglow avatar eveningglow commented on July 19, 2024

@junyanz Thank you for your explanation!

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.