Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] hybrid descriptor training failed with KeyError #1051

Closed
njzjz opened this issue Aug 28, 2021 · 1 comment · Fixed by #1052
Closed

[BUG] hybrid descriptor training failed with KeyError #1051

njzjz opened this issue Aug 28, 2021 · 1 comment · Fixed by #1052
Labels

Comments

@njzjz
Copy link
Member

njzjz commented Aug 28, 2021

Summary

Traceback (most recent call last):
  File "/home/jz748/anaconda3/envs/dpdev113/bin/dp", line 33, in <module>
    sys.exit(load_entry_point('deepmd-kit', 'console_scripts', 'dp')())
  File "/home/jz748/codes/deepmd-kit/deepmd/entrypoints/main.py", line 437, in main
    train_dp(**dict_args)
  File "/home/jz748/codes/deepmd-kit/deepmd/entrypoints/train.py", line 102, in train
    _do_work(jdata, run_opt, is_compress)
  File "/home/jz748/codes/deepmd-kit/deepmd/entrypoints/train.py", line 158, in _do_work
    model.build(train_data, stop_batch)
  File "/home/jz748/codes/deepmd-kit/deepmd/train/trainer.py", line 318, in build
    = NeighborStat(self.ntypes, self.descrpt_param['rcut'])
KeyError: 'rcut'

Deepmd-kit version, installation way, input file, running commands, error log, etc.

2.0.0

Steps to Reproduce

cd examples/water/hybrid
dp train input.json

Further Information, Files, and Links

This worked in v2.0.0.b4.

@njzjz njzjz added the bug label Aug 28, 2021
@njzjz
Copy link
Member Author

njzjz commented Aug 28, 2021

Caused by #921.

njzjz added a commit to njzjz/deepmd-kit that referenced this issue Aug 28, 2021
amcadmus pushed a commit that referenced this issue Aug 28, 2021
@njzjz njzjz linked a pull request Aug 28, 2021 that will close this issue
@njzjz njzjz closed this as completed Aug 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant