Expected parameter covariance_matrix (Tensor of shape (4, 4)) of distribution MultivariateNormal

#19
by galazzo - opened

Hi,

With simple cut and paste of the provided demo code I get the following error:

Expected parameter covariance_matrix (Tensor of shape (4, 4)) of distribution MultivariateNormal(loc: torch.Size([4]), covariance_matrix: torch.Size([4, 4])) to satisfy the constraint PositiveDefinite(), but found invalid values:
tensor([[ 1.0000, -0.3333, -0.3333, -0.3333],
[-0.3333, 1.0000, -0.3333, -0.3333],
[-0.3333, -0.3333, 1.0000, -0.3333],
[-0.3333, -0.3333, -0.3333, 1.0000]])

galazzo changed discussion title from Loading takes endless time to Expected parameter covariance_matrix (Tensor of shape (4, 4)) of distribution MultivariateNormal

Please refer to https://github.com/jy0205/Pyramid-Flow/issues/53 for the solution.

Sign up or log in to comment