cszn / DPIR

Plug-and-Play Image Restoration with Deep Denoiser Prior (IEEE TPAMI 2021) (PyTorch)
MIT License
654 stars 101 forks source link

Using main_dpir_sisr_real_applications.py throws AttributeError #16

Open KeygenLLC opened 2 years ago

KeygenLLC commented 2 years ago

I have duplicated main_dpir_sisr_real_applications.py and pointed it to my images folder. Running this script produces the following error:

k = sr.shift_pixel(k, sf)  # shift the kernel
AttributeError: module 'utils.utils_sisr' has no attribute 'shift_pixel'

I'm running this in CPU mode.

Any way to fix this error or is there an updated file?

Thanks