Giter Club home page Giter Club logo

Comments (4)

chaiyujin avatar chaiyujin commented on August 19, 2024

As far as I am concerned, the GLOW (or normalization flow) model try to max likelihood of training data, which means max the log probability (the var objective in my code) and thus means min the -objective.

logdet += float(-np.log(256.) * pixels)

About this line, I cannot recall the details. It is supposed to handle some extra multiplication factor out of det().

  • -np.log(256.) is used to approx intergration for discrete pixel values.
  • pixels handles the (width, height) dimension of input.

from glow-pytorch.

Schwartz-Zha avatar Schwartz-Zha commented on August 19, 2024

Well, from my reading in another paper "Generative Flow via n * n Convolution: Thanh-Dat Truong et al.".
The data is added with a random uniform noise, which is the discretization level of the data, making the input continuous.

Could you get some hint? (I'm still confused...)

from glow-pytorch.

HuangChiEn avatar HuangChiEn commented on August 19, 2024
float(-np.log(256.) * pixels)

discretized level is a number denote the range of 8 bit pixel (2^8=256). So, glow paper mentioned c=-M x log a, where a=256 in Eq(2), while M is the number of total pixels in your image (i.e. 32 * 32 image, M=32*32).

from glow-pytorch.

HuangChiEn avatar HuangChiEn commented on August 19, 2024

@chaiyujin i wonder why the objectives will need to divided by float(np.log(2.) * pixels ? what is that means ?

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.