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

Sample probability #119

Open
abrichr opened this issue Jan 26, 2022 · 1 comment
Open

Sample probability #119

abrichr opened this issue Jan 26, 2022 · 1 comment

Comments

@abrichr
Copy link

abrichr commented Jan 26, 2022

Given a new image, we would like to determine the probability of an image given the trained model parameters (e.g. as described in http://proceedings.mlr.press/v97/balaji19a/balaji19a.pdf).

Creating a new cog endpoint in predict.py is an obvious starting point. Any suggestions on where to go from there would be greatly appreciated!

A surrogate approach might be to simply sample from the discriminator. If the discriminator estimates the probability that a sample came from the data distribution rather than model distribution, and for a particular image that probability is low, then the image has low probability given the training data. Assuming the GAN has been trained to generate images from the training data, does it follow that the image has low probability given the model parameters?

So instead of determining the probability of an image given the trained model parameters, we are determining the probability of the image given the training data. Is that right?

@abrichr abrichr changed the title Sample probability given trained model Sample probability Jan 26, 2022
@abrichr
Copy link
Author

abrichr commented Jan 29, 2022

Similarly, how can we use the text that was used to generate an image to calculate the image's probability?

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

1 participant