mirror of
https://github.com/vladmandic/sdnext.git
synced 2026-01-29 05:02:09 +03:00
33 lines
744 B
Python
33 lines
744 B
Python
def realesrgan_models_names():
|
|
import modules.realesrgan_model
|
|
return [x.name for x in modules.realesrgan_model.get_realesrgan_models(None)]
|
|
|
|
|
|
def postprocessing_scripts():
|
|
import modules.scripts
|
|
|
|
return modules.scripts.scripts_postproc.scripts
|
|
|
|
|
|
def sd_vae_items():
|
|
import modules.sd_vae
|
|
|
|
return ["Automatic", "None"] + list(modules.sd_vae.vae_dict)
|
|
|
|
|
|
def refresh_vae_list():
|
|
import modules.sd_vae
|
|
|
|
modules.sd_vae.refresh_vae_list()
|
|
|
|
def list_crossattention():
|
|
return [
|
|
"Disable cross-attention layer optimization",
|
|
"xFormers",
|
|
"Scaled-Dot-Product",
|
|
"Doggettx's",
|
|
"InvokeAI's",
|
|
"Sub-quadratic",
|
|
"Split attention"
|
|
]
|