GithubHelp home page GithubHelp logo

Comments (7)

hupu1dong avatar hupu1dong commented on June 8, 2024

I found that this training can be run normally without using LeakyReLU, and I believe it is caused by inconsistent data shapes during computation loss caused by LeakyReLU

from wav2lip_288x288.

hupu1dong avatar hupu1dong commented on June 8, 2024

Have you verified the author before uploading the code @primepake

from wav2lip_288x288.

carter54 avatar carter54 commented on June 8, 2024

It's due to PReLU, PReLU could have negative output to audio vector and face vector, and the cosine_similarity will have negative value.
@primepake Could you share your method to solve this problem?
I saw you mentioned that using BCELogicLoss would have other problem, I think the training loss will stay near 0.6...
Did you still use cosine_loss in color_syncnet_train.py or change to other loss function?

Thanks in advance!

from wav2lip_288x288.

DogeFlow avatar DogeFlow commented on June 8, 2024

For the same question, the author mentioned the use of BCELogicLoss, but in the subsequent answer, he suggested not to use it. If you do not use BCELogicLoss, you will not be able to train. So what is the correct way to deal with it? @primepake

from wav2lip_288x288.

 avatar commented on June 8, 2024

I recommend you shouldn't you BCELogicLoss, this not correct. You should apply ReLU in the last layer to get the value in range [0,1]

from wav2lip_288x288.

DogeFlow avatar DogeFlow commented on June 8, 2024

I recommend you shouldn't you BCELogicLoss, this not correct. You should apply ReLU in the last layer to get the value in range [0,1]

Thank you very much, it worked

from wav2lip_288x288.

xiedongmingming avatar xiedongmingming commented on June 8, 2024

I recommend you shouldn't you BCELogicLoss, this not correct. You should apply ReLU in the last layer to get the value in range [0,1]

Thank you very much, it worked

Could you share your method to solve this problem?

from wav2lip_288x288.

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.