Giter Site home page Giter Site logo

Two step adversarial loss about cyclegan-vc2 HOT 8 OPEN

jackaduma avatar jackaduma commented on August 28, 2024 1
Two step adversarial loss

from cyclegan-vc2.

Comments (8)

Dannynis avatar Dannynis commented on August 28, 2024 1

Perhaps i misunderstood the paper but doesnt the discriminator suppose to updated as well in the second atep?

from cyclegan-vc2.

jackaduma avatar jackaduma commented on August 28, 2024 1

i'd fixed the problem in master branch, thanks all of you.

from cyclegan-vc2.

keishatsai avatar keishatsai commented on August 28, 2024

Hi, I am also wondering that. I think the implementation of adversarial loss is indeed missing.

from cyclegan-vc2.

Jeffery-zhang-nfls avatar Jeffery-zhang-nfls commented on August 28, 2024

yes, it indeed missed the second step adverserial loss.
I add the second step adverserial loss in the branch "2nd-step-adverserial-loss"

from cyclegan-vc2.

keishatsai avatar keishatsai commented on August 28, 2024

@Jeffery-zhang-nfls Thank you for the contribution! Will look at this later.

from cyclegan-vc2.

keishatsai avatar keishatsai commented on August 28, 2024

Hi @Dannynis and @Jeffery-zhang-nfls,

I am also wondering that...I thought this second step is only happening for updating the discriminator loss?
Or am i misunderstanding as well?

from cyclegan-vc2.

keishatsai avatar keishatsai commented on August 28, 2024

Hi all,
I thought the 2-step loss is only happening in discriminator based on paper, but the discriminator became too strong based on my experiments.
Anyway, just for anyone who want to try 2-step loss....The followings are for your reference.

Here I only put one side of code for depicting clearly. You can finish another side on your own, and remember to update final generator and discriminator loss, too.

Generator 2-step loss part 1

d_cycle_A = self.discriminator_A(cycle_A)

Generator 2-step loss part 2

generator_2step_BAB = torch.mean((1 - d_cycle_B) ** 2)

Discriminator 2-step loss part 1

two_step_A = self.generator_B2A(self.generator_A2B(real_A)) d_two_step_A = self.discriminator_A(two_step_A)

Discriminator 2-step loss part 2

d_loss_A_two_step = (torch.mean((d_real_A - 1)**2) + torch.mean(d_two_step_A**2))

from cyclegan-vc2.

saurabh-kataria avatar saurabh-kataria commented on August 28, 2024

I think we are supposed to introduce two more networks D_X^' and D_Y^'. Paper clearly says in Sec 3.1 "we introduce an additional discriminator". The code currently re-uses main discriminators.

from cyclegan-vc2.

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.