DeepWannier NN predicts 0 global dipole only, no atomic dipole #2243
-
Hello, I trained a DeepWannier neural network on a small set of training data (structures generated using MD at 500 K, then Wannier center calculations done using quantum espresso) as a proof-of-concept before generating a larger training set for an actually accurate model. The training completed successfully, and I then froze and compressed the model. I performed the inference following the script from the Princeton workshop over the summer: https://github.com/CSIprinceton/workshop-july-2022/blob/main/hands-on-sessions/day-2/4-deep-wannier/dipole_distribution.py However, when I infer from my model, I either get 0 or no output at all. When I ask for a global dipole moment only, I get 0: When I ask for the atomic dipoles as well, the output is blank: When I use the model distributed in the Princeton workshop with the structures provided, I do get non-zero dipole moments predicted by the model, so I don't think my DeepMD installation is the source of the problem. However, in case the information will be helpful, I am using DeepMD v2.1.5. Here is my training input file (converted from json to txt to be uploaded to github). Does anyone have any idea why my toy model won't predict a non-zero dipole moment? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi Ali, Can you provide a minimal example of the training set? |
Beta Was this translation helpful? Give feedback.
-
I trained a model with the data you provide. The model looks alright. You can test your model directly against the training data by
I guess the fact you get either get 0 or no output following the script from the Princeton workshop is due an incorrect atypes:
Please check "positions" and "cell" feeded to dipole model has the correct shape. |
Beta Was this translation helpful? Give feedback.
I trained a model with the data you provide. The model looks alright. You can test your model directly against the training data by