-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: Maximum allowed size exceeded #34
Comments
I had the same issue, the scaling you're using is too close to 1. |
PR would be great. Thanks |
Jean will correct me if I'm mistaken, but the real fix for you is to lower your scaling parameter I'd presume, except if you know you really, really can't do without this precision (also if you have put a scaling of 1 you will still end up having an infinite loop anyway, even with my PR) |
Hi there, I met the same question frequently. It seems the list of values created by np.arange is too long. So I tried with small scaling parameter (1e-3) but it came a again. So I wonder how can I do to fix or avoid this error? Thank u! |
For me it was the estimated |
I am trying to computer Sinkhorn distance between two tensor of size 2x256. My data are quite sparse.
I got the folowing error:
File "/usr/local/lib/python3.6/dist-packages/geomloss/sinkhorn_samples.py", line 48, in sinkhorn_tensorized diameter, ε, ε_s, ρ = scaling_parameters( x, y, p, blur, reach, diameter, scaling ) File "/usr/local/lib/python3.6/dist-packages/geomloss/sinkhorn_divergence.py", line 72, in scaling_parameters ε_s = epsilon_schedule( p, diameter, blur, scaling ) File "/usr/local/lib/python3.6/dist-packages/geomloss/sinkhorn_divergence.py", line 61, in epsilon_schedule + [ blur**p ] ValueError: Maximum allowed size exceeded
Why this is happening and how can i solve this?
Any help is highly appreciated. Thanks
The text was updated successfully, but these errors were encountered: