s2cnn icon indicating copy to clipboard operation
s2cnn copied to clipboard

No module named 'lie_learn.representations.SO3.irrep_bases'

Open EricPengShuai opened this issue 3 years ago • 4 comments

@mariogeiger In your provided MNIST example, running S2CNN encounters the following problem about lie_learn module.

Traceback (most recent call last):
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "C:\Users\peng\anaconda3\envs\pytorch_1.8\lib\site-packages\lie_learn\representations\SO3\wigner_d.py", line 5, in <module>
    from lie_learn.representations.SO3.irrep_bases import change_of_basis_matrix
ModuleNotFoundError: No module named 'lie_learn.representations.SO3.irrep_bases'

Originally posted by @EricPengShuai in https://github.com/jonkhler/s2cnn/issues/52#issuecomment-893144464

EricPengShuai avatar Aug 08 '21 10:08 EricPengShuai

Hi, I'm sorry because this repository is not maintained since a long time. I have the plan to reproduce the architecture and experiments of this repository within the e3nn library that I maintain. The only missing component is the SO3 Fourier transform.

mariogeiger avatar Aug 08 '21 12:08 mariogeiger

@mariogeiger Sorry to bother you, can I implement spherical CNNs (s2cnn) with the help of e3cnn? Or do you have time to rewrite and maintain this repository? Thanks in advance!

EricPengShuai avatar Mar 09 '22 08:03 EricPengShuai

Here is an implementation using e3nn: https://github.com/e3nn/e3nn/tree/main/examples/s2cnn/mnist

There still might be an issue with this code, I remember it was not training properly last time I tried.

The fast Fourier transform is still missing for the so3 transformation, here is the current naive implementation it is using: https://github.com/e3nn/e3nn/blob/main/e3nn/o3/_so3grid.py

mariogeiger avatar Mar 09 '22 14:03 mariogeiger

@mariogeiger Thanks for the e3nn implementation. The test accuracy is about 40% for me after 20 epochs, do you have any ideas as to what the issue might be?

nhey avatar Apr 16 '22 11:04 nhey