Skip to content

[PLT-1231] Add missing media types #1705

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions libs/labelbox/src/labelbox/schema/media_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ class MediaType(Enum):
Unknown = "UNKNOWN"
Unsupported = "UNSUPPORTED"
Video = "VIDEO"
Point_Cloud = "POINT_CLOUD"
Copy link
Contributor

Choose a reason for hiding this comment

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

what is point_cloud :)?

Copy link

Choose a reason for hiding this comment

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

a point cloud is a 3d scene with only points, no edges.

LLM = "LLM"

@classmethod
def _missing_(cls, name):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,6 @@ def validate_iso_format(date_string: str):
ConversationData,
DocumentData,
DicomData,
LlmPromptCreationData,
LlmPromptResponseCreationData,
LlmResponseCreationData,
],
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,6 @@ def validate_iso_format(date_string: str):
ConversationData,
DocumentData,
DicomData,
LlmPromptCreationData,
LlmPromptResponseCreationData,
LlmResponseCreationData,
],
)
Expand Down
4 changes: 3 additions & 1 deletion libs/labelbox/tests/integration/test_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,9 @@ def test_media_type(client, project: Project, rand_gen):
for media_type in MediaType.get_supported_members():
# Exclude LLM media types for now, as they are not supported
if MediaType[media_type] in [
MediaType.LLMPromptCreation, MediaType.LLMPromptResponseCreation
MediaType.LLMPromptCreation,
MediaType.LLMPromptResponseCreation,
MediaType.LLM
]:
continue

Expand Down