When using the DP deep learning force field model graph.pb for energy and force calculations on structures, energy and force inference fails, with NAN as the output #4947
-
1:It never works when running on a single core. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
from your code model_path = "../graph.pb"
try:
model = DeepPot(model_path)
supported_types = model.get_type_map()
print(f"模型支持的原子类型: {supported_types}")
except Exception as e:
print(f"模型加载失败: {e}")
exit()
# 3. 设置计算器
try:
atoms.calc = DP(model=model_path, type_map=supported_types)
print("DeepMD计算器创建成功")
except Exception as e:
print(f"计算器创建失败: {e}")
exit() it is not correct to set please try not explicitly setting or if you really want to set a |
Beta Was this translation helpful? Give feedback.
-
Cannot reproduce:
|
Beta Was this translation helpful? Give feedback.
Cannot reproduce: