openai / glow

Code for reproducing results in "Glow: Generative Flow with Invertible 1x1 Convolutions"
https://arxiv.org/abs/1807.03039
MIT License
3.11k stars 515 forks source link

Which part is encoder ,and which part is decoder? #106

Open Gpwner opened 3 years ago

Gpwner commented 3 years ago

In your paper,which is part belong to encoder, and which part belong to decoder?

Is the final 'squeeze + step of flow ' the decoder of Glow?

Any help will be appreciate!

cviviers commented 3 years ago

Hi Gpwner, Flows do not follow the encoder decoder architecture you see in VAEs. You only have a prior, typically a gaussian, which then gets transformed into your complex distribution. If you must, I guess you can see the entire flow as a both the encoder (in the normalizing direction) and the decoder (generative direction) since it is invertible. There are some great recent Youtube vids on this