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

TypeError: expected Tensor as element 0 in argument 0, but got DiagonalGaussianDistribution #364

Open
yanjin340121 opened this issue Apr 25, 2024 · 1 comment

Comments

@yanjin340121
Copy link

TypeError: expected Tensor as element 0 in argument 0, but got DiagonalGaussianDistribution
File "/home/yj/projects/07-diffusion/latent-diffusion-main/ldm/models/diffusion/ddpm.py", line 850, in encode_first_stage
o = torch.stack(output_list, axis=-1)
When I try to use the super-resolution inference model, the above error occurs because when using autoencoder-kl, the DiagonalGaussianDistribution class data will be returned, resulting in the inability to concat. Has anyone encountered a similar situation?
image
image

@jianliang90
Copy link

I have the same problem doing superresolution, did you find soulution?

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