From 2a04a526685adb1e300712f50cbccccfb579c726 Mon Sep 17 00:00:00 2001 From: tin2tin Date: Sat, 19 Aug 2023 10:33:17 +0200 Subject: [PATCH] Enable proxy rendering. --- __init__.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/__init__.py b/__init__.py index c72dd46..9689e5d 100644 --- a/__init__.py +++ b/__init__.py @@ -1093,7 +1093,7 @@ class SEQUENCER_OT_generate_movie(Operator): text_encoder_2=pipe.text_encoder_2, vae=pipe.vae, torch_dtype=torch.float16, - use_safetensors=True, + #use_safetensors=True, variant="fp16", ) @@ -1360,8 +1360,8 @@ class SEQUENCER_OT_generate_movie(Operator): strip.transform.filter = "SUBSAMPLING_3x3" scene.sequence_editor.active_strip = strip strip.name = str(seed) + "_" + prompt - #strip.use_proxy = True - #bpy.ops.sequencer.rebuild_proxy() + strip.use_proxy = True + bpy.ops.sequencer.rebuild_proxy() if i > 0: scene.frame_current = ( @@ -1738,7 +1738,7 @@ class SEQUENCER_OT_generate_image(Operator): text_encoder_2=pipe.text_encoder_2, vae=pipe.vae, torch_dtype=torch.float16, - use_safetensors=True, + #use_safetensors=True, variant="fp16", ) @@ -1891,8 +1891,8 @@ class SEQUENCER_OT_generate_image(Operator): scene.frame_current = ( scene.sequence_editor.active_strip.frame_final_start ) - #strip.use_proxy = True - #bpy.ops.sequencer.rebuild_proxy() + strip.use_proxy = True + bpy.ops.sequencer.rebuild_proxy() # Redraw UI to display the new strip. Remove this if Blender crashes: https://docs.blender.org/api/current/info_gotcha.html#can-i-redraw-during-script-execution bpy.ops.wm.redraw_timer(type="DRAW_WIN_SWAP", iterations=1)