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: storage has wrong size: expected 0 got 1728 #12
Comments
This error is caused by PerceptualLoss. If PerceptualLoss is removed, the error will disappear. However it's not easy to handle PerceptualLoss. The downloaded “vgg19-dcbb9e9d.pth” file is put into the .cache/torch/hub/checkpoints, but the build_model function didn't work either. |
Hi @simdjeff, since we currently support test only, PerceptualLoss should not be used. What command did you use? The training code will be released next week. |
Hi @ckkelvinchan. I used the command |
Are you using Windows? |
Exception has occurred: RuntimeError
RealBasicVSR: PerceptualLoss: storage has wrong size: expected 0 got 1728
During handling of the above exception, another exception occurred:
File "D:\Users......\RealBasicVSR-master\realbasicvsr\models\restorers\real_basicvsr.py", line 65, in init
super().init(generator, discriminator, gan_loss, pixel_loss,
During handling of the above exception, another exception occurred:
File "D:\Users......\RealBasicVSR-master\realbasicvsr\models\builder.py", line 20, in build
return build_from_cfg(cfg, registry, default_args)
File "D:\Users......\RealBasicVSR-master\realbasicvsr\models\builder.py", line 58, in build_model
return build(cfg, MODELS, dict(train_cfg=train_cfg, test_cfg=test_cfg))
File "D:\Users......\RealBasicVSR-master\inference_realbasicvsr.py", line 67, in init_model
model = build_model(config.model, test_cfg=config.test_cfg)
File "D:\Users......\RealBasicVSR-master\inference_realbasicvsr.py", line 81, in main
model = init_model(args.config, args.checkpoint)
File "D:\Users......\RealBasicVSR-master\inference_realbasicvsr.py", line 149, in
main()
The text was updated successfully, but these errors were encountered: