Replies: 1 comment 5 replies
-
It seems that you have only one atom type in your model. Please change |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I hope you are doing well!
Forgive me if this is a bit of a foolish question on my part but I'm getting an error using Inference with Python API that I'm not understanding well.
The code I'm using is the following:
from deepmd.infer import DeepPot
import numpy as np
dp = DeepPot('graph.pb')
coord = np.array([[1,0,0], [0,0,1.5], [1,0,3]]).reshape([1, -1])
cell = np.diag(10 * np.ones(3)).reshape([1, -1])
atype = [1,0,1]
e, f, v = dp.eval(coord, cell, atype)
The training data used is for Crystalline Silicon (432 atoms, 603 timesteps), provided online from the Deepmodeling repository.
The error I am receiving is the following:
Input to reshape is a tensor with 160 values, but the requested shape requires a multiple of 480
Could you help me with this issue?
Thank you very much!
Beta Was this translation helpful? Give feedback.
All reactions