mirror of
https://github.com/Wan-Video/Wan2.1.git
synced 2025-12-15 11:43:21 +00:00
fix autodownload modules
This commit is contained in:
parent
7b3715f410
commit
ecd219322f
12
wgp.py
12
wgp.py
@ -2501,6 +2501,8 @@ def download_models(model_filename = None, model_type= None, module_type = None,
|
||||
if module_type is not None:
|
||||
key_name = "modules"
|
||||
URLs = module_type
|
||||
if isinstance(module_type, str):
|
||||
URLs = get_model_recursive_prop(module_type, key_name, sub_prop_name="_list", return_list= False)
|
||||
else:
|
||||
key_name = "URLs" if submodel_no <= 1 else f"URLs{submodel_no}"
|
||||
URLs = get_model_recursive_prop(model_type, key_name, return_list= False)
|
||||
@ -6783,11 +6785,11 @@ def change_guidance_phases(state, guidance_phases):
|
||||
return gr.update(visible= guidance_phases >=3 and multiple_submodels) , gr.update(visible= guidance_phases >=2), gr.update(visible= guidance_phases >=2, label = label), gr.update(visible= guidance_phases >=3), gr.update(visible= guidance_phases >=2), gr.update(visible= guidance_phases >=3)
|
||||
|
||||
|
||||
memory_profile_choices= [ ("HighRAM_HighVRAM, profile 1: at least 48 GB of RAM and 24 GB of VRAM, the fastest for short videos with a RTX 3090 / RTX 4090", 1),
|
||||
("HighRAM_LowVRAM, profile 2 (Recommended): at least 48 GB of RAM and 12 GB of VRAM, the most versatile profile with high RAM, better suited for RTX 3070/3080/4070/4080 or for RTX 3090 / RTX 4090 with large pictures batches or long videos", 2),
|
||||
("LowRAM_HighVRAM, profile 3: at least 32 GB of RAM and 24 GB of VRAM, adapted for RTX 3090 / RTX 4090 with limited RAM for good speed short video",3),
|
||||
("LowRAM_LowVRAM, profile 4 (Default): at least 32 GB of RAM and 12 GB of VRAM, if you have little VRAM or want to generate longer videos",4),
|
||||
("VerylowRAM_LowVRAM, profile 5: (Fail safe): at least 16 GB of RAM and 10 GB of VRAM, if you don't have much it won't be fast but maybe it will work",5)]
|
||||
memory_profile_choices= [ ("Profile 1, HighRAM_HighVRAM: at least 64 GB of RAM and 24 GB of VRAM, the fastest for short videos with a RTX 3090 / RTX 4090", 1),
|
||||
("Profile 2, HighRAM_LowVRAM: at least 64 GB of RAM and 12 GB of VRAM, the most versatile profile with high RAM, better suited for RTX 3070/3080/4070/4080 or for RTX 3090 / RTX 4090 with large pictures batches or long videos", 2),
|
||||
("Profile 3, LowRAM_HighVRAM: at least 32 GB of RAM and 24 GB of VRAM, adapted for RTX 3090 / RTX 4090 with limited RAM for good speed short video",3),
|
||||
("Profile 4, LowRAM_LowVRAM (Recommended): at least 32 GB of RAM and 12 GB of VRAM, if you have little VRAM or want to generate longer videos",4),
|
||||
("Profile 5, VerylowRAM_LowVRAM (Fail safe): at least 24 GB of RAM and 10 GB of VRAM, if you don't have much it won't be fast but maybe it will work",5)]
|
||||
|
||||
def detect_auto_save_form(state, evt:gr.SelectData):
|
||||
last_tab_id = state.get("last_tab_id", 0)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user