About frozened model test error #268
Replies: 2 comments
-
Your pb file does not store elements when training. deepmd-kit/examples/water/train/water_se_a.json Lines 3 to 4 in 59d780c You can also pass deepmd-kit/source/train/calculator.py Lines 31 to 35 in 59d780c |
Beta Was this translation helpful? Give feedback.
-
Many thanks for the quick and helpful reply! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, there!
After frozening the model, I intend to test the model using 'dp test', got the error message:
dpmd120-cpu/lib/python3.7/site-packages/deepmd/calculator.py", line 52, in
atype = [self.type_dict[k] for k in symbols]
KeyError: 'S'
Locate this calculator.py file and print self.dp.get_type_map(), the output of self.dp.get_type_map() is empty!
Here is my situation: multiple systems are trained altogther. Under each folder, there is one system including type.raw and type_map.raw and the 'type_raw' settting in json file is removed. The multiple system training is perfectly good accroding to the RMSE of energy and force. However, based on the frozen model, the pb file, 'dp test' as well as some tests through dp coupling with ASE shows the same error message above.
Any suggestions are sinerely welcomed!
Shuai
Beta Was this translation helpful? Give feedback.
All reactions