mirror of
https://github.com/Wan-Video/Wan2.1.git
synced 2026-01-12 01:03:44 +00:00
standin: added warning if image is missing
This commit is contained in:
parent
e15afefb3d
commit
9e0354e14f
@ -777,7 +777,10 @@ class WanAny2V:
|
|||||||
if standin:
|
if standin:
|
||||||
from preprocessing.face_preprocessor import FaceProcessor
|
from preprocessing.face_preprocessor import FaceProcessor
|
||||||
standin_ref_pos = 1 if "K" in video_prompt_type else 0
|
standin_ref_pos = 1 if "K" in video_prompt_type else 0
|
||||||
if len(original_input_ref_images) < standin_ref_pos + 1: raise Exception("Missing Standin ref image")
|
if len(original_input_ref_images) < standin_ref_pos + 1:
|
||||||
|
if "I" in video_prompt_type:
|
||||||
|
print("Warning: Missing Standin ref image, make sure 'Inject only People / Objets' is selected or if there is 'Landscape and then People or Objects' there are at least two ref images.")
|
||||||
|
else:
|
||||||
standin_ref_pos = -1
|
standin_ref_pos = -1
|
||||||
image_ref = original_input_ref_images[standin_ref_pos]
|
image_ref = original_input_ref_images[standin_ref_pos]
|
||||||
image_ref.save("si.png")
|
image_ref.save("si.png")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user