Coder Social home page Coder Social logo

(Leaky) ReLu about vae HOT 2 CLOSED

botkevin avatar botkevin commented on August 29, 2024
(Leaky) ReLu

from vae.

Comments (2)

podgorskiy avatar podgorskiy commented on August 29, 2024

There is no any particular reason.

Overall, the architecture for the encoder and decoder is DCGAN alike (where the encoder is similar to the discriminator and the decoder is similar to the generator). https://arxiv.org/pdf/1511.06434.pdf
In DCGAN they claimed that RELU in generator and Leaky RELU in discriminator works better.
It is commonly believed that it is due to the fact that the discriminator has to adapt and change a lot during training. If the network has to change a lot, leaky RELU is better, since it allows the dead neurons to recover.

Obviously, the above discussion is about GANs, but we have a VAE here, so things can be different a lot. But I found out that DCGAN like architecture works pretty well.

I do not remember precisely, why it is decoding where leaky relu is used, but I think that I had the reasoning that the decoder will have to adapt more during training due to changes in the latent space. I think that overall, this configuration was working better in terms of the visual quality of the results, but I didn't do any quantitative study.

from vae.

botkevin avatar botkevin commented on August 29, 2024

Thanks a lot for your insight. I'm not fully convinced that the generator discriminator structure is completely analogous as GANs seem to have a more unstable balance between the two, but I do see the parallels.
I don't want to bother you too much, and this is somewhat irrelevant, but have you seen https://www.microsoft.com/en-us/research/blog/less-pain-more-gain-a-simple-method-for-vae-training-with-less-of-that-kl-vanishing-agony/ or the such before? It is essentially a scheduled kl-weight. They apply VAEs for NLP, but I am wondering if the benefits they claim would also be applicable for vision.

from vae.

Related Issues (3)

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.