-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression checkerboard #317
Comments
@TaniaJG We conducted a pixel-wise regression for ABG, and the details are available in the CLAY documentation. We didn’t observe any checkerboard patterns during this process, but the results do appear somewhat pixelated because we upsampled the predictions from half the image size. We can generate predictions at the original image resolution by adding another upsampling layer in the model's fusion step. I’m not certain if this issue is specific to water images, but it would be worth testing this hypothesis further. |
Thank you Soumya for your fast response. Thanks!! |
I have encountered the same checkerboard pattern when I fine-tuned a regression model to make canopy height predictions on 0.5m RGB and NIR image patches of 224x224 size. Are there any recommendations on trying different feature maps or patches size for the Regressor()? Any guidance would be appreciated. |
Hi, I think I solved the problem. I corrected the standarization values given in metadata.yml, substracting the mean from the standard value. For example, for S2 red band, mean was 1552, and std was 1888. However, this std value seemed weird; indeed, it seemed mean+std value, instead of std itself. I did 1888-1552, to get std = 336, and now the stripped pattern has been removed. Now I get the typical checkerboard pattern, but that will be probably removed by replacing Conv2dTranspose with PixelShuffle. Could you please clarify why std values from metadata.yml have been added with mean values? |
Thanks, @TaniaJG for identifying the source of the checkerboard pattern. For my example, I had to calculate the mean and std for my imagery. However, my statistics were calculated with a NAN value of 0 included, which skewed the values. It's now just to upsample the results to the full resolution. |
Hiya folks! Interesting talk in this thread! I am also trying to solve such problems and tasks. I was also able to get better predictions after applying @TaniaJG suggestion to correct the mean and std values. However, some of the pixel-wise predictions are getting misplaced, could this be because I did not updated the Sentinel 1 values? Regards the Height I wam also trying to get estimations for the UK, for that I am using GEDI data at the RH98, same S1 and S2 as predictors, but here the estimations are very odd, any suggestions here @kjtheron? Thanks in advance for the help and guidance! :) |
I have not fully resolve this issue all together. But I can list some the decisions I made to improve my results.
I still need to upsample to the original resolution and perform another training run so assess the results. But with the suggestion above the results seemed good. |
Hello, I am using Clay to do pixel-wise regression on water images. I have fine-tuned the model, and when doing predictions, I am getting a checkerboard pattern in the prediction output. Any ideas about what is happening?
I have seen that the model outputs in half resolution, and interpolates the image to have it with same size as the input one. Is it possible to get a prediction from the model with same size as the input, without doing this interpolation?
Could this checkerboard pattern be related to the fact of using water images?
Thanks!!
The text was updated successfully, but these errors were encountered: