PaddlePaddle GAN library, including lots of interesting applications like First-Order motion transfer, Wav2Lip, picture repair, image editing, photo2cartoon, image style transfer, GPEN, and so on.
Apache License 2.0
7.84k
stars
1.24k
forks
source link
RuntimeError: (NotFound) Cannot open file inference_model.pdmodel, please confirm whether the file is normal. #612
python tools/inference.py --model_path inference_model --model_type msvsr -c configs/msvsr_reds.yaml --output_path output_dir
/data2/sfj_data/conda_envs/paddle/lib/python3.8/site-packages/paddle/vision/transforms/functional_pil.py:36: DeprecationWarning: NEAREST is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.NEAREST or Dither.NONE instead.
'nearest': Image.NEAREST,
/data2/sfj_data/conda_envs/paddle/lib/python3.8/site-packages/paddle/vision/transforms/functional_pil.py:37: DeprecationWarning: BILINEAR is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BILINEAR instead.
'bilinear': Image.BILINEAR,
/data2/sfj_data/conda_envs/paddle/lib/python3.8/site-packages/paddle/vision/transforms/functional_pil.py:38: DeprecationWarning: BICUBIC is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BICUBIC instead.
'bicubic': Image.BICUBIC,
/data2/sfj_data/conda_envs/paddle/lib/python3.8/site-packages/paddle/vision/transforms/functional_pil.py:39: DeprecationWarning: BOX is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BOX instead.
'box': Image.BOX,
/data2/sfj_data/conda_envs/paddle/lib/python3.8/site-packages/paddle/vision/transforms/functional_pil.py:40: DeprecationWarning: LANCZOS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.
'lanczos': Image.LANCZOS,
/data2/sfj_data/conda_envs/paddle/lib/python3.8/site-packages/paddle/vision/transforms/functional_pil.py:41: DeprecationWarning: HAMMING is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.HAMMING instead.
'hamming': Image.HAMMING
W0418 09:31:09.769675 32789 analysis_predictor.cc:795] The one-time configuration of analysis predictor failed, which may be due to native predictor called first and its configurations taken effect.
Traceback (most recent call last):
File "tools/inference.py", line 326, in <module>
main()
File "tools/inference.py", line 176, in main
predictor = create_predictor(args.model_path,
File "tools/inference.py", line 155, in create_predictor
predictor = paddle.inference.create_predictor(config)
RuntimeError: (NotFound) Cannot open file inference_model.pdmodel, please confirm whether the file is normal.
[Hint: Expected static_cast<bool>(fin.is_open()) == true, but received static_cast<bool>(fin.is_open()):0 != true:1.] (at /paddle/paddle/fluid/inference/api/analysis_predictor.cc:1116)
运行一下命令推理 msvsr 时,提示 --model_path 参数未设置
尝试指定 --model_path,依旧报错
请问这里的 --model_path 参数该如何设置?谢谢!