Open Someone-LikeU opened 3 years ago
I have the same problem. Have you solved it yet?
@Someone-LikeU Hey, I have tried to load the model in the following way, and it has loaded successfully.
`model_spec = torch.load('/content/edsr-baseline-liif.pth')['model']
model = models.make(model_spec, load_sd=True).cuda()`
Hi, I want to use your model to enlarge my image data as middle result, and then use the enlarged one to generate optical flow. So in my .py, I load the model the same way as you showed in demo.py, like:
SRmodel = models.make(th.load(args.model)['model'], load_sd=True).cuda()
but I get the errorKeyError: 'liif'
, It almost bothered me for a day, and I could not find out why, can you help me with it? Thank you very much, looking forward to your reply.