allenai / satlas-super-resolution

Apache License 2.0
190 stars 24 forks source link

Inference result #6

Closed xuliu-cyber closed 6 months ago

xuliu-cyber commented 7 months ago

Hello, I use the esrgan_orig_2S2 pretrained model to infer grid, and I copy one low resolution image Anhui_Chaohu_2020_Spring_S2_RGB I got the high resolution image: QQ截图20240113172531 I have two questions: 1 Can color differences between different image grids be eliminated? 2 Why are there so many mosaics? I hope to receive your answer! Thank you!

piperwolters commented 7 months ago

Hi there, thank you for your issue.

It looks like a bug where the pixel values aren't being clamped between 0-1 before being converted to an image and saved - I have pushed a fix here. Let me know if this is fixes the weird color artifacts.

As far as differences between the grid cells, we have tried some blending techniques but haven't found any methods that work well. Most of them over-average and cause a blurriness at the borders. We'll keep working on this.

Also, are you using L1C or L2A Sentinel-2 images? The pretrained weights all used L1C imagery.

xuliu-cyber commented 7 months ago

Thanks, The clamp operation is useful! And I wonder how much the number of the input imgs effects the result?

piperwolters commented 6 months ago

I found that increasing the number of input images has a large effect in performance until you get to ~8-10 images, and after that the benefit is not as large.