mirror of
https://github.com/Wan-Video/Wan2.1.git
synced 2025-11-04 14:16:57 +00:00
fixed small issue with matanyone
This commit is contained in:
parent
ab614b09a6
commit
743f6911a1
@ -944,6 +944,7 @@ class WanModel(ModelMixin, ConfigMixin):
|
|||||||
if torch.is_tensor(freqs) and freqs.device != device:
|
if torch.is_tensor(freqs) and freqs.device != device:
|
||||||
freqs = freqs.to(device)
|
freqs = freqs.to(device)
|
||||||
|
|
||||||
|
|
||||||
x_list = x
|
x_list = x
|
||||||
joint_pass = len(x_list) > 1
|
joint_pass = len(x_list) > 1
|
||||||
is_source_x = [ x.data_ptr() == x_list[0].data_ptr() and i > 0 for i, x in enumerate(x_list) ]
|
is_source_x = [ x.data_ptr() == x_list[0].data_ptr() and i > 0 for i, x in enumerate(x_list) ]
|
||||||
|
|||||||
4
wgp.py
4
wgp.py
@ -6295,10 +6295,10 @@ def set_new_tab(tab_state, new_tab_no):
|
|||||||
else:
|
else:
|
||||||
vmc_event_handler(True)
|
vmc_event_handler(True)
|
||||||
tab_state["tab_no"] = new_tab_no
|
tab_state["tab_no"] = new_tab_no
|
||||||
|
return gr.Tabs()
|
||||||
|
|
||||||
def select_tab(tab_state, evt:gr.SelectData):
|
def select_tab(tab_state, evt:gr.SelectData):
|
||||||
set_new_tab(tab_state, evt.index)
|
return set_new_tab(tab_state, evt.index)
|
||||||
return gr.Tabs()
|
|
||||||
|
|
||||||
def get_js():
|
def get_js():
|
||||||
start_quit_timer_js = """
|
start_quit_timer_js = """
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user