developmentseed / developmentseed/label-maker

Add codes in labelling to ensure tiles inside bbx

Open
#195 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
472
Forks
106
PR merge metrics
No merged PRs in 30d

Description

## 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.