Repository navigation
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
Answered
by
njzjz
Zhou-tao-USTC
asked this question in
Q&A
|
1:It never works when running on a single core. |
Answered by
njzjz
Sep 1, 2025
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 |
1 reply
|
Cannot reproduce: |
0 replies
Answer selected by
Zhou-tao-USTC
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cannot reproduce: