model icon indicating copy to clipboard operation
model copied to clipboard

WIP implementation for patch level world cover embeddings

Open lillythomas opened this issue 1 year ago • 6 comments

Relates to https://github.com/orgs/Clay-foundation/discussions/291

lillythomas avatar Apr 25 '24 06:04 lillythomas

Hi @lillythomas ! Thanks so much for this. Would you also be able to update the worldcover script to include the option to generate embeddings with all bands included (not just partial inputs)? The app team is wondering if generating with only a couple bands is having an impact on performance.

cc @antymoro @lukaszknasiecki

lauracchen avatar Apr 25 '24 18:04 lauracchen

Hi @lauracchen sure thing!

lillythomas avatar Apr 25 '24 21:04 lillythomas

Actually @lauracchen it appears the Worldcover composite we are using is just RGB-Nir (https://esa-worldcover.org/en/data-access). There is a SWIR composite provided as well, which we can stack on the RGB-Nir, but this still misses out on 4/10 Sentinel-2 inputs. We can similarly stack the Sentinel-1 composite as well.

lillythomas avatar Apr 26 '24 17:04 lillythomas

Patch-level sim search with the currently-in-place RGB-Nir worldcover model is working, albeit the results are still a bit random:

Example 1: Screenshot 2024-04-26 at 11 30 11 AM

Example 2: Screenshot 2024-04-26 at 11 10 52 AM

Working on the adjustments per https://github.com/Clay-foundation/model/pull/231#issuecomment-2079780410

lillythomas avatar Apr 26 '24 19:04 lillythomas

hi @lillythomas

if we stack these 4 files, I think we might cover for all sentinel-2 bounds... correct?

https://esa-worldcover-s2.s3.amazonaws.com/swir/2020/N55/ESA_WorldCover_10m_2020_v100_N55E014_SWIR.tif https://esa-worldcover-s2.s3.amazonaws.com/ndvi/2020/N55/ESA_WorldCover_10m_2020_v100_N55E014_NDVI.tif https://esa-worldcover-s1.s3.amazonaws.com/gamma0/2020/N55/ESA_WorldCover_10m_2020_v100_N55E014_GAMMA0.tif https://esa-worldcover-s1.s3.amazonaws.com/vvvhratio/2020/N55/ESA_WorldCover_10m_2020_v100_N55E014_S1VVVHratio.tif

antymoro avatar Apr 29 '24 10:04 antymoro

@antymoro I've implemented the concatenation of the RGB-Nir composite with the SWIR and SAR composites (see the new script run_msi_sar.py). Feel free to try it on your end.

lillythomas avatar May 01 '24 22:05 lillythomas