In this case mu_chembl is array of shape (512, 512), and gen_mol_act is of shape(4640, 512)
now, calling
calculate_frechet_distance(mu1=np.mean(gen_mol_act, axis=0), mu2=mu_chembl, sigma1=np.cov(gen_mol_act.T), sigma2=cov_chembl) yields an assertion error: Training and test mean vectors have different lengths
Essentially, mu1 is of shape (512, ) while mu2 is of shape (512, 512).
Following the tutorial i do following:
In this case mu_chembl is array of shape
(512, 512),
and gen_mol_act is of shape(4640, 512)
now, calling
calculate_frechet_distance(mu1=np.mean(gen_mol_act, axis=0), mu2=mu_chembl, sigma1=np.cov(gen_mol_act.T), sigma2=cov_chembl)
yields an assertion error:Training and test mean vectors have different lengths
Essentially, mu1 is of shape (512, ) while mu2 is of shape (512, 512).
What would be the correct way of solving this?