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

运行demo.py出错 #38

Open
vision-er opened this issue Aug 4, 2021 · 2 comments
Open

运行demo.py出错 #38

vision-er opened this issue Aug 4, 2021 · 2 comments

Comments

@vision-er
Copy link

将预训练模型放在项目文件夹里,我使用的命令格式如下:
python demo.py --input 11.png --model [rdn-liif.pth] --resolution [HEIGHT],[WIDTH] --output 11_sr.png --gpu 0
但是一直报错:
FileNotFoundError: [Errno 2] No such file or directory: '[rdn-liif.pth]'
于是想是不是应该在MODEL_PATH里放地址,但也找不到这个,请问这个问题怎么处理

@xuejiancai
Copy link

Remove all [], i.e. [rdn-liif.pth] ->rdn-liif.pth and height,width

@tryinggo
Copy link

tryinggo commented Mar 1, 2023

python demo.py --input data/cloud.png --model scripts/edsr-baseline-liif.pth --resolution 5001,3001 --output output.png --gpu 0,

err:RuntimeError: scripts/edsr-baseline-liif.pth is a zip archive (did you mean to use torch.jit.load()?),why??

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

3 participants