Open de-gozaru opened 1 year ago
I had the same issue, and it turned out that I wasn't in the right environment. Note that, while you can pip install geomloss, you need to install KeOps as well.
Install PyTorch.
Install the KeOps library.
Install GeomLoss with: pip install geomloss
If that doesn't work, there also might be a bug with name
defaulting to None
and thus getting nothing from the list. A way around this is passing in the kernel function you want instead of going with the default argument value:
from geomloss.kernel_samples import gaussian_kernel
geomloss.SamplesLoss(loss='hausdorff', p=2, kernel=gaussian_kernel, blur=.05, verbose=True)
Hi Jean,
Thank you for the excellent library!
I have a question about how to use the Hausdorff distance. I'm using it like this:
however, I got the following error:
Am I doing something wrong?
Thank you in advance for your help!