Skip to content
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

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

Open
RayshineRen opened this issue Jun 26, 2023 · 5 comments

Comments

@RayshineRen
Copy link

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
Copy link
Collaborator

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

@maedeh-sbri
Copy link

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

  • In 'from dataset_new import ElectroStatData' what is dataset_new? There's no such file.

  • "from utils import load_checkpoint, save_checkpoint, ensure_dir" Can you tell me the version of utils? The version that I'm using doesn't have load_checkpoint, save_checkpoint, ensure_dir.

  • "from nn_module.encoder_module import IrregSpatialEncoder2D" There is no function as "IrregSpatialEncoder2D" in "encoder_module".

  • "from nn_module.decoder_module import IrregSpatialDecoder2D" There is no function as "IrregSpatialDecoder2D" in "decoder_module".

How can I fix them?

@zijieli-Jlee
Copy link
Collaborator

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
Copy link

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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants