2023-01-26 20:29:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
def realesrgan_models_names():
|
|
|
|
import modules.realesrgan_model
|
|
|
|
return [x.name for x in modules.realesrgan_model.get_realesrgan_models(None)]
|
|
|
|
|
2023-01-27 08:28:12 +00:00
|
|
|
|
2023-01-26 20:29:27 +00:00
|
|
|
def postprocessing_scripts():
|
|
|
|
import modules.scripts
|
|
|
|
|
2023-01-27 08:28:12 +00:00
|
|
|
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
|
|
|
|
|
2023-02-19 09:23:40 +00:00
|
|
|
modules.sd_vae.refresh_vae_list()
|
2023-05-18 19:48:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
def cross_attention_optimizations():
|
|
|
|
import modules.sd_hijack
|
|
|
|
|
|
|
|
return ["Automatic"] + [x.title() for x in modules.sd_hijack.optimizers] + ["None"]
|
|
|
|
|
|
|
|
|