DDU icon indicating copy to clipboard operation
DDU copied to clipboard

Error in gmm_fit(embeddings, labels, num_classes)

Open ReusJeffery opened this issue 1 year ago • 2 comments

UnboundLocalError: local variable 'gmm' referenced before assignment But when I removed the "break" in for loop,it worked.

ReusJeffery avatar May 30 '23 02:05 ReusJeffery

I found something wrong in gmm = torch.distributions.MultivariateNormal(loc=classwise_mean_features, covariance_matrix=(classwise_cov_features + jitter)) ValueError: Expected parameter covariance_matrix (Tensor of shape (10, 2048, 2048)) of distribution MultivariateNormal(loc: torch.Size([10, 2048]), covariance_matrix: torch.Size([10, 2048, 2048])) to satisfy the constraint PositiveDefinite(), but found invalid values

ReusJeffery avatar May 30 '23 03:05 ReusJeffery

Hi I have the same error did you solve it?

LailaAlhussain avatar Oct 09 '23 11:10 LailaAlhussain