Adding extra loss to constrain the latent variable in VAE #58
utkarshp1161
started this conversation in
Ideas
Replies: 1 comment
-
You will need to define a custom loss in pyro following these guidelines: https://pyro.ai/examples/custom_objectives.html |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Maxim,
Thanks again for the great package.
I wish to accomplish the following:
I have a version of VAE in Keras with the following loss terms (following our work https://arxiv.org/abs/2402.02198):
x
has an associatedy
. I wish to constrain one of the latent variables to thisy
value.How to add this extra loss (custom loss) in the PyroVED
iVAE
class? Do you have any suggestions on where to add this loss term?Thank you!
Beta Was this translation helpful? Give feedback.
All reactions