Skip to content
Python

fixes

deepbeepmeepa3a5e3b6e3f0
diff --git a/README.md b/README.md
index ec665f6..0750e8a 100644
--- a/README.md
+++ b/README.md
@@ -36,7 +36,7 @@ WanGP supports the Wan (and derived models), Hunyuan Video and LTV Video models
-----
## 🔥 Latest Updates :
-### January 1st 2026: WanGP v10, Happy New Year !
+### January 1st 2026: WanGP v10.01, Happy New Year !
- **Wan 2.2 i2v Stable Vision Infinity Pro 2**: SVI Pro 2 offers potentially unlimited Videos to Continue for i2v models. It will use either the Start frame as a Reference Image or you may provide an Anchor image to be used across all the windows or multiple Anchor Images one per Window.
@@ -44,13 +44,13 @@ WanGP supports the Wan (and derived models), Hunyuan Video and LTV Video models
- **Qwen Image 2512**: This December release offers Enhanced Human Realism, Finer Natural Details & Improved Text Rendering.
-- **Wan NVP4**: *Light2xv nvfp4 support for Wan 2.1 i2v*& t2v 1.3B*, you can now load nvfp4 (4 bits quantized file) in WanGP. These will make really a difference with RTX 50xx as they support natively scaled FP4 calculation. Other GPUs will get the pytorch fallback witch slower. This model can be useful for machines with low RAM. Don't expect significant VRAM reduction of much faster speed for non RTX 50xx owners. You will need to install the Light2xv kernels.
+- **Wan NVP4**: *Light2xv nvfp4 support for Wan 2.1 i2v & t2v 1.3B*, you can now load nvfp4 (4 bits quantized file) in WanGP. These will make really a difference with RTX 50xx as they support natively scaled FP4 calculation. Other GPUs will get the pytorch fallback which is slower. This model can be useful for machines with low RAM but don't expect significant VRAM reduction of much faster speed for non RTX 50xx owners. You will need to install the Light2xv kernels.
- **Nunckaku int4 & fp4 support for Qwen 2509 & Z Image**: int4 versions will work with most GPUs, fp4 will accelerate only RTX50xx. You will need to install the nunchaku kernels. See light2xv nvfp4 above, as the other comments apply here too.
- **Z Image Control Net 2.1**: Control Net upgraded should work better. I have enabled as well inpainting for the control net.
-- **Now Qwen Loras Accelerators Added**
+- **New Qwen Loras Accelerators Added**
*Quantization Kernels Wheels for Windows / Python 3.10 / Pytorch 2.70:*
- *Light2xv (WAN-FP4)*
diff --git a/docs/INSTALLATION.md b/docs/INSTALLATION.md
index 757d073..cc76485 100644
--- a/docs/INSTALLATION.md
+++ b/docs/INSTALLATION.md
@@ -291,3 +291,15 @@ If Sage attention doesn't work:
For more troubleshooting, see [TROUBLESHOOTING.md](TROUBLESHOOTING.md)
+
+## Quantization Kernels Wheels for Windows / Python 3.10 / Pytorch 2.70
+- Light2xv (WAN-FP4)
+ ```
+ pip install https://github.com/deepbeepmeep/kernels/releases/download/WAN_NVP4/lightx2v_kernel-0.0.1-cp39-abi3-win_amd64.whl
+ ```
+
+- Nunchaku
+ ```
+ pip install https://github.com/deepbeepmeep/kernels/releases/download/Nunchaku/nunchaku-1.1.0+torch2.7-cp310-cp310-win_amd64.whl
+ ```
+
diff --git a/models/wan/wan_handler.py b/models/wan/wan_handler.py
index 3251380..30e3fff 100644
--- a/models/wan/wan_handler.py
+++ b/models/wan/wan_handler.py
@@ -854,6 +854,12 @@ class family_handler():
if remove_background_images_ref !=0:
ui_defaults["remove_background_images_ref"] = 0
+ if settings_version < 2.41 and test_svi2pro(base_model_type):
+ ui_defaults.update({
+ "sliding_window_size": 81,
+ "sliding_window_overlap" : 4,
+ })
+
@staticmethod
def update_default_settings(base_model_type, model_def, ui_defaults):
ui_defaults.update({
@@ -969,6 +975,12 @@ class family_handler():
"sliding_window_size": 81,
})
+ if test_svi2pro(base_model_type):
+ ui_defaults.update({
+ "sliding_window_size": 81,
+ "sliding_window_overlap" : 4,
+ })
+
if base_model_type in ["i2v_2_2"]:
ui_defaults.update({"masking_strength": 0.1, "denoising_strength": 0.9})
diff --git a/wgp.py b/wgp.py
index d8e1b1f..9cfc33e 100644
--- a/wgp.py
+++ b/wgp.py
@@ -86,8 +86,8 @@ AUTOSAVE_TEMPLATE_PATH = AUTOSAVE_FILENAME
CONFIG_FILENAME = "wgp_config.json"
PROMPT_VARS_MAX = 10
target_mmgp_version = "3.6.10"
-WanGP_version = "10.0"
-settings_version = 2.41
+WanGP_version = "10.01"
+settings_version = 2.42
max_source_video_frames = 3000
prompt_enhancer_image_caption_model, prompt_enhancer_image_caption_processor, prompt_enhancer_llm_model, prompt_enhancer_llm_tokenizer = None, None, None, None
image_names_list = ["image_start", "image_end", "image_refs"]
@@ -4938,7 +4938,7 @@ def truncate_audio(generated_audio, trim_video_frames_beginning, trim_video_fram
end = len(generated_audio) - int(trim_video_frames_end * samples_per_frame)
return generated_audio[start:end if end > 0 else None]
-def custom_preprocess_video_with_mask(model_handler, base_model_type, model_def, pre_video_guide, video_guide, video_mask, height, width, max_frames, start_frame, fit_canvas, fit_crop, target_fps, block_size, expand_scale, video_prompt_type):
+def custom_preprocess_video_with_mask(model_handler, base_model_type, pre_video_guide, video_guide, video_mask, height, width, max_frames, start_frame, fit_canvas, fit_crop, target_fps, block_size, expand_scale, video_prompt_type):
pad_frames = 0
if start_frame < 0:
pad_frames= -start_frame
@@ -4980,7 +4980,7 @@ def custom_preprocess_video_with_mask(model_handler, base_model_type, model_def,
if video_guide.shape[1] == 0 or any_mask and video_mask.shape[1] == 0:
return None, None, None, None
- video_guide_processed, video_guide_processed2, video_mask_processed, video_mask_processed2 = model_handler.custom_preprocess(base_model_type = base_model_type, model_def = model_def, pre_video_guide = pre_video_guide, video_guide = video_guide, video_mask = video_mask, height = height, width = width, fit_canvas = fit_canvas , fit_crop = fit_crop, target_fps = target_fps, block_size = block_size, max_workers = max_workers, expand_scale = expand_scale, video_prompt_type=video_prompt_type)
+ video_guide_processed, video_guide_processed2, video_mask_processed, video_mask_processed2 = model_handler.custom_preprocess(base_model_type = base_model_type, pre_video_guide = pre_video_guide, video_guide = video_guide, video_mask = video_mask, height = height, width = width, fit_canvas = fit_canvas , fit_crop = fit_crop, target_fps = target_fps, block_size = block_size, max_workers = max_workers, expand_scale = expand_scale, video_prompt_type=video_prompt_type)
# if pad_frames > 0:
# masked_frames = masked_frames[0] * pad_frames + masked_frames