Skip to content

Segmentation with 3 channel labels #2000

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

You must be logged in to vote

So your labels are RGB images with a classes represented by different colors?

RV does have the RGBClassTransformer class to deal with this type of data, but that functionality is not available when working with pre-chipped datasets (i.e. ImageDatasets).

To work around that limitation, you might try subclassing SemanticSegmentationImageDataset and SemanticSegmentationDataReader (source code here) to make use of RGBClassTransformer. Note that RGBClassTransformer adds a null class to the ClassConfig if not already present, so you might need to also set null_class='background' in ClassConfig to avoid any surprises.

Alternatively, you can use RGBClassTransformer to transform all the labels bef…

Replies: 6 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by AdeelH
Comment options

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

Comment options

You must be logged in to vote
3 replies
@AdeelH
Comment options

@lcoandrade
Comment options

@AdeelH
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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

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