Skip to content

Multiple Classes with Semantic Segmentation #2079

Answered by AdeelH
natedailey7 asked this question in Q&A
Discussion options

You must be logged in to vote

Yeah, I agree that is confusing. This is because of a discrepancy between the implementations of make_od_scene and make_ss_scene. For semantic segmentation, you'll have to do it like this:

train_ds = SemanticSegmentationSlidingWindowGeoDatasetCustom.from_uris(
    ...
    label_vector_source_kw=dict(
          vector_transformers=[ClassInferenceTransformer(
              default_class_id=None,
              class_id_to_filter={0: ['==', 'id', 0], 1: ['==', 'id', 1], 3: ['==', 'id', 3]})]), 
    ...
)
  • transformers --> vector_transformers
  • ClassInferenceTransformerConfig --> ClassInferenceTransformer

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@natedailey7
Comment options

Answer selected by natedailey7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants