mirror of
https://github.com/Wan-Video/Wan2.1.git
synced 2025-12-16 12:13:27 +00:00
magcache support for Wan2.2
This commit is contained in:
commit
a9d13e80b5
6
wgp.py
6
wgp.py
@ -4012,11 +4012,9 @@ def generate_video(
|
|||||||
overridden_attention = get_overridden_attention(model_type)
|
overridden_attention = get_overridden_attention(model_type)
|
||||||
# if overridden_attention is not None and overridden_attention != attention_mode: print(f"Attention mode has been overriden to {overridden_attention} for model type '{model_type}'")
|
# if overridden_attention is not None and overridden_attention != attention_mode: print(f"Attention mode has been overriden to {overridden_attention} for model type '{model_type}'")
|
||||||
attn = overridden_attention if overridden_attention is not None else attention_mode
|
attn = overridden_attention if overridden_attention is not None else attention_mode
|
||||||
if attention_mode == "auto":
|
if attn == "auto":
|
||||||
attn = get_auto_attention()
|
attn = get_auto_attention()
|
||||||
elif attention_mode in attention_modes_supported:
|
elif not attn in attention_modes_supported:
|
||||||
attn = attention_mode
|
|
||||||
else:
|
|
||||||
send_cmd("info", f"You have selected attention mode '{attention_mode}'. However it is not installed or supported on your system. You should either install it or switch to the default 'sdpa' attention.")
|
send_cmd("info", f"You have selected attention mode '{attention_mode}'. However it is not installed or supported on your system. You should either install it or switch to the default 'sdpa' attention.")
|
||||||
send_cmd("exit")
|
send_cmd("exit")
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user