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

about defining z in train_AAE.py #8

Open
minkyujeon opened this issue Aug 23, 2019 · 1 comment
Open

about defining z in train_AAE.py #8

minkyujeon opened this issue Aug 23, 2019 · 1 comment

Comments

@minkyujeon
Copy link

Dear podgorskiy,

Thank you for your contribution to the open source community and academic. I was trying to use your code to perform novelty detection. Some codes of yours confused me, so I'd like to ask you If I'm wrong or misunderstanding something.

I'd like to ask about some lines in train_AAE.py. In line 173, variable z is defined as below.

z = torch.randn((batch_size, zsize)).view(-1, zsize, 1, 1)

Since x_fake comes from x, I think z should be defined as below

z = E(x)

I appreciate for your effort to review this code in advance.

@podgorskiy
Copy link
Owner

Please refer to eq. 9 from the paper.
image

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

2 participants