Skip to content

Conversation

@almondheng
Copy link

Problem

When converting a Darwin JSON export with mask annotations for a single-slot DICOM/video into semantic mask format, ValueError("RasterLayer must be associated with at least one slot") is raised. This is due to the lack of "slot_names" in each frame of the annotations in the export.

Solution

For a single-slot DICOM/video, each frame annotation should share the same slot names as the main annotation, so we pass the slot_names of main annotation along with the name and id when parsing the frame annotations.

Changelog

Fix incompatibility between semantic mask export and single-slot DICOM/video annotation

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