feat: add performance loras to the end of the loras array
This commit is contained in:
parent
c995511705
commit
f030490144
|
|
@ -237,10 +237,12 @@ def worker():
|
||||||
|
|
||||||
steps = performance_selection.steps()
|
steps = performance_selection.steps()
|
||||||
|
|
||||||
|
performance_loras = []
|
||||||
|
|
||||||
if performance_selection == Performance.EXTREME_SPEED:
|
if performance_selection == Performance.EXTREME_SPEED:
|
||||||
print('Enter LCM mode.')
|
print('Enter LCM mode.')
|
||||||
progressbar(async_task, 1, 'Downloading LCM components ...')
|
progressbar(async_task, 1, 'Downloading LCM components ...')
|
||||||
loras += [(modules.config.downloading_sdxl_lcm_lora(), 1.0)]
|
performance_loras += [(modules.config.downloading_sdxl_lcm_lora(), 1.0)]
|
||||||
|
|
||||||
if refiner_model_name != 'None':
|
if refiner_model_name != 'None':
|
||||||
print(f'Refiner disabled in LCM mode.')
|
print(f'Refiner disabled in LCM mode.')
|
||||||
|
|
@ -259,7 +261,7 @@ def worker():
|
||||||
elif performance_selection == Performance.LIGHTNING:
|
elif performance_selection == Performance.LIGHTNING:
|
||||||
print('Enter Lightning mode.')
|
print('Enter Lightning mode.')
|
||||||
progressbar(async_task, 1, 'Downloading Lightning components ...')
|
progressbar(async_task, 1, 'Downloading Lightning components ...')
|
||||||
loras += [(modules.config.downloading_sdxl_lightning_lora(), 1.0)]
|
performance_loras += [(modules.config.downloading_sdxl_lightning_lora(), 1.0)]
|
||||||
|
|
||||||
if refiner_model_name != 'None':
|
if refiner_model_name != 'None':
|
||||||
print(f'Refiner disabled in Lightning mode.')
|
print(f'Refiner disabled in Lightning mode.')
|
||||||
|
|
@ -278,7 +280,7 @@ def worker():
|
||||||
elif performance_selection == Performance.HYPER_SD:
|
elif performance_selection == Performance.HYPER_SD:
|
||||||
print('Enter Hyper-SD mode.')
|
print('Enter Hyper-SD mode.')
|
||||||
progressbar(async_task, 1, 'Downloading Hyper-SD components ...')
|
progressbar(async_task, 1, 'Downloading Hyper-SD components ...')
|
||||||
loras += [(modules.config.downloading_sdxl_hyper_sd_lora(), 0.8)]
|
performance_loras += [(modules.config.downloading_sdxl_hyper_sd_lora(), 0.8)]
|
||||||
|
|
||||||
if refiner_model_name != 'None':
|
if refiner_model_name != 'None':
|
||||||
print(f'Refiner disabled in Hyper-SD mode.')
|
print(f'Refiner disabled in Hyper-SD mode.')
|
||||||
|
|
@ -458,8 +460,8 @@ def worker():
|
||||||
|
|
||||||
progressbar(async_task, 2, 'Loading models ...')
|
progressbar(async_task, 2, 'Loading models ...')
|
||||||
|
|
||||||
loras = parse_lora_references_from_prompt(prompt, loras, modules.config.default_max_lora_number)
|
loras, prompt = parse_lora_references_from_prompt(prompt, loras, modules.config.default_max_lora_number)
|
||||||
|
loras += performance_loras
|
||||||
pipeline.refresh_everything(refiner_model_name=refiner_model_name, base_model_name=base_model_name,
|
pipeline.refresh_everything(refiner_model_name=refiner_model_name, base_model_name=base_model_name,
|
||||||
loras=loras, base_model_additional_loras=base_model_additional_loras,
|
loras=loras, base_model_additional_loras=base_model_additional_loras,
|
||||||
use_synthetic_refiner=use_synthetic_refiner, vae_name=vae_name)
|
use_synthetic_refiner=use_synthetic_refiner, vae_name=vae_name)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue