[Experimental][Perf] Eliminate redundant host copies from generated-video transport (#7355)
Signed-off-by: mglyn <1203789601@qq.com> Co-authored-by: Hongsheng Liu <liuhongsheng4@huawei.com>
This commit is contained in:
1 parent
c27a52a359
commit
3a82c85880
10 files changed
+339
-34
No files matched your search
@@ -2686,6 +2686,7 @@ class MiniMaxH3Pipeline(
|
||||
audio = audios[0] if len(audios) == 1 else torch.cat(audios, dim=0)
|
||||
return DiffusionOutput(
|
||||
output=(video, audio),
|
||||
video_output_index=0 if isinstance(video, torch.Tensor) else None,
|
||||
post_process_func=get_minimax_h3_post_process_func(self.od_config),
|
||||
stage_durations=(self.stage_durations if hasattr(self, "_stage_durations") else {}),
|
||||
)
|
||||
@@ -3049,6 +3050,7 @@ class MiniMaxH3Pipeline(
|
||||
self._release_stage_cache()
|
||||
return DiffusionOutput(
|
||||
output=(video, audio),
|
||||
video_output_index=0 if isinstance(video, torch.Tensor) else None,
|
||||
post_process_func=get_minimax_h3_post_process_func(self.od_config),
|
||||
stage_durations=(self.stage_durations if hasattr(self, "_stage_durations") else {}),
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user