swz30 / MIRNetv2

[TPAMI 2022] Learning Enriched Features for Fast Image Restoration and Enhancement. Results on Defocus Deblurring, Denoising, Super-resolution, and image enhancement
Other
401 stars 56 forks source link

Do images in MIRNetv2 need to be normalized to [0,1] or [-1, 1]? #7

Closed Spacei567 closed 2 years ago

Spacei567 commented 2 years ago

Hi, Can you tell me in MIRNet v1 and MIRNet v2 wheather the images need to be normalized?

swz30 commented 2 years ago

Hi @Spacei567

The images are normalized to [0,1]

https://github.com/swz30/MIRNetv2/blob/917505bfd0803626412641b088e88eb9e3b0cdf2/demo.py#L132

Spacei567 commented 2 years ago

Thank you so much! And you research is excellent!