Skip to content

Comments

Change PascalVOC input interface to InstanceSegmentationInput#56

Merged
michal-lightly merged 4 commits intomainfrom
michal-lig-8013-semanticsegmentation-loading-in-lightlystudio-5
Jan 15, 2026
Merged

Change PascalVOC input interface to InstanceSegmentationInput#56
michal-lightly merged 4 commits intomainfrom
michal-lig-8013-semanticsegmentation-loading-in-lightlystudio-5

Conversation

@michal-lightly
Copy link
Contributor

What has changed and why?

Change PascalVOC input interface to InstanceSegmentationInput.

After a discussion with @MalteEbner, we decided to change the interface to InstanceSegmentationInput for semantic segmentations. This matches the pattern established for instance segmentations. Since the returned data format is the same there's no need for a new class.

This makes the SemanticSegmentationMask internal - it is not used as an LabelInput class interface.

To consider: Should we name the class differently? (Would be for a follow-up PR.)

How has it been tested?

Added a new test.

@michal-lightly
Copy link
Contributor Author

/review

Copy link
Contributor

@MalteEbner MalteEbner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, well done!

This makes the SemanticSegmentationMask internal - it is not used as an LabelInput class interface.
To consider: Should we name the class differently? (Would be for a follow-up PR.)

Would rename it to _SemanticSegmentationMask and add a comment that it is internal-only. Feel free to do it in this PR

@michal-lightly michal-lightly merged commit 325a20b into main Jan 15, 2026
2 checks passed
@michal-lightly michal-lightly deleted the michal-lig-8013-semanticsegmentation-loading-in-lightlystudio-5 branch January 15, 2026 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants