Skip to content
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

Inference pretrained model #26

Open
oguzhannysr opened this issue Apr 16, 2024 · 1 comment
Open

Inference pretrained model #26

oguzhannysr opened this issue Apr 16, 2024 · 1 comment

Comments

@oguzhannysr
Copy link

oguzhannysr commented Apr 16, 2024

@loicland @VSainteuf Hello, thank you for the work. I want to test the trained model for my own region. How should my input data ? For example, I obtained all cloud-free Sentinel-2 images from 2020-2021 for the area I specified. Afterwards, I combined these different dates with numy. Now I have an image numpy array of size 10800(h)*10800(w)*13(ch)*34(date). I should save them in 256(h)*256(w)*13(ch)*34(date) pieces with numpy.save and use these npy files for inference?

@VSainteuf
Copy link
Owner

Hi @oguzhannysr, you can have a look at the documentation of the dataset here.
The model has been trained on patches of size 128x128x10xT (we don't use bands B01,B09, and B10 for sentinel2).

In addition to the numpy files you will need to provide the metadata file ('metadata.geojson' in the original dataset). It specifies the ID of each patch and the dates of the observations of each image for a given patch. You'll need to have a look at the original metadata file to see how it's formatted.
If I understand correctly that in your dataset all patches have the same observation dates then you don't need the metadata file but you will need to slightly modify the dataloader accordingly. And always provide the same date sequence in the getitem.
Hope this helps !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants