gvtulder / elasticdeform

Differentiable elastic deformations for N-dimensional images (Python, SciPy, NumPy, TensorFlow, PyTorch).
Other
186 stars 25 forks source link

ModuleNotFoundError: No module named 'elasticdeform.torch' #18

Closed HilbertMaximov closed 5 months ago

HilbertMaximov commented 10 months ago

When I 'import elasticdeform.torch as etorch', it says: ModuleNotFoundError: No module named 'elasticdeform.torch', my elasticdeform version is 0.4.7, could you help me with this? Thank you very much!

gvtulder commented 10 months ago

That's strange. It might be an installation issue. Did you install the pip package or are you running this from git?

Can you import the package without elasticdeform? For example, does this give an error?

import elasticdeform
print(elasticdeform.deform_grid)

I tried to reproduce this in a clean virtual environment, but that doesn't give me any errors. Perhaps you could try that on your system?

I'd be curious to hear how that works for you.