fixed small issue with matanyone

This commit is contained in:
DeepBeepMeep 2025-06-21 13:16:32 +02:00
parent ab614b09a6
commit 743f6911a1
2 changed files with 3 additions and 2 deletions

View File

@ -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
View File

@ -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 = """