Skip to content

Conversation

@paulnoirel
Copy link
Contributor

This patch fixes the issue where exporting a project that contains both videos data rows and skipped labels with label_generator() throws the error:

ValueError: Found mixed data types of video and text/image. Use project.export_labels() to export projects with mixed data types.

Actions:

  1. To prevent this from happening, the patch filters on skipped labels when looking for videos in the export.

  2. To prevent the error Can't infer data type from row data, the patch filters the skipped labels because the call to BV1Converter.deserialize_video

Note:

Due to this change, the output of len(list(project.label_generator())) and len(project.export_labels()) will be different for projects with both videos and skipped labels.

@paulnoirel paulnoirel changed the title Filter skipped labels for project with videos in label_generator() [AL-4986] Filter skipped labels for project with videos in label_generator() Feb 15, 2023
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.

3 participants