Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -671,7 +671,7 @@ def worker(input_image, prompt, n_prompt, seed, total_second_length, latent_wind
|
|
671 |
if history_pixels is not None and total_generated_latent_frames > 0:
|
672 |
try:
|
673 |
output_filename = os.path.join(outputs_folder, f'{job_id}_final_{total_generated_latent_frames}.mp4')
|
674 |
-
save_bcthw_as_mp4(history_pixels, output_filename, fps=30)
|
675 |
stream.output_queue.push(('file', output_filename))
|
676 |
except Exception as e:
|
677 |
print(f"最終動画保存中にエラーが発生しました: {e}")
|
@@ -898,7 +898,7 @@ def worker(input_image, prompt, n_prompt, seed, total_second_length, latent_wind
|
|
898 |
output_filename = os.path.join(outputs_folder, f'{job_id}_{total_generated_latent_frames}.mp4')
|
899 |
|
900 |
save_start_time = time.time()
|
901 |
-
save_bcthw_as_mp4(history_pixels, output_filename, fps=30)
|
902 |
print(f"動画保存完了、所要時間: {time.time() - save_start_time:.2f}秒")
|
903 |
|
904 |
print(f'デコード完了。現在の潜在変数形状 {real_history_latents.shape}; ピクセル形状 {history_pixels.shape}')
|
|
|
671 |
if history_pixels is not None and total_generated_latent_frames > 0:
|
672 |
try:
|
673 |
output_filename = os.path.join(outputs_folder, f'{job_id}_final_{total_generated_latent_frames}.mp4')
|
674 |
+
save_bcthw_as_mp4(history_pixels, output_filename, fps=30, crf=18)
|
675 |
stream.output_queue.push(('file', output_filename))
|
676 |
except Exception as e:
|
677 |
print(f"最終動画保存中にエラーが発生しました: {e}")
|
|
|
898 |
output_filename = os.path.join(outputs_folder, f'{job_id}_{total_generated_latent_frames}.mp4')
|
899 |
|
900 |
save_start_time = time.time()
|
901 |
+
save_bcthw_as_mp4(history_pixels, output_filename, fps=30, crf=18)
|
902 |
print(f"動画保存完了、所要時間: {time.time() - save_start_time:.2f}秒")
|
903 |
|
904 |
print(f'デコード完了。現在の潜在変数形状 {real_history_latents.shape}; ピクセル形状 {history_pixels.shape}')
|