hellloxiaotian / ESRGCNN

Image Super-resolution with An Enhanced Group Convolutional Neural Network (Neural Networks, 2022)
https://github.com/hellloxiaotian/ESRGCNN
60 stars 5 forks source link

运行报错 #9

Open Yzs007 opened 1 year ago

Yzs007 commented 1 year ago

Traceback (most recent call last): File "C:\Users\DELL\Desktop\ESRGCNN-main\train.py", line 56, in main(cfg) File "C:\Users\DELL\Desktop\ESRGCNN-main\train.py", line 51, in main solver.fit() File "C:\Users\DELL\Desktop\ESRGCNN-main\solver.py", line 87, in fit sr = self.refiner(lr, scale).to(self.device) File "D:\anaconda3\envs\Pytorch\lib\site-packages\torch\nn\modules\module.py", line 1130, in _call_impl return forward_call(*input, kwargs) File "C:\Users\DELL\Desktop\ESRGCNN-main\model\esrgcnn.py", line 113, in forward b1 = self.b1(x1) File "D:\anaconda3\envs\Pytorch\lib\site-packages\torch\nn\modules\module.py", line 1130, in _call_impl return forward_call(*input, *kwargs) File "C:\Users\DELL\Desktop\ESRGCNN-main\model\esrgcnn.py", line 53, in forward out1_r = self.ReLU(remain1) File "D:\anaconda3\envs\Pytorch\lib\site-packages\torch\nn\modules\module.py", line 1130, in _call_impl return forward_call(input, kwargs) File "D:\anaconda3\envs\Pytorch\lib\site-packages\torch\nn\modules\activation.py", line 98, in forward return F.relu(input, inplace=self.inplace) File "D:\anaconda3\envs\Pytorch\lib\site-packages\torch\nn\functional.py", line 1455, in relu result = torch.relu_(input) RuntimeError: Output 1 of SplitWithSizesBackward0 is a view and is being modified inplace. This view is the output of a function that returns multiple views. Such functions do not allow the output views to be modified inplace. You should replace the inplace operation by an out-of-place one.

您好,请问一下这是什么原因?

hellloxiaotian commented 1 year ago

请检查一下你的环境是否和我们的环境相同。此外,建议使用Ubuntu系统。

Yzs007 commented 1 year ago

您好,我想请教一下一个问题。就是论文中用来对比的那些算法全都要自己跑一遍吗? 还是用原作者得出的指标(PSNR/SSIM)和原作者的预训练模型?