BaratiLab / OFormer

MIT License
50 stars 9 forks source link

ModuleNotFoundError: No module named 'nn_module.fourier_neural_operator' #2

Open RayshineRen opened 1 year ago

RayshineRen commented 1 year ago

It seems that the code released is not complete. If I run 'python -m train_burgers', the error occurs: ModuleNotFoundError: No module named 'nn_module.fourier_neural_operator'. And there is no fourier_neural_operator.py in the folder nn_module, how can I fix this bug?

zijieli-Jlee commented 1 year ago

You can safely remove the import of fourier_neural_operator as it is not being used in the training of the model

maedeh-sbri commented 3 weeks ago

I have removed the 'import fourier_neural_operator', but there are still some more problems.

How can I fix them?

zijieli-Jlee commented 2 weeks ago

Hi thanks for letting me know, dataset_new.py and utils.py are available in other directories but somehow missing in the uniform folder.

For the missing nn_module, please check https://github.com/BaratiLab/OFormer/blob/e52cd0bf269aef6757e078bb6a323cca6f221c2e/BVP/nn_module/encoder_module.py#L719C1-L720C1 and https://github.com/BaratiLab/OFormer/blob/e52cd0bf269aef6757e078bb6a323cca6f221c2e/BVP/nn_module/decoder_module.py#L1283C7-L1283C28

maedeh-sbri commented 2 weeks ago

Thanks for your answer.

But I want to run for the uniform_grids not BVP. The links that you've provided are for the BVP. Are the decoder_module.py and ancoder_module.py the same for the uniform grids and BVP?

zijieli-Jlee commented 2 weeks ago

In uniform_grids case, irregular encoder/decoder are not necessary but if you still want to use them feel free to just copy their classes from BVP