maziarraissi / PINNs

Physics Informed Deep Learning: Data-driven Solutions and Discovery of Nonlinear Partial Differential Equations
https://maziarraissi.github.io/PINNs
MIT License
3.45k stars 1.21k forks source link

Saving the Trained models #22

Open ankitlohiya212 opened 3 years ago

ankitlohiya212 commented 3 years ago

@maziarraissi

First off, thank you for sharing the code.

I have run the code for Navier Stokes. It took a long time to train and after that there was nothing to show for. So I request you to add a .save to your PhysicsInformedNN class.

guimilhoratti commented 1 year ago

@ankitlohiya212 @maziarraissi

Have you found a way to save a trained PINN model?

I am trying to save variable explorer (.spydata) using anaconda spyder and get this message: ‘"save data: some objects could not be saved: model".

Thank you

nkchr123 commented 1 year ago

@ankitlohiya212 @maziarraissi @guimilhoratti I am also trying to save the model to call the predict function. Please let me know if any possible solution available.

Thank you