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

Add codes in labelling to ensure tiles inside bbx #195

Open
SereinJannie opened this issue Apr 25, 2024 · 0 comments
Open

Add codes in labelling to ensure tiles inside bbx #195

SereinJannie opened this issue Apr 25, 2024 · 0 comments

Comments

@SereinJannie
Copy link

Background

A bug was recorded in #176. In my testing, the tiles written in the label files after running the code label-maker labels are partly out of the bounding box provided inside the config file. I have added a checking function for this situation.

Changes

Inside the file label.py add the following function right before the function make_labels
屏幕截图 2024-04-24 223844
Inside the function make_labels, update the variable tile_results before writing out labels
屏幕截图 2024-04-24 224023

This would ensure the file labels.npz and classification.geojson not contain any tiles outside the bbx

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