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

Avoid running models on void patches #488

Open
micpilon opened this issue Feb 22, 2023 · 0 comments
Open

Avoid running models on void patches #488

micpilon opened this issue Feb 22, 2023 · 0 comments

Comments

@micpilon
Copy link

micpilon commented Feb 22, 2023

The images that are passed to the models do not always have a uniform, quadrilateral shape. This causes that sometimes, patches completely void of data are passed to the model, which can considerably increase the execution time of the model. This is mainly the case for orthophoto mosaics, where the aggregation of multiple photos generates irregular shapes.

Here is an example, while the boundaries of the following image (red) virtually doubles the surface of the dataset compared to its actual valid extent (white)

image (14)

It would be interesting to develop a method to skip patches that contain only a unique value (i.e. 0) and no valuable information and thus save model execution time, in this case by nearly 50%.

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

1 participant