deepmodeling / dpgen2

2nd generation of the Deep Potential GENerator
https://docs.deepmodeling.com/projects/dpgen2/
GNU Lesser General Public License v3.0
31 stars 22 forks source link

set input.json/train/numb_models = 1 may cause path errors #220

Closed BI1FOF closed 1 month ago

BI1FOF commented 2 months ago

When I did finetune with setting input.json/train/numb_models = 1, a NotADirectoryError occured.

Traceback (most recent call last):
  File "/argo/staging/script", line 33, in <module>
    output = op_obj.execute(input)
  File "/tmp/inputs/artifacts/dflow_python_packages/MY_PATH/python3.11/site-packages/dflow/python/op.py", line
136, in wrapper_exec
    op_out = func(self, op_in)
  File "/tmp/inputs/artifacts/dflow_python_packages/MY_PATH/python3.11/site-packages/dpgen2/superop/prep_run_dp
_train.py", line 114, in execute
    with open(train_script, "r") as fp:
NotADirectoryError: [Errno 20] Not a directory: '/tmp/inputs/artifacts/scripts/task.0000/input.json/task.0000/input.json'

The last 2 orders of the path repeated, making it find no input.json. I checked this process step of workflow, there exists scripts/task.0000/input.json and the content seemed to be normal. The workflow is https://workflows.deepmodeling.com/workflows/argo/dpa-ace-l62wv.

I then set input.json/train/numb_models = 2, changed the following input.json/train/init_models_paths, and made no other things changed. The error did not happen again.

zjgemi commented 1 month ago

Up to now, dpgen2 does not support the case where numb_model=1. I will close this issue.