Skip to content

Add codes in labelling to ensure tiles inside bbx #195

@SereinJannie

Description

@SereinJannie

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions