Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What does "ema" and "mr" mean in simple terms? #31

Closed
iboates opened this issue Mar 18, 2020 · 2 comments
Closed

What does "ema" and "mr" mean in simple terms? #31

iboates opened this issue Mar 18, 2020 · 2 comments

Comments

@iboates
Copy link
Contributor

iboates commented Mar 18, 2020

I'm trying to understand what these things mean, but I'm really not an expert in the theory of machine learning, it's more like an application-level interest for me. I know they stand for "something moving average" and "mixed regularity" Could you explain it in simple terms so I know a bit more about the outputs?

Sometimes it seems like these images are actually better than the "normal" one.

@lucidrains
Copy link
Owner

@iboates yup, EMA stands for exponential moving average, and it's simply a way to keep an approximate average of some variable, weighted by the more recent values. there's a trick to make this work, code-wise, by keeping and updating a single variable.

mixing regularity is a technique introduced in stylegan to improve disentanglement of each resolution layer (recall that in stylegan, the latent vector z is translated to style vector w by a feedforward network, each w is then fed into each resolution layer). what you do is, 10% of the time, you actually pick two random z's resulting in two random w's. you then feed N random resolution layers one of the w's and the rest the other

@johndpope
Copy link

Hey Phil, @lucidrains

I got a problem here related to ema.
danielroich/PTI#26

The PTI repo spits out a new torch generator/ and I’ve attempted to retrofit it back to a pkl file I can use. And it seems it’s the ema that’s out of whack -
https://gist.github.com/johndpope/d1e84bf42e43d266b9a640a2fc958e2d#file-notebook-py-L100

Question is
Could I retrospectively calculate the generator ema after the fact….

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants