Revert "split out RunwayVideoOutput from VideoOutput"

This reverts commit 97719b0aab.
This commit is contained in:
Mary Hipp Rogers
2025-08-28 08:26:09 -04:00
parent b7c52f33dc
commit e600cdc826
2 changed files with 5 additions and 22 deletions

View File

@@ -293,35 +293,19 @@ class ImageCollectionInvocation(BaseInvocation):
# region Video
@invocation_output("runway_video_output")
class RunwayVideoOutput(BaseInvocationOutput):
"""Base class for nodes that output a runway result"""
video_url: str = OutputField(description="The output video url")
runway_task_id: str = OutputField(description="The runway task id")
@classmethod
def build(cls, video_url: str, runway_task_id: str) -> "RunwayVideoOutput":
return cls(
video_url=video_url,
runway_task_id=runway_task_id,
)
@invocation_output("video_output")
class VideoOutput(BaseInvocationOutput):
"""Base class for nodes that output a video"""
"""Base class for nodes that output a single video"""
video_id: str = OutputField(description="The output video id")
video: VideoField = OutputField(description="The output video")
width: int = OutputField(description="The width of the video in pixels")
height: int = OutputField(description="The height of the video in pixels")
duration_seconds: float = OutputField(description="The duration of the video in seconds")
@classmethod
def build(cls, video_id: str, width: int, height: int, duration_seconds: float) -> "VideoOutput":
def build(cls, video_name: str, width: int, height: int, duration_seconds: float) -> "VideoOutput":
return cls(
video_id=video_id,
video=VideoField(video_name=video_name),
width=width,
height=height,
duration_seconds=duration_seconds,
@@ -330,6 +314,7 @@ class VideoOutput(BaseInvocationOutput):
# endregion
# region DenoiseMask

View File

@@ -68,7 +68,6 @@ from invokeai.app.invocations.primitives import (
LatentsOutput,
StringCollectionOutput,
StringOutput,
RunwayVideoOutput,
VideoOutput,
)
from invokeai.app.invocations.scheduler import SchedulerOutput
@@ -158,7 +157,6 @@ __all__ = [
"LatentsOutput",
"StringCollectionOutput",
"StringOutput",
"RunwayVideoOutput",
"VideoOutput",
# invokeai.app.services.image_records.image_records_common
"ImageCategory",