How to predict a system's energies through a pt file? 🙏 #732
Answered
by
njzjz
The-one-on-the-moon
asked this question in
Q&A
-
I was trying to verify a pt file's accuracy which is finetuned from dpa-2. training_systems = dpdata.LabeledSystem(path, fmt='deepmd/npy')
# predict = training_systems.predict('./frozen_model.pth')
predict = training_systems.predict('./model.ckpt.pt') The error was below File "~/deepmd-kit/lib/python3.11/site-packages/deepmd/infer/deep_eval.py", line 189, in _load_graph
graph_def.ParseFromString(f.read())
google.protobuf.message.DecodeError: Error parsing message with type 'tensorflow.GraphDef'
I've done this prediction by a pb file, so I wonder if it works with pt file. Thanks for your support, looking forward to your replies ! |
Beta Was this translation helpful? Give feedback.
Answered by
njzjz
Sep 24, 2024
Replies: 1 comment 3 replies
-
Do you use DeePMD-kit v3? |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
The-one-on-the-moon
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do you use DeePMD-kit v3?