Giter Club home page Giter Club logo

Comments (4)

rosinality avatar rosinality commented on August 10, 2024 3

I added priors in every blocks because of split2d_prior in this lines: https://github.com/openai/glow/blob/eaff2177693a5d84a1cf8ae19e8e0441715b82f8/model.py#L551

I think easy way to use class conditions is use class labels as an additional inputs is NN of affine coupling layers:

self.net = nn.Sequential(

from glow-pytorch.

homerjed avatar homerjed commented on August 10, 2024 2

Following @rosinality's advice, it works with label conditioning on MNIST.

I added a label conditioning to the affine coupling layers instead of the prior (this is good because the net in this layer doesn't interfere with the invertibility of the model).

I also added a classifier working on the forward pass of the model. This classifies the final latent vector output and the logits are compared with the labels in a loss term added to the total original loss.

Thanks again @rosinality :)

(these are some samples with a shallow model with minimal filters in the coupling net)

image

from glow-pytorch.

szulm avatar szulm commented on August 10, 2024

@hologerry Can you share the codes about y condition? Thank you very much!

from glow-pytorch.

Moleculebo avatar Moleculebo commented on August 10, 2024

@hologerry Can you share the codes about y condition? Thank you very much!

Hi, do you solve the problem? Can you share the codes about y condition? Thank you very much!

from glow-pytorch.

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.