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

Build classification datasets with extract_chips #46

Open
munshkr opened this issue Jun 8, 2022 · 0 comments
Open

Build classification datasets with extract_chips #46

munshkr opened this issue Jun 8, 2022 · 0 comments
Labels
effort: 3 type: feature Brand new functionality, features, pages, workflows, endpoints, etc.

Comments

@munshkr
Copy link
Member

munshkr commented Jun 8, 2022

We could add a --dataset-type option to extract_chips, to choose between two modes:

  • classification: Each chip belongs to a class. Chips will be extracted and stored on separate directories per class.
  • segmentation (default): Same as current behavior. Chips and extent masks (or boundary/distance masks) are generated.

Example:

satproc_extract_chips ./image.tif \
    --dataset-type classification \
    --labels labels.geojson \
    --classes A B \
    -o ./chips/

Output directory structure:

./chips/
    A/
        0_0.tif
        0_1.tif    
        ...
    B/
        0_0.tif
        0_1.tif    
        ...
@munshkr munshkr added type: feature Brand new functionality, features, pages, workflows, endpoints, etc. effort: 3 labels Jun 8, 2022
@munshkr munshkr changed the title Build classification datasets with extract_chips Build classification datasets with extract_chips Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort: 3 type: feature Brand new functionality, features, pages, workflows, endpoints, etc.
Projects
None yet
Development

No branches or pull requests

1 participant