[Model] Add MiniMax-H3 long-video latent continuation with driving audio (#7838)
Signed-off-by: princepride <wangzhipeng628@gmail.com>
This commit is contained in:
17 files changed
+1089
-50
No files matched your search
@@ -358,6 +358,7 @@ class MiniMaxH3EncoderMediaInput:
|
||||
video_audios: tuple[tuple[torch.Tensor, int] | None, ...] = ()
|
||||
audios: tuple[tuple[torch.Tensor, int], ...] = ()
|
||||
keyframe_frame_indices: tuple[int, ...] = ()
|
||||
audio_mode: str = "native"
|
||||
video_edit: torch.Tensor | None = None
|
||||
video_edit_mask: torch.Tensor | None = None
|
||||
audio_edit: tuple[torch.Tensor, int] | None = None
|
||||
@@ -468,6 +469,7 @@ class MiniMaxH3EncoderMediaInput:
|
||||
if cursor != len(tensors):
|
||||
raise ValueError(f"MiniMax H3 encoder media input has {len(tensors) - cursor} trailing tensors")
|
||||
return cls(
|
||||
audio_mode=str(metadata.get("audio_mode", "native")),
|
||||
task=task,
|
||||
height=height,
|
||||
width=width,
|
||||
@@ -541,6 +543,7 @@ class MiniMaxH3EncoderMediaInput:
|
||||
|
||||
def to_metadata(self) -> dict[str, Any]:
|
||||
metadata = {
|
||||
"audio_mode": self.audio_mode,
|
||||
"task": self.task,
|
||||
"height": self.height,
|
||||
"width": self.width,
|
||||
|
||||
Reference in new issue
Block a user