Description
openedon Dec 2, 2023
**I run it on the Bohrium platform.
machine type: 12 cores 46 GB 1 * NVIDIA GPU B
image name: deepmd-kit:2.2.7-cuda11.6
details:**
root@bohrium-12166-1068776:/data/cascade_HEA# dp convert-from -i model.pt -o model_new.pt
/opt/deepmd-kit-2.2.7/lib/python3.10/site-packages/scipy/init.py:146: UserWarning: A NumPy version >=1.16.5 and <1.23.0 is required for this version of SciPy (detected version 1.26.2
warnings.warn(f"A NumPy version >={np_minversion} and <{np_maxversion}"
WARNING:tensorflow:From /opt/deepmd-kit-2.2.7/lib/python3.10/site-packages/tensorflow/python/compat/v2_compat.py:107: disable_resource_variables (from tensorflow.python.ops.variable_scope) is deprecated and will be removed in a future version.
Instructions for updating:
non-resource variables are not supported in the long term
WARNING:root:To get the best performance, it is recommended to adjust the number of threads by setting the environment variables OMP_NUM_THREADS, TF_INTRA_OP_PARALLELISM_THREADS, and TF_INTER_OP_PARALLELISM_THREADS. See https://deepmd.rtfd.io/parallelism/ for more information.
Traceback (most recent call last):
File "/opt/deepmd-kit-2.2.7/bin/dp", line 10, in
sys.exit(main())
File "/opt/deepmd-kit-2.2.7/lib/python3.10/site-packages/deepmd_cli/main.py", line 635, in main
deepmd_main(args)
File "/opt/deepmd-kit-2.2.7/lib/python3.10/site-packages/deepmd/entrypoints/main.py", line 88, in main
convert(**dict_args)
File "/opt/deepmd-kit-2.2.7/lib/python3.10/site-packages/deepmd/entrypoints/convert.py", line 28, in convert
convert_to_21(input_model, output_model)
File "/opt/deepmd-kit-2.2.7/lib/python3.10/site-packages/deepmd/utils/convert.py", line 75, in convert_to_21
version = detect_model_version(input_model)
File "/opt/deepmd-kit-2.2.7/lib/python3.10/site-packages/deepmd/utils/convert.py", line 35, in detect_model_version
convert_pb_to_pbtxt(input_model, "frozen_model.pbtxt")
File "/opt/deepmd-kit-2.2.7/lib/python3.10/site-packages/deepmd/utils/convert.py", line 180, in convert_pb_to_pbtxt
graph_def.ParseFromString(f.read())
File "/opt/deepmd-kit-2.2.7/lib/python3.10/site-packages/tensorflow/python/lib/io/file_io.py", line 114, in read
self._preread_check()
File "/opt/deepmd-kit-2.2.7/lib/python3.10/site-packages/tensorflow/python/lib/io/file_io.py", line 76, in _preread_check
self._read_buf = _pywrap_file_io.BufferedInputStream(
tensorflow.python.framework.errors_impl.NotFoundError: model.pt; No such file or directory
root@bohrium-12166-1068776:/data/cascade_HEA#