Skip to content
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
3 changes: 2 additions & 1 deletion swanlab/sdk/internal/run/transforms/video/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ def __init__(self, data_or_path: VideoDataType, caption: CaptionType = None):

@classmethod
def column_type(cls) -> ColumnType:
return ColumnType.COLUMN_TYPE_VIDEO
# TODO: 服务端支持 VIDEO 列类型后,改回 ColumnType.COLUMN_TYPE_VIDEO
return ColumnType.COLUMN_TYPE_IMAGE

def transform(self, *, step: int, path: Path) -> MediaItem:
content = self.buffer.getvalue()
Expand Down
3 changes: 2 additions & 1 deletion tests/unit/sdk/internal/run/transforms/test_video.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ class TestVideoColumnType:
def test_column_type(self):
from swanlab.proto.swanlab.metric.column.v1.column_pb2 import ColumnType

assert Video.column_type() == ColumnType.COLUMN_TYPE_VIDEO
# TODO: 服务端 column 暂时不支持 VIDEO,临时回退为 IMAGE
assert Video.column_type() == ColumnType.COLUMN_TYPE_IMAGE


class TestVideoBuildDataRecord:
Expand Down
Loading