From f7c4d5456cdfdccb64e21bebf2a610c19d82b884 Mon Sep 17 00:00:00 2001 From: "mulin.lyh" Date: Tue, 27 Feb 2024 15:39:43 +0800 Subject: [PATCH] fix lint issue --- .../multi_modal/text_to_video_synthesis_pipeline.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modelscope/pipelines/multi_modal/text_to_video_synthesis_pipeline.py b/modelscope/pipelines/multi_modal/text_to_video_synthesis_pipeline.py index 68f1cbec..59320577 100644 --- a/modelscope/pipelines/multi_modal/text_to_video_synthesis_pipeline.py +++ b/modelscope/pipelines/multi_modal/text_to_video_synthesis_pipeline.py @@ -81,7 +81,12 @@ class TextToVideoSynthesisPipeline(Pipeline): # Stack frames along a new dimension to create a 4D tensor (T, H, W, C) imgs_tensor = torch.stack(frames, dim=0) - torchvision.io.write_video(output_video_path, imgs_tensor, fps=8, video_codec='h264', options={'crf': '10'}) + torchvision.io.write_video( + output_video_path, + imgs_tensor, + fps=8, + video_codec='h264', + options={'crf': '10'}) if temp_video_file: video_file_content = b'' with open(output_video_path, 'rb') as f: