sanghyun-son / EDSR-PyTorch

PyTorch version of the paper 'Enhanced Deep Residual Networks for Single Image Super-Resolution' (CVPRW 2017)
MIT License
2.44k stars 672 forks source link

The computer crashed suddenly #188

Closed LIMr1209 closed 5 years ago

LIMr1209 commented 5 years ago

def quantize(img, rgb_range): pixel_range = 255 / rgb_range return img.mul(pixel_range).clamp(0, 255).round().div(pixel_range)

In pycharm debug mode, when my code runs to this function, the computer crash the code runs normally Without debug ,the computer does not crash.

sanghyun-son commented 5 years ago

Hello.

Sorry for saying that we will not handle your issue as we are not assuming to run our code in the debug mode.

Still, you may break down a single line into multiple lines and see which part occurs the problem.

Ex)

img = img.mul(pixel_range)
img = img.clamp(0, 255)
img = img.round()
...

Thank you.

LIMr1209 commented 5 years ago

Thank you.