Issue geoai-py python package: Multi-class preservation in instance_segmentation #598
Rahim-Biswas
started this conversation in
General
Replies: 1 comment 2 replies
-
|
Have you tried the semantic segmentation approach? https://opengeoai.org/examples/train_segmentation_model |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am training an instance segmentation model for 5 building classes using Roof_type. While training and inference run successfully, the output raster and the subsequent GeoJSON from orthogonalize lose the class values, collapsing all segmented objects into a single class.
My current workflow:
The orthogonalize output contains values ranging from 0 to 379 instead of preserving the 5 unique Roof_type IDs (0,1,2,3,4) from the training labels. You can see in the following image the values are ranging from 0 to 379 in the output (inferred) raster, where it should have been five individual classes.
Is there a way to force instance_segmentation to output Class IDs, or a method to join the predicted class labels to the vector output?
Beta Was this translation helpful? Give feedback.
All reactions