yinboc / liif

Learning Continuous Image Representation with Local Implicit Image Function, in CVPR 2021 (Oral)
https://yinboc.github.io/liif/
BSD 3-Clause "New" or "Revised" License
1.25k stars 144 forks source link

运行demo.py出错 #38

Open vision-er opened 3 years ago

vision-er commented 3 years ago

将预训练模型放在项目文件夹里,我使用的命令格式如下: 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 commented 3 years ago

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

tryinggo commented 1 year ago

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??