Skip to content
Python

fixed continue last video with end frame test

DeepBeepMeep92f9ab8c56f0
diff --git a/README.md b/README.md
index 864fe7c..4fb12e1 100644
--- a/README.md
+++ b/README.md
@@ -49,7 +49,7 @@ Behold the WanGP Miracle ! Flux 2 wil work with only 8 GB of VRAM if you are hap
- **Z-Image**: a small model, very fast (8 steps), very low VRAM (optimized even more in WanGP for fun, just in case you want to generate 16 images at a time) that produces outstanding Image quality. Not yet the Flux 2 level, and no Image editing yet but a very good trade-off.
-While waiting for Z-Image edit, *WanGP 9.74* offers now support for **Z-Image Fun Control Net**. You can use it for *Pose transfer*, *Canny Edge* tranfer. Don't be surprise if it is a bit slower. Please note it will work best at 1080p and will require a minimum of 9 steps.
+While waiting for Z-Image edit, *WanGP 9.74* offers now support for **Z-Image Fun Control Net**. You can use it for *Pose transfer*, *Canny Edge* transfer. Don't be surprised if it is a bit slower. Please note it will work best at 1080p and will require a minimum of 9 steps.
- **Steady Dancer**: here is *Wan Steady Dancer* a very nice alternative to *Wan Animate*. You can transfer the motion of a Control video in a very smooth way. It will work best with Videos where the action happens center stage (hint: *dancing*). Use the *Lora accelerator* *Fusionix i2v 10 steps* for a fast generation. For higher quality you can set *Condition Guidance* to 2 or if you are very patient keep *Guidance* to a value greater than 1.
diff --git a/wgp.py b/wgp.py
index 515abd4..717a58b 100644
--- a/wgp.py
+++ b/wgp.py
@@ -805,7 +805,7 @@ def process_prompt_and_add_tasks(state, current_gallery_tab, model_choice):
gr.Info("Start Image should be an Image")
return ret()
if multi_prompts_gen_type in [1] and len(image_start) > 1:
- gr.Info("Only one Start Image is supported")
+ gr.Info("Only one Start Image is supported if the option 'Each Line Will be used for a new Sliding Window of the same Video Generation' is set")
return ret()
else:
image_start = None
@@ -820,13 +820,13 @@ def process_prompt_and_add_tasks(state, current_gallery_tab, model_choice):
if image_end == None :
gr.Info("End Image should be an Image")
return ret()
- if multi_prompts_gen_type in [0,2]:
- if video_source is not None:
- if len(image_end)> 1:
- gr.Info("If a Video is to be continued and the option 'Each New Line Will create a new generated Video' is set, there can be only one End Image")
- return ret()
- elif len(image_start or []) != len(image_end or []):
- gr.Info("The number of Start and End Images should be the same when the option 'Each New Line Will create a new generated Video'")
+ if (video_source is not None or "L" in image_prompt_type):
+ if multi_prompts_gen_type in [0,2] and len(image_end)> 1:
+ gr.Info("If you want to Continue a Video, you can use Multiple End Images only if the option 'Each Line Will be used for a new Sliding Window of the same Video Generation' is set")
+ return ret()
+ elif multi_prompts_gen_type in [0, 2]:
+ if len(image_start or []) != len(image_end or []):
+ gr.Info("The number of Start and End Images should be the same if the option 'Each Line Will be used for a new Sliding Window of the same Video Generation' is not set")
return ret()
else:
image_end = None