From c11d00b94c93cf632635e1717af37ab0425bf1da Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Sat, 21 Sep 2024 00:27:52 +0300 Subject: [PATCH 1/2] update vae tile defaults --- examples/cogvideox_5b_example_01.json | 8 ++++---- examples/cogvideox_I2V_example_01.json | 8 ++++---- examples/cogvidex_fun_i2v_example_01.json | 8 ++++---- nodes.py | 8 ++++---- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/examples/cogvideox_5b_example_01.json b/examples/cogvideox_5b_example_01.json index 153960b..6c10fcb 100644 --- a/examples/cogvideox_5b_example_01.json +++ b/examples/cogvideox_5b_example_01.json @@ -392,10 +392,10 @@ }, "widgets_values": [ false, - 96, - 96, - 0.083, - 0.083, + 240, + 360, + 0.2, + 0.2, true ] } diff --git a/examples/cogvideox_I2V_example_01.json b/examples/cogvideox_I2V_example_01.json index b9c6e28..ee18e70 100644 --- a/examples/cogvideox_I2V_example_01.json +++ b/examples/cogvideox_I2V_example_01.json @@ -401,10 +401,10 @@ }, "widgets_values": [ false, - 96, - 96, - 0.083, - 0.083, + 240, + 360, + 0.2, + 0.2, true ] }, diff --git a/examples/cogvidex_fun_i2v_example_01.json b/examples/cogvidex_fun_i2v_example_01.json index b9f5fbe..5fb8da0 100644 --- a/examples/cogvidex_fun_i2v_example_01.json +++ b/examples/cogvidex_fun_i2v_example_01.json @@ -158,10 +158,10 @@ }, "widgets_values": [ false, - 96, - 96, - 0.083, - 0.083, + 240, + 360, + 0.2, + 0.2, true ] }, diff --git a/nodes.py b/nodes.py index 4c06493..1bdfe76 100644 --- a/nodes.py +++ b/nodes.py @@ -628,10 +628,10 @@ class CogVideoDecode: "enable_vae_tiling": ("BOOLEAN", {"default": False, "tooltip": "Drastically reduces memory use but may introduce seams"}), }, "optional": { - "tile_sample_min_height": ("INT", {"default": 96, "min": 16, "max": 2048, "step": 8}), - "tile_sample_min_width": ("INT", {"default": 96, "min": 16, "max": 2048, "step": 8}), - "tile_overlap_factor_height": ("FLOAT", {"default": 0.083, "min": 0.0, "max": 1.0, "step": 0.001}), - "tile_overlap_factor_width": ("FLOAT", {"default": 0.083, "min": 0.0, "max": 1.0, "step": 0.001}), + "tile_sample_min_height": ("INT", {"default": 240, "min": 16, "max": 2048, "step": 8}), + "tile_sample_min_width": ("INT", {"default": 360, "min": 16, "max": 2048, "step": 8}), + "tile_overlap_factor_height": ("FLOAT", {"default": 0.2, "min": 0.0, "max": 1.0, "step": 0.001}), + "tile_overlap_factor_width": ("FLOAT", {"default": 0.2, "min": 0.0, "max": 1.0, "step": 0.001}), "enable_vae_slicing": ("BOOLEAN", {"default": True, "tooltip": "VAE will split the input tensor in slices to compute decoding in several steps. This is useful to save some memory and allow larger batch sizes."}), } } From 33e67e0c98d2eeacb6adc5a61afb4f769e085570 Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Sat, 21 Sep 2024 00:29:07 +0300 Subject: [PATCH 2/2] Update nodes.py --- nodes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodes.py b/nodes.py index 1bdfe76..fc853c2 100644 --- a/nodes.py +++ b/nodes.py @@ -628,8 +628,8 @@ class CogVideoDecode: "enable_vae_tiling": ("BOOLEAN", {"default": False, "tooltip": "Drastically reduces memory use but may introduce seams"}), }, "optional": { - "tile_sample_min_height": ("INT", {"default": 240, "min": 16, "max": 2048, "step": 8}), - "tile_sample_min_width": ("INT", {"default": 360, "min": 16, "max": 2048, "step": 8}), + "tile_sample_min_height": ("INT", {"default": 240, "min": 16, "max": 2048, "step": 8, "tooltip": "Minimum tile height, default is half the height"}), + "tile_sample_min_width": ("INT", {"default": 360, "min": 16, "max": 2048, "step": 8, "tooltip": "Minimum tile width, default is half the width"}), "tile_overlap_factor_height": ("FLOAT", {"default": 0.2, "min": 0.0, "max": 1.0, "step": 0.001}), "tile_overlap_factor_width": ("FLOAT", {"default": 0.2, "min": 0.0, "max": 1.0, "step": 0.001}), "enable_vae_slicing": ("BOOLEAN", {"default": True, "tooltip": "VAE will split the input tensor in slices to compute decoding in several steps. This is useful to save some memory and allow larger batch sizes."}),