aupendu / zero-restore

Zero-shot Single Image Restoration through Controlled Perturbation of Koschmieder's Model
MIT License
41 stars 5 forks source link

RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation #7

Closed Yiting1009 closed 9 months ago

Yiting1009 commented 1 year ago

Hi, thanks for your great work! But I get some problems when I am running watermodel.py. This confuses me for a long time. I used the operation: nn.ReLU(inplace=True) -> nn.ReLU(inplace=False), but I still got this error. I don't know how to solve it.

截屏2022-12-12 12 19 05

Thanks a lot!

aupendu commented 1 year ago

nn.ReLU(inplace=True) -> nn.ReLU(inplace=False)

wengzp1 commented 9 months ago

您好,感谢您的出色工作! 但是当我运行 watermodel.py 时遇到一些问题。这让我困惑了很长时间。 我使用了操作: nn.ReLU(inplace=True) -> nn.ReLU(inplace=False),但我仍然收到此错误。我不知道如何解决。 多谢! 截屏2022-12-12 12 19 05

hello,I want to ask did you finally solve the problem?

aupendu commented 9 months ago

Add .clone() in SKCov Layer's forward pass

image

qwertyuiasdbvezdr commented 5 months ago

您好,感谢您的出色工作! 但是当我运行 watermodel.py 时遇到一些问题。这让我困惑了很长时间。我使用了操作: nn.ReLU(inplace=True) -> nn。ReLU(inplace=False),但我仍然收到此错误。我不知道如何解决。多谢!截屏2022-12-12 12 19 05

你好,我想问一下你终于解决了问题吗?