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?
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?