-
Notifications
You must be signed in to change notification settings - Fork 14
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
[BUG] function only supports 2D spatial inputs, received 70283598 #60
Comments
Hi @ramonemiliani93, Thanks for reporting this. It is indeed a very odd behaviour. Did you try the unsigned geodesic functions directly? It may help debug further if you try those as well because signed distance is calling those functions internally... Also please indicate you gcc/g++ or related compiler version that you are using for installation |
I have looked into this with the same OS, Python and Pytorch versions that you mentioned failing here. Can you try the following:
This should resolve the issue you are seeing. Please do let me know if it doesnt. |
Hi @masadcv! Thanks a lot! This has solved the issue 💪 Tried it with torch 2.2.2 and it works 🙌 |
Hi 👋
First, I want to thank you for the amazing library 🙌. I'm encountering an issue while trying to run a simple example, and I would greatly appreciate any help or guidance you can provide.
Describe the bug
There is an error on
PyTorch==2.2.2
when running thesigned_generalised_geodesic3d
method.To Reproduce
Steps to reproduce the behavior:
pyenv local 3.10
python -m venv .venv
source .venv/bin/activate
pip install "torch==xxx" FastGeodis
Expected behavior
The method should compute the signed map and not raise
ValueError: function only supports 2D spatial inputs, received <number>
. From the torch versions I tried (all with python 3.10):torch==2.4.0
✅torch==2.3.1
✅torch==2.2.2
❌ValueError: function only supports 2D spatial inputs, received 69578766
torch==2.1.2
❌ImportError: dlopen(/Users/ramon/afxmedical/fastgeodis-bug/.venv/lib/python3.10/site-packages/FastGeodisCpp.cpython-310-darwin.so, 0x0002): Symbol not found: __ZN2at4_ops10empty_like4callERKNS_6TensorENSt3__18optionalIN3c1010ScalarTypeEEENS6_INS7_6LayoutEEENS6_INS7_6DeviceEEENS6_IbEENS6_INS7_12MemoryFormatEEE Referenced from: <F61DC557-D8F2-383F-AF8E-372C708E3C08>
torch==2.0.1
❌ImportError: dlopen(/Users/ramon/afxmedical/fastgeodis-bug/.venv/lib/python3.10/site-packages/FastGeodisCpp.cpython-310-darwin.so, 0x0002): Symbol not found: __ZN2at4_ops10empty_like4callERKNS_6TensorENSt3__18optionalIN3c1010ScalarTypeEEENS6_INS7_6LayoutEEENS6_INS7_6DeviceEEENS6_IbEENS6_INS7_12MemoryFormatEEE Referenced from: <F61DC557-D8F2-383F-AF8E-372C708E3C08>
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: