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

RuntimeError: (NotFound) Cannot open file #3314

Open
zzcqinag opened this issue Dec 4, 2024 · 2 comments
Open

RuntimeError: (NotFound) Cannot open file #3314

zzcqinag opened this issue Dec 4, 2024 · 2 comments
Assignees

Comments

@zzcqinag
Copy link

zzcqinag commented Dec 4, 2024

运行python python/predict_rec.py -c configs/inference_rec.yaml报错如下:
RuntimeError: (NotFound) Cannot open file ./models/general_PPLCNetV2_base_pretrained_v1.0_infer/, please confirm whether the file is normal.
微信图片_20241204153432
微信图片_20241204153610
路径都是英文的,目录下面模型都是存在的,这个咋解决?

@TingquanGao TingquanGao self-assigned this Dec 4, 2024
@TingquanGao
Copy link
Collaborator

看起来可能是路径在windows下使用的分隔符不对造成的。我们排查一下。

@TingquanGao
Copy link
Collaborator

想问下您的运行命令和配置文件是怎么写的呢?是不是模型路径的分隔符写成了“/”,在windows下应该用“\”

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants