SYMBOL INDEX (2616 symbols across 230 files) FILE: extensions-builtin/LDSR/ldsr_model_arch.py class LDSR (line 21) | class LDSR: method load_model_from_config (line 22) | def load_model_from_config(self, half_attention): method __init__ (line 54) | def __init__(self, model_path, yaml_path): method run (line 59) | def run(model, selected_path, custom_steps, eta): method super_resolution (line 106) | def super_resolution(self, image, steps=100, target_scale=2, half_atte... function get_cond (line 157) | def get_cond(selected_path): function convsample_ddim (line 176) | def convsample_ddim(model, cond, steps, shape, eta=1.0, callback=None, n... function make_convolutional_sample (line 194) | def make_convolutional_sample(batch, model, custom_steps=None, eta=1.0, ... FILE: extensions-builtin/LDSR/preload.py function preload (line 5) | def preload(parser): FILE: extensions-builtin/LDSR/scripts/ldsr_model.py class UpscalerLDSR (line 11) | class UpscalerLDSR(Upscaler): method __init__ (line 12) | def __init__(self, user_path): method load_model (line 21) | def load_model(self, path: str): method do_upscale (line 51) | def do_upscale(self, img, path): function on_ui_settings (line 61) | def on_ui_settings(): FILE: extensions-builtin/LDSR/sd_hijack_autoencoder.py class VQModel (line 20) | class VQModel(pl.LightningModule): method __init__ (line 21) | def __init__(self, method ema_scope (line 70) | def ema_scope(self, context=None): method init_from_ckpt (line 84) | def init_from_ckpt(self, path, ignore_keys=None): method on_train_batch_end (line 99) | def on_train_batch_end(self, *args, **kwargs): method encode (line 103) | def encode(self, x): method encode_to_prequant (line 109) | def encode_to_prequant(self, x): method decode (line 114) | def decode(self, quant): method decode_code (line 119) | def decode_code(self, code_b): method forward (line 124) | def forward(self, input, return_pred_indices=False): method get_input (line 131) | def get_input(self, batch, k): method training_step (line 149) | def training_step(self, batch, batch_idx, optimizer_idx): method validation_step (line 171) | def validation_step(self, batch, batch_idx): method _validation_step (line 177) | def _validation_step(self, batch, batch_idx, suffix=""): method configure_optimizers (line 204) | def configure_optimizers(self): method get_last_layer (line 237) | def get_last_layer(self): method log_images (line 240) | def log_images(self, batch, only_inputs=False, plot_ema=False, **kwargs): method to_rgb (line 263) | def to_rgb(self, x): class VQModelInterface (line 272) | class VQModelInterface(VQModel): method __init__ (line 273) | def __init__(self, embed_dim, *args, **kwargs): method encode (line 277) | def encode(self, x): method decode (line 282) | def decode(self, h, force_not_quantize=False): FILE: extensions-builtin/LDSR/sd_hijack_ddpm_v1.py function disabled_train (line 33) | def disabled_train(self, mode=True): function uniform_on_device (line 39) | def uniform_on_device(r1, r2, shape, device): class DDPMV1 (line 43) | class DDPMV1(pl.LightningModule): method __init__ (line 45) | def __init__(self, method register_schedule (line 116) | def register_schedule(self, given_betas=None, beta_schedule="linear", ... method ema_scope (line 171) | def ema_scope(self, context=None): method init_from_ckpt (line 185) | def init_from_ckpt(self, path, ignore_keys=None, only_model=False): method q_mean_variance (line 203) | def q_mean_variance(self, x_start, t): method predict_start_from_noise (line 215) | def predict_start_from_noise(self, x_t, t, noise): method q_posterior (line 221) | def q_posterior(self, x_start, x_t, t): method p_mean_variance (line 230) | def p_mean_variance(self, x, t, clip_denoised: bool): method p_sample (line 243) | def p_sample(self, x, t, clip_denoised=True, repeat_noise=False): method p_sample_loop (line 252) | def p_sample_loop(self, shape, return_intermediates=False): method sample (line 267) | def sample(self, batch_size=16, return_intermediates=False): method q_sample (line 273) | def q_sample(self, x_start, t, noise=None): method get_loss (line 278) | def get_loss(self, pred, target, mean=True): method p_losses (line 293) | def p_losses(self, x_start, t, noise=None): method forward (line 322) | def forward(self, x, *args, **kwargs): method get_input (line 328) | def get_input(self, batch, k): method shared_step (line 336) | def shared_step(self, batch): method training_step (line 341) | def training_step(self, batch, batch_idx): method validation_step (line 357) | def validation_step(self, batch, batch_idx): method on_train_batch_end (line 365) | def on_train_batch_end(self, *args, **kwargs): method _get_rows_from_list (line 369) | def _get_rows_from_list(self, samples): method log_images (line 377) | def log_images(self, batch, N=8, n_row=2, sample=True, return_keys=Non... method configure_optimizers (line 414) | def configure_optimizers(self): class LatentDiffusionV1 (line 423) | class LatentDiffusionV1(DDPMV1): method __init__ (line 425) | def __init__(self, method make_cond_schedule (line 470) | def make_cond_schedule(self, ): method on_train_batch_start (line 477) | def on_train_batch_start(self, batch, batch_idx, dataloader_idx): method register_schedule (line 492) | def register_schedule(self, method instantiate_first_stage (line 501) | def instantiate_first_stage(self, config): method instantiate_cond_stage (line 508) | def instantiate_cond_stage(self, config): method _get_denoise_row_from_list (line 529) | def _get_denoise_row_from_list(self, samples, desc='', force_no_decode... method get_first_stage_encoding (line 541) | def get_first_stage_encoding(self, encoder_posterior): method get_learned_conditioning (line 550) | def get_learned_conditioning(self, c): method meshgrid (line 563) | def meshgrid(self, h, w): method delta_border (line 570) | def delta_border(self, h, w): method get_weighting (line 584) | def get_weighting(self, h, w, Ly, Lx, device): method get_fold_unfold (line 600) | def get_fold_unfold(self, x, kernel_size, stride, uf=1, df=1): # todo... method get_input (line 653) | def get_input(self, batch, k, return_first_stage_outputs=False, force_... method decode_first_stage (line 705) | def decode_first_stage(self, z, predict_cids=False, force_not_quantize... method differentiable_decode_first_stage (line 765) | def differentiable_decode_first_stage(self, z, predict_cids=False, for... method encode_first_stage (line 825) | def encode_first_stage(self, x): method shared_step (line 864) | def shared_step(self, batch, **kwargs): method forward (line 869) | def forward(self, x, c, *args, **kwargs): method apply_model (line 880) | def apply_model(self, x_noisy, t, cond, return_ids=False): method _predict_eps_from_xstart (line 983) | def _predict_eps_from_xstart(self, x_t, t, pred_xstart): method _prior_bpd (line 987) | def _prior_bpd(self, x_start): method p_losses (line 1001) | def p_losses(self, x_start, cond, t, noise=None): method p_mean_variance (line 1036) | def p_mean_variance(self, x, c, t, clip_denoised: bool, return_codeboo... method p_sample (line 1068) | def p_sample(self, x, c, t, clip_denoised=False, repeat_noise=False, method progressive_denoising (line 1099) | def progressive_denoising(self, cond, shape, verbose=True, callback=No... method p_sample_loop (line 1157) | def p_sample_loop(self, cond, shape, return_intermediates=False, method sample (line 1210) | def sample(self, cond, batch_size=16, return_intermediates=False, x_T=... method sample_log (line 1228) | def sample_log(self,cond,batch_size,ddim, ddim_steps,**kwargs): method log_images (line 1244) | def log_images(self, batch, N=8, n_row=4, sample=True, ddim_steps=200,... method configure_optimizers (line 1354) | def configure_optimizers(self): method to_rgb (line 1379) | def to_rgb(self, x): class DiffusionWrapperV1 (line 1388) | class DiffusionWrapperV1(pl.LightningModule): method __init__ (line 1389) | def __init__(self, diff_model_config, conditioning_key): method forward (line 1395) | def forward(self, x, t, c_concat: list = None, c_crossattn: list = None): class Layout2ImgDiffusionV1 (line 1417) | class Layout2ImgDiffusionV1(LatentDiffusionV1): method __init__ (line 1419) | def __init__(self, cond_stage_key, *args, **kwargs): method log_images (line 1423) | def log_images(self, batch, N=8, *args, **kwargs): FILE: extensions-builtin/LDSR/vqvae_quantize.py class VectorQuantizer2 (line 30) | class VectorQuantizer2(nn.Module): method __init__ (line 39) | def __init__(self, n_e, e_dim, beta, remap=None, unknown_index="random", method remap_to_used (line 65) | def remap_to_used(self, inds): method unmap_to_all (line 79) | def unmap_to_all(self, inds): method forward (line 89) | def forward(self, z, temp=None, rescale_logits=False, return_logits=Fa... method get_codebook_entry (line 132) | def get_codebook_entry(self, indices, shape): FILE: extensions-builtin/Lora/extra_networks_lora.py class ExtraNetworkLora (line 5) | class ExtraNetworkLora(extra_networks.ExtraNetwork): method __init__ (line 6) | def __init__(self): method activate (line 14) | def activate(self, p, params_list): method deactivate (line 58) | def deactivate(self, p): FILE: extensions-builtin/Lora/lora_logger.py class ColoredFormatter (line 6) | class ColoredFormatter(logging.Formatter): method format (line 16) | def format(self, record): FILE: extensions-builtin/Lora/lora_patches.py class LoraPatches (line 7) | class LoraPatches: method __init__ (line 8) | def __init__(self): method undo (line 20) | def undo(self): FILE: extensions-builtin/Lora/lyco_helpers.py function make_weight_cp (line 4) | def make_weight_cp(t, wa, wb): function rebuild_conventional (line 9) | def rebuild_conventional(up, down, shape, dyn_dim=None): function rebuild_cp_decomposition (line 18) | def rebuild_cp_decomposition(up, down, mid): function factorization (line 25) | def factorization(dimension: int, factor:int=-1) -> tuple[int, int]: FILE: extensions-builtin/Lora/network.py class SdVersion (line 17) | class SdVersion(enum.Enum): class NetworkOnDisk (line 24) | class NetworkOnDisk: method __init__ (line 25) | def __init__(self, name, filename): method detect_version (line 61) | def detect_version(self): method set_hash (line 71) | def set_hash(self, v): method read_hash (line 79) | def read_hash(self): method get_alias (line 83) | def get_alias(self): class Network (line 91) | class Network: # LoraModule method __init__ (line 92) | def __init__(self, name, network_on_disk: NetworkOnDisk): class ModuleType (line 106) | class ModuleType: method create_module (line 107) | def create_module(self, net: Network, weights: NetworkWeights) -> Netw... class NetworkModule (line 111) | class NetworkModule: method __init__ (line 112) | def __init__(self, net: Network, weights: NetworkWeights): method multiplier (line 161) | def multiplier(self): method calc_scale (line 167) | def calc_scale(self): method apply_weight_decompose (line 175) | def apply_weight_decompose(self, updown, orig_weight): method finalize_updown (line 196) | def finalize_updown(self, updown, orig_weight, output_shape, ex_bias=N... method calc_updown (line 218) | def calc_updown(self, target): method forward (line 221) | def forward(self, x, y): FILE: extensions-builtin/Lora/network_full.py class ModuleTypeFull (line 4) | class ModuleTypeFull(network.ModuleType): method create_module (line 5) | def create_module(self, net: network.Network, weights: network.Network... class NetworkModuleFull (line 12) | class NetworkModuleFull(network.NetworkModule): method __init__ (line 13) | def __init__(self, net: network.Network, weights: network.NetworkWeig... method calc_updown (line 19) | def calc_updown(self, orig_weight): FILE: extensions-builtin/Lora/network_glora.py class ModuleTypeGLora (line 4) | class ModuleTypeGLora(network.ModuleType): method create_module (line 5) | def create_module(self, net: network.Network, weights: network.Network... class NetworkModuleGLora (line 12) | class NetworkModuleGLora(network.NetworkModule): method __init__ (line 13) | def __init__(self, net: network.Network, weights: network.NetworkWeig... method calc_updown (line 24) | def calc_updown(self, orig_weight): FILE: extensions-builtin/Lora/network_hada.py class ModuleTypeHada (line 5) | class ModuleTypeHada(network.ModuleType): method create_module (line 6) | def create_module(self, net: network.Network, weights: network.Network... class NetworkModuleHada (line 13) | class NetworkModuleHada(network.NetworkModule): method __init__ (line 14) | def __init__(self, net: network.Network, weights: network.NetworkWeig... method calc_updown (line 29) | def calc_updown(self, orig_weight): FILE: extensions-builtin/Lora/network_ia3.py class ModuleTypeIa3 (line 4) | class ModuleTypeIa3(network.ModuleType): method create_module (line 5) | def create_module(self, net: network.Network, weights: network.Network... class NetworkModuleIa3 (line 12) | class NetworkModuleIa3(network.NetworkModule): method __init__ (line 13) | def __init__(self, net: network.Network, weights: network.NetworkWeig... method calc_updown (line 19) | def calc_updown(self, orig_weight): FILE: extensions-builtin/Lora/network_lokr.py class ModuleTypeLokr (line 7) | class ModuleTypeLokr(network.ModuleType): method create_module (line 8) | def create_module(self, net: network.Network, weights: network.Network... function make_kron (line 17) | def make_kron(orig_shape, w1, w2): class NetworkModuleLokr (line 24) | class NetworkModuleLokr(network.NetworkModule): method __init__ (line 25) | def __init__(self, net: network.Network, weights: network.NetworkWeig... method calc_updown (line 38) | def calc_updown(self, orig_weight): FILE: extensions-builtin/Lora/network_lora.py class ModuleTypeLora (line 9) | class ModuleTypeLora(network.ModuleType): method create_module (line 10) | def create_module(self, net: network.Network, weights: network.Network... class NetworkModuleLora (line 24) | class NetworkModuleLora(network.NetworkModule): method __init__ (line 25) | def __init__(self, net: network.Network, weights: network.NetworkWeig... method create_module (line 34) | def create_module(self, weights, key, none_ok=False): method calc_updown (line 71) | def calc_updown(self, orig_weight): method forward (line 88) | def forward(self, x, y): FILE: extensions-builtin/Lora/network_norm.py class ModuleTypeNorm (line 4) | class ModuleTypeNorm(network.ModuleType): method create_module (line 5) | def create_module(self, net: network.Network, weights: network.Network... class NetworkModuleNorm (line 12) | class NetworkModuleNorm(network.NetworkModule): method __init__ (line 13) | def __init__(self, net: network.Network, weights: network.NetworkWeig... method calc_updown (line 19) | def calc_updown(self, orig_weight): FILE: extensions-builtin/Lora/network_oft.py class ModuleTypeOFT (line 6) | class ModuleTypeOFT(network.ModuleType): method create_module (line 7) | def create_module(self, net: network.Network, weights: network.Network... class NetworkModuleOFT (line 15) | class NetworkModuleOFT(network.NetworkModule): method __init__ (line 16) | def __init__(self, net: network.Network, weights: network.NetworkWeig... method calc_updown (line 70) | def calc_updown(self, orig_weight): FILE: extensions-builtin/Lora/networks.py function convert_diffusers_name_to_compvis (line 56) | def convert_diffusers_name_to_compvis(key, is_sd2): function assign_network_names_to_compvis_modules (line 122) | def assign_network_names_to_compvis_modules(sd_model): class BundledTIHash (line 150) | class BundledTIHash(str): method __init__ (line 151) | def __init__(self, hash_str): method __str__ (line 154) | def __str__(self): function load_network (line 158) | def load_network(name, network_on_disk): function purge_networks_from_memory (line 273) | def purge_networks_from_memory(): function load_networks (line 281) | def load_networks(names, te_multipliers=None, unet_multipliers=None, dyn... function allowed_layer_without_weight (line 369) | def allowed_layer_without_weight(layer): function store_weights_backup (line 376) | def store_weights_backup(weight): function restore_weights_backup (line 383) | def restore_weights_backup(obj, field, weight): function network_restore_weights_from_backup (line 391) | def network_restore_weights_from_backup(self: Union[torch.nn.Conv2d, tor... function network_apply_weights (line 411) | def network_apply_weights(self: Union[torch.nn.Conv2d, torch.nn.Linear, ... function network_forward (line 545) | def network_forward(org_module, input, original_forward): function network_reset_cached_weight (line 572) | def network_reset_cached_weight(self: Union[torch.nn.Conv2d, torch.nn.Li... function network_Linear_forward (line 578) | def network_Linear_forward(self, input): function network_Linear_load_state_dict (line 587) | def network_Linear_load_state_dict(self, *args, **kwargs): function network_Conv2d_forward (line 593) | def network_Conv2d_forward(self, input): function network_Conv2d_load_state_dict (line 602) | def network_Conv2d_load_state_dict(self, *args, **kwargs): function network_GroupNorm_forward (line 608) | def network_GroupNorm_forward(self, input): function network_GroupNorm_load_state_dict (line 617) | def network_GroupNorm_load_state_dict(self, *args, **kwargs): function network_LayerNorm_forward (line 623) | def network_LayerNorm_forward(self, input): function network_LayerNorm_load_state_dict (line 632) | def network_LayerNorm_load_state_dict(self, *args, **kwargs): function network_MultiheadAttention_forward (line 638) | def network_MultiheadAttention_forward(self, *args, **kwargs): function network_MultiheadAttention_load_state_dict (line 644) | def network_MultiheadAttention_load_state_dict(self, *args, **kwargs): function process_network_files (line 650) | def process_network_files(names: list[str] | None = None): function update_available_networks_by_names (line 675) | def update_available_networks_by_names(names: list[str]): function list_available_networks (line 679) | def list_available_networks(): function infotext_pasted (line 694) | def infotext_pasted(infotext, params): FILE: extensions-builtin/Lora/preload.py function preload (line 6) | def preload(parser): FILE: extensions-builtin/Lora/scripts/lora_script.py function unload (line 15) | def unload(): function before_ui (line 19) | def before_ui(): function create_lora_json (line 53) | def create_lora_json(obj: network.NetworkOnDisk): function api_networks (line 62) | def api_networks(_: gr.Blocks, app: FastAPI): function infotext_pasted (line 77) | def infotext_pasted(infotext, d): FILE: extensions-builtin/Lora/ui_edit_user_metadata.py function is_non_comma_tagset (line 11) | def is_non_comma_tagset(tags): function build_tags (line 21) | def build_tags(metadata): class LoraUserMetadataEditor (line 48) | class LoraUserMetadataEditor(ui_extra_networks_user_metadata.UserMetadat... method __init__ (line 49) | def __init__(self, ui, tabname, page): method save_lora_user_metadata (line 59) | def save_lora_user_metadata(self, name, desc, sd_version, activation_t... method get_metadata_table (line 70) | def get_metadata_table(self, name): method put_values_into_components (line 117) | def put_values_into_components(self, name): method generate_random_prompt (line 138) | def generate_random_prompt(self, name): method generate_random_prompt_from_tags (line 145) | def generate_random_prompt_from_tags(self, tags): method create_extra_default_items_in_left_column (line 160) | def create_extra_default_items_in_left_column(self): method create_editor (line 165) | def create_editor(self): FILE: extensions-builtin/Lora/ui_extra_networks_lora.py class ExtraNetworksPageLora (line 11) | class ExtraNetworksPageLora(ui_extra_networks.ExtraNetworksPage): method __init__ (line 12) | def __init__(self): method refresh (line 15) | def refresh(self): method create_item (line 18) | def create_item(self, name, index=None, enable_filter=True): method list_items (line 78) | def list_items(self): method allowed_directories_for_previews (line 86) | def allowed_directories_for_previews(self): method create_user_metadata_editor (line 89) | def create_user_metadata_editor(self, ui, tabname): FILE: extensions-builtin/ScuNET/preload.py function preload (line 5) | def preload(parser): FILE: extensions-builtin/ScuNET/scripts/scunet_model.py class UpscalerScuNET (line 9) | class UpscalerScuNET(modules.upscaler.Upscaler): method __init__ (line 10) | def __init__(self, dirname): method do_upscale (line 38) | def do_upscale(self, img: PIL.Image.Image, selected_file): method load_model (line 57) | def load_model(self, path: str): function on_ui_settings (line 67) | def on_ui_settings(): FILE: extensions-builtin/SwinIR/preload.py function preload (line 5) | def preload(parser): FILE: extensions-builtin/SwinIR/scripts/swinir_model.py class UpscalerSwinIR (line 15) | class UpscalerSwinIR(Upscaler): method __init__ (line 16) | def __init__(self, dirname): method do_upscale (line 35) | def do_upscale(self, img: Image.Image, model_file: str) -> Image.Image: method load_model (line 60) | def load_model(self, path, scale=4): method _get_device (line 83) | def _get_device(self): function on_ui_settings (line 87) | def on_ui_settings(): FILE: extensions-builtin/canvas-zoom-and-pan/javascript/zoom.js function getActiveTab (line 31) | function getActiveTab(elements, all = false) { function getTabId (line 45) | function getTabId(elements) { function waitForOpts (line 52) | async function waitForOpts() { function hasHorizontalScrollbar (line 62) | function hasHorizontalScrollbar(element) { function isModifierKey (line 67) | function isModifierKey(event, key) { function isValidHotkey (line 81) | function isValidHotkey(value) { function normalizeHotkey (line 92) | function normalizeHotkey(hotkey) { function formatHotkeyForDisplay (line 97) | function formatHotkeyForDisplay(hotkey) { function createHotkeyConfig (line 102) | function createHotkeyConfig(defaultHotkeysConfig, hotkeysConfigOpts) { function disableFunctions (line 153) | function disableFunctions(config, disabledFunctions) { function restoreImgRedMask (line 177) | function restoreImgRedMask(elements) { function applyZoomAndPan (line 279) | function applyZoomAndPan(elemId, isExtension = true) { FILE: extensions-builtin/extra-options-section/scripts/extra_options_section.py class ExtraOptionsSection (line 8) | class ExtraOptionsSection(scripts.Script): method __init__ (line 11) | def __init__(self): method title (line 15) | def title(self): method show (line 18) | def show(self, is_img2img): method ui (line 21) | def ui(self, is_img2img): method before_process (line 66) | def before_process(self, p, *args): FILE: extensions-builtin/hypertile/hypertile.py class HypertileParams (line 22) | class HypertileParams: function get_divisors (line 192) | def get_divisors(value: int, min_value: int, /, max_options: int = 1) ->... function random_divisor (line 205) | def random_divisor(value: int, min_value: int, /, max_options: int = 1) ... function set_hypertile_seed (line 217) | def set_hypertile_seed(seed: int) -> None: function largest_tile_size_available (line 222) | def largest_tile_size_available(width: int, height: int) -> int: function iterative_closest_divisors (line 234) | def iterative_closest_divisors(hw:int, aspect_ratio:float) -> tuple[int,... function find_hw_candidates (line 248) | def find_hw_candidates(hw:int, aspect_ratio:float) -> tuple[int, int]: function self_attn_forward (line 269) | def self_attn_forward(params: HypertileParams, scale_depth=True) -> Call... function hypertile_hook_model (line 318) | def hypertile_hook_model(model: nn.Module, width, height, *, enable=Fals... FILE: extensions-builtin/hypertile/scripts/hypertile_script.py class ScriptHypertile (line 5) | class ScriptHypertile(scripts.Script): method title (line 8) | def title(self): method show (line 11) | def show(self, is_img2img): method process (line 14) | def process(self, p, *args): method before_hr (line 21) | def before_hr(self, p, *args): method add_infotext (line 36) | def add_infotext(self, p, add_unet_params=False): function configure_hypertile (line 57) | def configure_hypertile(width, height, enable_unet=True): function on_ui_settings (line 80) | def on_ui_settings(): function add_axis_options (line 106) | def add_axis_options(): FILE: extensions-builtin/mobile/javascript/mobile.js function isMobile (line 3) | function isMobile() { function reportWindowSize (line 14) | function reportWindowSize() { FILE: extensions-builtin/postprocessing-for-training/scripts/postprocessing_autosized_crop.py function center_crop (line 7) | def center_crop(image: Image, w: int, h: int): function multicrop_pic (line 18) | def multicrop_pic(image: Image, mindim, maxdim, minarea, maxarea, object... class ScriptPostprocessingAutosizedCrop (line 29) | class ScriptPostprocessingAutosizedCrop(scripts_postprocessing.ScriptPos... method ui (line 33) | def ui(self): method process (line 56) | def process(self, pp: scripts_postprocessing.PostprocessedImage, enabl... FILE: extensions-builtin/postprocessing-for-training/scripts/postprocessing_caption.py class ScriptPostprocessingCeption (line 5) | class ScriptPostprocessingCeption(scripts_postprocessing.ScriptPostproce... method ui (line 9) | def ui(self): method process (line 18) | def process(self, pp: scripts_postprocessing.PostprocessedImage, enabl... FILE: extensions-builtin/postprocessing-for-training/scripts/postprocessing_create_flipped_copies.py class ScriptPostprocessingCreateFlippedCopies (line 7) | class ScriptPostprocessingCreateFlippedCopies(scripts_postprocessing.Scr... method ui (line 11) | def ui(self): method process (line 21) | def process(self, pp: scripts_postprocessing.PostprocessedImage, enabl... FILE: extensions-builtin/postprocessing-for-training/scripts/postprocessing_focal_crop.py class ScriptPostprocessingFocalCrop (line 8) | class ScriptPostprocessingFocalCrop(scripts_postprocessing.ScriptPostpro... method ui (line 12) | def ui(self): method process (line 27) | def process(self, pp: scripts_postprocessing.PostprocessedImage, enabl... FILE: extensions-builtin/postprocessing-for-training/scripts/postprocessing_split_oversized.py function split_pic (line 7) | def split_pic(image, inverse_xy, width, height, overlap_ratio): class ScriptPostprocessingSplitOversized (line 31) | class ScriptPostprocessingSplitOversized(scripts_postprocessing.ScriptPo... method ui (line 35) | def ui(self): method process (line 47) | def process(self, pp: scripts_postprocessing.PostprocessedImage, enabl... FILE: extensions-builtin/prompt-bracket-checker/javascript/prompt-bracket-checker.js function checkBrackets (line 6) | function checkBrackets(textArea, counterElt) { function setupBracketChecking (line 28) | function setupBracketChecking(id_prompt, id_counter) { FILE: extensions-builtin/soft-inpainting/scripts/soft_inpainting.py class SoftInpaintingSettings (line 9) | class SoftInpaintingSettings: method __init__ (line 10) | def __init__(self, method add_generation_params (line 24) | def add_generation_params(self, dest): function processing_uses_inpainting (line 36) | def processing_uses_inpainting(p): function latent_blend (line 50) | def latent_blend(settings, a, b, t): function get_modified_nmask (line 108) | def get_modified_nmask(settings, nmask, sigma): function apply_adaptive_masks (line 127) | def apply_adaptive_masks( function apply_masks (line 205) | def apply_masks( function weighted_histogram_filter (line 247) | def weighted_histogram_filter(img, kernel, kernel_center, percentile_min... function smoothstep (line 373) | def smoothstep(x): function smootherstep (line 381) | def smootherstep(x): function get_gaussian_kernel (line 389) | def get_gaussian_kernel(stddev_radius=1.0, max_radius=2): class Script (line 486) | class Script(scripts.Script): method __init__ (line 487) | def __init__(self): method title (line 492) | def title(self): method show (line 495) | def show(self, is_img2img): method ui (line 498) | def ui(self, is_img2img): method process (line 661) | def process(self, p, enabled, power, scale, detail_preservation, mask_... method on_mask_blend (line 676) | def on_mask_blend(self, p, mba: scripts.MaskBlendArgs, enabled, power,... method post_sample (line 696) | def post_sample(self, p, ps: scripts.PostSampleArgs, enabled, power, s... method postprocess_maskoverlay (line 745) | def postprocess_maskoverlay(self, p, ppmo: scripts.PostProcessMaskOver... FILE: javascript/aspectRatioOverlay.js function dimensionChange (line 6) | function dimensionChange(e, is_width, is_height) { FILE: javascript/contextMenus.js function showContextMenu (line 10) | function showContextMenu(event, element, menuEntries) { function appendContextMenuOption (line 43) | function appendContextMenuOption(targetElementSelector, entryName, entry... function removeContextMenuOption (line 62) | function removeContextMenuOption(uid) { function addContextMenuEventListener (line 76) | function addContextMenuEventListener() { FILE: javascript/dragdrop.js function isValidImageList (line 3) | function isValidImageList(files) { function dropReplaceImage (line 7) | function dropReplaceImage(imgWrap, files) { function eventHasFiles (line 51) | function eventHasFiles(e) { function isURL (line 59) | function isURL(url) { function dragDropTargetIsPrompt (line 68) | function dragDropTargetIsPrompt(target) { FILE: javascript/edit-attention.js function keyupEditAttention (line 1) | function keyupEditAttention(event) { FILE: javascript/edit-order.js function keyupEditOrder (line 3) | function keyupEditOrder(event) { FILE: javascript/extensions.js function extensions_apply (line 2) | function extensions_apply(_disabled_list, _update_list, disable_all) { function extensions_check (line 24) | function extensions_check() { function install_extension_from_index (line 46) | function install_extension_from_index(button, url) { function config_state_confirm_restore (line 57) | function config_state_confirm_restore(_, config_state_name, config_resto... function toggle_all_extensions (line 79) | function toggle_all_extensions(event) { function toggle_extension (line 85) | function toggle_extension() { FILE: javascript/extraNetworks.js function toggleCss (line 1) | function toggleCss(key, css, enable) { function setupExtraNetworksForTab (line 18) | function setupExtraNetworksForTab(tabname) { function extraNetworksMovePromptToTab (line 131) | function extraNetworksMovePromptToTab(tabname, id, showPrompt, showNegat... function extraNetworksShowControlsForPage (line 157) | function extraNetworksShowControlsForPage(tabname, tabname_full) { function extraNetworksUnrelatedTabSelected (line 165) | function extraNetworksUnrelatedTabSelected(tabname) { // called from pyt... function extraNetworksTabSelected (line 171) | function extraNetworksTabSelected(tabname, id, showPrompt, showNegativeP... function applyExtraNetworkFilter (line 177) | function applyExtraNetworkFilter(tabname_full) { function applyExtraNetworkSort (line 188) | function applyExtraNetworkSort(tabname_full) { function setupExtraNetworks (line 199) | function setupExtraNetworks() { function tryToRemoveExtraNetworkFromPrompt (line 209) | function tryToRemoveExtraNetworkFromPrompt(textarea, text, isNeg) { function updatePromptArea (line 248) | function updatePromptArea(text, textArea, isNeg) { function cardClicked (line 256) | function cardClicked(tabname, textToAdd, textToAddNegative, allowNegativ... function saveCardPreview (line 266) | function saveCardPreview(event, tabname, filename) { function extraNetworksSearchButton (line 279) | function extraNetworksSearchButton(tabname, extra_networks_tabname, even... function extraNetworksTreeProcessFileClick (line 288) | function extraNetworksTreeProcessFileClick(event, btn, tabname, extra_ne... function extraNetworksTreeProcessDirectoryClick (line 301) | function extraNetworksTreeProcessDirectoryClick(event, btn, tabname, ext... function extraNetworksTreeOnClick (line 378) | function extraNetworksTreeOnClick(event, tabname, extra_networks_tabname) { function extraNetworksControlSortOnClick (line 398) | function extraNetworksControlSortOnClick(event, tabname, extra_networks_... function extraNetworksControlSortDirOnClick (line 413) | function extraNetworksControlSortDirOnClick(event, tabname, extra_networ... function extraNetworksControlTreeViewOnClick (line 434) | function extraNetworksControlTreeViewOnClick(event, tabname, extra_netwo... function extraNetworksControlRefreshOnClick (line 452) | function extraNetworksControlRefreshOnClick(event, tabname, extra_networ... function closePopup (line 472) | function closePopup() { function popup (line 477) | function popup(contents) { function popupId (line 502) | function popupId(id) { function extraNetworksFlattenMetadata (line 510) | function extraNetworksFlattenMetadata(obj) { function extraNetworksShowMetadata (line 561) | function extraNetworksShowMetadata(text) { function requestGet (line 582) | function requestGet(url, data, handler, errorHandler) { function extraNetworksCopyCardPath (line 608) | function extraNetworksCopyCardPath(event) { function extraNetworksRequestMetadata (line 613) | function extraNetworksRequestMetadata(event, extraPage) { function extraNetworksEditUserMetadata (line 633) | function extraNetworksEditUserMetadata(event, tabname, extraPage) { function extraNetworksRefreshSingleCard (line 656) | function extraNetworksRefreshSingleCard(page, tabname, name) { function scheduleAfterScriptsCallbacks (line 691) | function scheduleAfterScriptsCallbacks() { FILE: javascript/generationParams.js function attachGalleryListeners (line 26) | function attachGalleryListeners(tab_name) { FILE: javascript/hints.js function updateTooltip (line 116) | function updateTooltip(element) { function processTooltipCheckNodes (line 152) | function processTooltipCheckNodes() { FILE: javascript/hires_fix.js function onCalcResolutionHires (line 2) | function onCalcResolutionHires(enable, width, height, hr_scale, hr_resiz... FILE: javascript/imageMaskFix.js function imageMaskResize (line 5) | function imageMaskResize() { FILE: javascript/imageviewer.js function closeModal (line 2) | function closeModal() { function showModal (line 6) | function showModal(event) { function negmod (line 30) | function negmod(n, m) { function updateOnBackgroundChange (line 34) | function updateOnBackgroundChange() { function modalImageSwitch (line 52) | function modalImageSwitch(offset) { function saveImage (line 74) | function saveImage() { function modalSaveImage (line 88) | function modalSaveImage(event) { function modalNextImage (line 93) | function modalNextImage(event) { function modalPrevImage (line 98) | function modalPrevImage(event) { function modalKeyHandler (line 103) | function modalKeyHandler(event) { function setupImageForLightbox (line 120) | function setupImageForLightbox(e) { function modalZoomSet (line 147) | function modalZoomSet(modalImage, enable) { function modalZoomToggle (line 151) | function modalZoomToggle(event) { function modalLivePreviewToggle (line 157) | function modalLivePreviewToggle(event) { function modalTileImageToggle (line 164) | function modalTileImageToggle(event) { FILE: javascript/imageviewerGamepad.js function sleepUntil (line 53) | function sleepUntil(f, timeout) { FILE: javascript/inputAccordion.js function inputAccordionChecked (line 1) | function inputAccordionChecked(id, checked) { function setupAccordion (line 7) | function setupAccordion(accordion) { FILE: javascript/localStorage.js function localSet (line 2) | function localSet(k, v) { function localGet (line 10) | function localGet(k, def) { function localRemove (line 20) | function localRemove(k) { FILE: javascript/localization.js function hasLocalization (line 27) | function hasLocalization() { function textNodesUnder (line 31) | function textNodesUnder(el) { function canBeTranslated (line 37) | function canBeTranslated(node, text) { function getTranslation (line 59) | function getTranslation(text) { function processTextNode (line 74) | function processTextNode(node) { function processNode (line 85) | function processNode(node) { function localizeWholePage (line 110) | function localizeWholePage() { function dumpTranslations (line 139) | function dumpTranslations() { function download_localization (line 159) | function download_localization() { FILE: javascript/profilerVisualization.js function createRow (line 2) | function createRow(table, cellName, items) { function createVisualizationTable (line 36) | function createVisualizationTable(data, cutoff = 0, sort = "") { function showProfile (line 167) | function showProfile(path, cutoff = 0.05) { FILE: javascript/progressbar.js function rememberGallerySelection (line 3) | function rememberGallerySelection() { function getGallerySelectedIndex (line 7) | function getGallerySelectedIndex() { function request (line 11) | function request(url, data, handler, errorHandler) { function pad2 (line 34) | function pad2(x) { function formatTime (line 38) | function formatTime(secs) { function setTitle (line 55) | function setTitle(progress) { function randomId (line 68) | function randomId() { function requestProgress (line 75) | function requestProgress(id_task, progressbarContainer, gallery, atEnd, ... FILE: javascript/resizeHandle.js function setLeftColGridTemplate (line 20) | function setLeftColGridTemplate(el, width) { function displayResizeHandle (line 24) | function displayResizeHandle(parent) { function afterResize (line 39) | function afterResize(parent) { function setup (line 54) | function setup(parent) { function setupAllResizeHandles (line 195) | function setupAllResizeHandles() { FILE: javascript/settings.js function settingsShowAllTabs (line 8) | function settingsShowAllTabs() { function settingsShowOneTab (line 16) | function settingsShowOneTab() { FILE: javascript/textualInversion.js function start_training_textual_inversion (line 4) | function start_training_textual_inversion() { FILE: javascript/token-counters.js function update_txt2img_tokens (line 3) | function update_txt2img_tokens(...args) { function update_img2img_tokens (line 13) | function update_img2img_tokens(...args) { function update_token_counter (line 23) | function update_token_counter(button_id) { function recalculatePromptTokens (line 28) | function recalculatePromptTokens(name) { function recalculate_prompts_txt2img (line 32) | function recalculate_prompts_txt2img() { function recalculate_prompts_img2img (line 39) | function recalculate_prompts_img2img() { function setupTokenCounting (line 46) | function setupTokenCounting(id, id_counter, id_button) { function toggleTokenCountingVisibility (line 67) | function toggleTokenCountingVisibility(id, id_counter, id_button) { function runCodeForTokenCounters (line 74) | function runCodeForTokenCounters(fun) { FILE: javascript/ui.js function set_theme (line 3) | function set_theme(theme) { function all_gallery_buttons (line 10) | function all_gallery_buttons() { function selected_gallery_button (line 21) | function selected_gallery_button() { function selected_gallery_index (line 25) | function selected_gallery_index() { function gallery_container_buttons (line 29) | function gallery_container_buttons(gallery_container) { function selected_gallery_index_id (line 33) | function selected_gallery_index_id(gallery_container) { function extract_image_from_gallery (line 37) | function extract_image_from_gallery(gallery) { function switch_to_txt2img (line 57) | function switch_to_txt2img() { function switch_to_img2img_tab (line 63) | function switch_to_img2img_tab(no) { function switch_to_img2img (line 67) | function switch_to_img2img() { function switch_to_sketch (line 72) | function switch_to_sketch() { function switch_to_inpaint (line 77) | function switch_to_inpaint() { function switch_to_inpaint_sketch (line 82) | function switch_to_inpaint_sketch() { function switch_to_extras (line 87) | function switch_to_extras() { function get_tab_index (line 93) | function get_tab_index(tabId) { function create_tab_index_args (line 103) | function create_tab_index_args(tabId, args) { function get_img2img_tab_index (line 109) | function get_img2img_tab_index() { function create_submit_args (line 116) | function create_submit_args(args) { function setSubmitButtonsVisibility (line 130) | function setSubmitButtonsVisibility(tabname, showInterrupt, showSkip, sh... function showSubmitButtons (line 136) | function showSubmitButtons(tabname, show) { function showSubmitInterruptingPlaceholder (line 140) | function showSubmitInterruptingPlaceholder(tabname) { function showRestoreProgressButton (line 144) | function showRestoreProgressButton(tabname, show) { function submit (line 150) | function submit() { function submit_txt2img_upscale (line 169) | function submit_txt2img_upscale() { function submit_img2img (line 177) | function submit_img2img() { function submit_extras (line 197) | function submit_extras() { function restoreProgressTxt2img (line 214) | function restoreProgressTxt2img() { function restoreProgressImg2img (line 228) | function restoreProgressImg2img() { function setupResolutionPasting (line 248) | function setupResolutionPasting(tabname) { function modelmerger (line 274) | function modelmerger() { function ask_for_style_name (line 284) | function ask_for_style_name(_, prompt_text, negative_prompt_text) { function confirm_clear_prompt (line 289) | function confirm_clear_prompt(prompt, negative_prompt) { function restart_reload (line 348) | function restart_reload() { function updateInput (line 366) | function updateInput(target) { function selectCheckpoint (line 374) | function selectCheckpoint(name) { function currentImg2imgSourceResolution (line 379) | function currentImg2imgSourceResolution(w, h, scaleBy) { function updateImg2imgResizeToTextAfterChangingImage (line 384) | function updateImg2imgResizeToTextAfterChangingImage() { function setRandomSeed (line 398) | function setRandomSeed(elem_id) { function switchWidthHeight (line 407) | function switchWidthHeight(tabname) { function onEdit (line 425) | function onEdit(editId, elem, afterMs, func) { FILE: javascript/ui_settings_hints.js function settingsHintsShowQuicksettings (line 42) | function settingsHintsShowQuicksettings() { FILE: launch.py function main (line 27) | def main(): FILE: modules/api/api.py function script_name_to_index (line 36) | def script_name_to_index(name, scripts): function validate_sampler_name (line 43) | def validate_sampler_name(name): function setUpscalers (line 51) | def setUpscalers(req: dict): function verify_url (line 58) | def verify_url(url): function decode_base64_to_image (line 77) | def decode_base64_to_image(encoding): function encode_pil_to_base64 (line 102) | def encode_pil_to_base64(image): function api_middleware (line 135) | def api_middleware(app: FastAPI): class Api (line 199) | class Api: method __init__ (line 200) | def __init__(self, app: FastAPI, queue_lock: Lock): method add_api_route (line 274) | def add_api_route(self, path: str, endpoint, **kwargs): method auth (line 279) | def auth(self, credentials: HTTPBasicCredentials = Depends(HTTPBasic())): method get_selectable_script (line 286) | def get_selectable_script(self, script_name, script_runner): method get_scripts_list (line 294) | def get_scripts_list(self): method get_script_info (line 300) | def get_script_info(self): method get_script (line 308) | def get_script(self, script_name, script_runner): method init_default_script_args (line 315) | def init_default_script_args(self, script_runner): method init_script_args (line 335) | def init_script_args(self, request, default_script_args, selectable_sc... method apply_infotext (line 363) | def apply_infotext(self, request, tabname, *, script_runner=None, ment... method text2imgapi (line 432) | def text2imgapi(self, txt2imgreq: models.StableDiffusionTxt2ImgProcess... method img2imgapi (line 492) | def img2imgapi(self, img2imgreq: models.StableDiffusionImg2ImgProcessi... method extras_single_image_api (line 567) | def extras_single_image_api(self, req: models.ExtrasSingleImageRequest): method extras_batch_images_api (line 577) | def extras_batch_images_api(self, req: models.ExtrasBatchImagesRequest): method pnginfoapi (line 588) | def pnginfoapi(self, req: models.PNGInfoRequest): method progressapi (line 602) | def progressapi(self, req: models.ProgressRequest = Depends()): method interrogateapi (line 630) | def interrogateapi(self, interrogatereq: models.InterrogateRequest): method interruptapi (line 649) | def interruptapi(self): method unloadapi (line 654) | def unloadapi(self): method reloadapi (line 659) | def reloadapi(self): method skip (line 664) | def skip(self): method get_config (line 667) | def get_config(self): method set_config (line 678) | def set_config(self, req: dict[str, Any]): method get_cmd_flags (line 689) | def get_cmd_flags(self): method get_samplers (line 692) | def get_samplers(self): method get_schedulers (line 695) | def get_schedulers(self): method get_upscalers (line 706) | def get_upscalers(self): method get_latent_upscale_modes (line 718) | def get_latent_upscale_modes(self): method get_sd_models (line 726) | def get_sd_models(self): method get_sd_vaes (line 730) | def get_sd_vaes(self): method get_hypernetworks (line 734) | def get_hypernetworks(self): method get_face_restorers (line 737) | def get_face_restorers(self): method get_realesrgan_models (line 740) | def get_realesrgan_models(self): method get_prompt_styles (line 743) | def get_prompt_styles(self): method get_embeddings (line 751) | def get_embeddings(self): method refresh_embeddings (line 771) | def refresh_embeddings(self): method refresh_checkpoints (line 775) | def refresh_checkpoints(self): method refresh_vae (line 779) | def refresh_vae(self): method create_embedding (line 783) | def create_embedding(self, args: dict): method create_hypernetwork (line 795) | def create_hypernetwork(self, args: dict): method train_embedding (line 805) | def train_embedding(self, args: dict): method train_hypernetwork (line 826) | def train_hypernetwork(self, args: dict): method get_memory (line 851) | def get_memory(self): method get_extensions_list (line 886) | def get_extensions_list(self): method launch (line 905) | def launch(self, server_name, port, root_path): method kill_webui (line 917) | def kill_webui(self): method restart_webui (line 920) | def restart_webui(self): method stop_webui (line 925) | def stop_webui(request): FILE: modules/api/models.py class ModelDef (line 27) | class ModelDef(BaseModel): class PydanticModelGenerator (line 37) | class PydanticModelGenerator: method __init__ (line 44) | def __init__( method generate_model (line 87) | def generate_model(self): class TextToImageResponse (line 134) | class TextToImageResponse(BaseModel): class ImageToImageResponse (line 139) | class ImageToImageResponse(BaseModel): class ExtrasBaseRequest (line 144) | class ExtrasBaseRequest(BaseModel): class ExtraBaseResponse (line 159) | class ExtraBaseResponse(BaseModel): class ExtrasSingleImageRequest (line 162) | class ExtrasSingleImageRequest(ExtrasBaseRequest): class ExtrasSingleImageResponse (line 165) | class ExtrasSingleImageResponse(ExtraBaseResponse): class FileData (line 168) | class FileData(BaseModel): class ExtrasBatchImagesRequest (line 172) | class ExtrasBatchImagesRequest(ExtrasBaseRequest): class ExtrasBatchImagesResponse (line 175) | class ExtrasBatchImagesResponse(ExtraBaseResponse): class PNGInfoRequest (line 178) | class PNGInfoRequest(BaseModel): class PNGInfoResponse (line 181) | class PNGInfoResponse(BaseModel): class ProgressRequest (line 186) | class ProgressRequest(BaseModel): class ProgressResponse (line 189) | class ProgressResponse(BaseModel): class InterrogateRequest (line 196) | class InterrogateRequest(BaseModel): class InterrogateResponse (line 200) | class InterrogateResponse(BaseModel): class TrainResponse (line 203) | class TrainResponse(BaseModel): class CreateResponse (line 206) | class CreateResponse(BaseModel): class SamplerItem (line 233) | class SamplerItem(BaseModel): class SchedulerItem (line 238) | class SchedulerItem(BaseModel): class UpscalerItem (line 245) | class UpscalerItem(BaseModel): class LatentUpscalerModeItem (line 252) | class LatentUpscalerModeItem(BaseModel): class SDModelItem (line 255) | class SDModelItem(BaseModel): class SDVaeItem (line 263) | class SDVaeItem(BaseModel): class HypernetworkItem (line 267) | class HypernetworkItem(BaseModel): class FaceRestorerItem (line 271) | class FaceRestorerItem(BaseModel): class RealesrganItem (line 275) | class RealesrganItem(BaseModel): class PromptStyleItem (line 280) | class PromptStyleItem(BaseModel): class EmbeddingItem (line 286) | class EmbeddingItem(BaseModel): class EmbeddingsResponse (line 293) | class EmbeddingsResponse(BaseModel): class MemoryResponse (line 297) | class MemoryResponse(BaseModel): class ScriptsList (line 302) | class ScriptsList(BaseModel): class ScriptArg (line 307) | class ScriptArg(BaseModel): class ScriptInfo (line 316) | class ScriptInfo(BaseModel): class ExtensionItem (line 322) | class ExtensionItem(BaseModel): FILE: modules/cache.py function dump_cache (line 17) | def dump_cache(): function make_cache (line 23) | def make_cache(subsection: str) -> diskcache.Cache: function convert_old_cached_data (line 31) | def convert_old_cached_data(): function cache (line 56) | def cache(subsection): function cached_data_for_file (line 81) | def cached_data_for_file(subsection, title, filename, func): FILE: modules/call_queue.py function wrap_queued_call (line 11) | def wrap_queued_call(func): function wrap_gradio_gpu_call (line 21) | def wrap_gradio_gpu_call(func, extra_outputs=None): function wrap_gradio_call (line 49) | def wrap_gradio_call(func, extra_outputs=None, add_stats=False): function wrap_gradio_call_no_job (line 65) | def wrap_gradio_call_no_job(func, extra_outputs=None, add_stats=False): FILE: modules/codeformer_model.py class FaceRestorerCodeFormer (line 25) | class FaceRestorerCodeFormer(face_restoration_utils.CommonFaceRestoration): method name (line 26) | def name(self): method load_net (line 29) | def load_net(self) -> torch.Module: method get_device (line 44) | def get_device(self): method restore (line 47) | def restore(self, np_image, w: float | None = None): function setup_model (line 58) | def setup_model(dirname: str) -> None: FILE: modules/config_states.py function list_config_states (line 18) | def list_config_states(): function get_webui_config (line 48) | def get_webui_config(): function get_extension_config (line 80) | def get_extension_config(): function get_config (line 103) | def get_config(): function restore_webui_config (line 115) | def restore_webui_config(config): function restore_extension_config (line 146) | def restore_extension_config(config): FILE: modules/dat_model.py class UpscalerDAT (line 9) | class UpscalerDAT(Upscaler): method __init__ (line 10) | def __init__(self, user_path): method do_upscale (line 25) | def do_upscale(self, img, path): method load_model (line 45) | def load_model(self, path): function get_dat_models (line 59) | def get_dat_models(scaler): FILE: modules/deepbooru.py class DeepDanbooru (line 12) | class DeepDanbooru: method __init__ (line 13) | def __init__(self): method load (line 16) | def load(self): method start (line 33) | def start(self): method stop (line 37) | def stop(self): method tag (line 42) | def tag(self, pil_image): method tag_multi (line 49) | def tag_multi(self, pil_image, force_disable_ranks=False): FILE: modules/deepbooru_model.py class DeepDanbooruModel (line 10) | class DeepDanbooruModel(nn.Module): method __init__ (line 11) | def __init__(self): method forward (line 197) | def forward(self, *inputs): method load_state_dict (line 674) | def load_state_dict(self, state_dict, **kwargs): FILE: modules/devices.py function has_xpu (line 15) | def has_xpu() -> bool: function has_mps (line 19) | def has_mps() -> bool: function cuda_no_autocast (line 26) | def cuda_no_autocast(device_id=None) -> bool: function get_cuda_device_id (line 35) | def get_cuda_device_id(): function get_cuda_device_string (line 43) | def get_cuda_device_string(): function get_optimal_device_name (line 50) | def get_optimal_device_name(): function get_optimal_device (line 66) | def get_optimal_device(): function get_device_for (line 70) | def get_device_for(task): function torch_gc (line 77) | def torch_gc(): function torch_npu_set_device (line 95) | def torch_npu_set_device(): function enable_tf32 (line 101) | def enable_tf32(): function cond_cast_unet (line 132) | def cond_cast_unet(input): function cond_cast_float (line 138) | def cond_cast_float(input): function manual_cast_forward (line 152) | def manual_cast_forward(target_dtype): function manual_cast (line 188) | def manual_cast(target_dtype): function autocast (line 210) | def autocast(disable=False): function without_autocast (line 234) | def without_autocast(disable=False): class NansException (line 238) | class NansException(Exception): function test_for_nans (line 242) | def test_for_nans(x, where): function first_time_calculation (line 269) | def first_time_calculation(): function force_model_fp16 (line 284) | def force_model_fp16(): FILE: modules/errors.py function format_traceback (line 9) | def format_traceback(tb): function format_exception (line 13) | def format_exception(e, tb): function get_exceptions (line 17) | def get_exceptions(): function record_exception (line 24) | def record_exception(): function report (line 38) | def report(message: str, *, exc_info: bool = False) -> None: function print_error_explanation (line 52) | def print_error_explanation(message): function display (line 64) | def display(e: Exception, task, *, full_traceback=False): function display_once (line 85) | def display_once(e: Exception, task): function run (line 96) | def run(code, task): function check_versions (line 103) | def check_versions(): FILE: modules/esrgan_model.py class UpscalerESRGAN (line 7) | class UpscalerESRGAN(Upscaler): method __init__ (line 8) | def __init__(self, dirname): method do_upscale (line 29) | def do_upscale(self, img, selected_model): method load_model (line 38) | def load_model(self, path: str): function esrgan_upscale (line 56) | def esrgan_upscale(model, img): FILE: modules/extensions.py function active (line 21) | def active(): class CallbackOrderInfo (line 31) | class CallbackOrderInfo: class ExtensionMetadata (line 37) | class ExtensionMetadata: method __init__ (line 43) | def __init__(self, path, canonical_name): method get_script_requirements (line 59) | def get_script_requirements(self, field, section, extra_section=None): method parse_list (line 79) | def parse_list(self, text): method list_callback_order_instructions (line 88) | def list_callback_order_instructions(self): class Extension (line 105) | class Extension: method __init__ (line 110) | def __init__(self, name, path, enabled=True, is_builtin=False, metadat... method to_dict (line 126) | def to_dict(self): method from_dict (line 129) | def from_dict(self, d): method read_info_from_repo (line 133) | def read_info_from_repo(self): method do_read_info_from_repo (line 153) | def do_read_info_from_repo(self): method list_files (line 179) | def list_files(self, subdir, extension): method check_updates (line 192) | def check_updates(self): method fetch_and_reset_hard (line 217) | def fetch_and_reset_hard(self, commit=None): function list_extensions (line 228) | def list_extensions(): function find_extension (line 287) | def find_extension(filename): FILE: modules/extra_networks.py function initialize (line 13) | def initialize(): function register_extra_network (line 18) | def register_extra_network(extra_network): function register_extra_network_alias (line 22) | def register_extra_network_alias(extra_network, alias): function register_default_extra_networks (line 26) | def register_default_extra_networks(): class ExtraNetworkParams (line 31) | class ExtraNetworkParams: method __init__ (line 32) | def __init__(self, items=None): method __eq__ (line 44) | def __eq__(self, other): class ExtraNetwork (line 48) | class ExtraNetwork: method __init__ (line 49) | def __init__(self, name): method activate (line 52) | def activate(self, p, params_list): method deactivate (line 82) | def deactivate(self, p): function lookup_extra_networks (line 90) | def lookup_extra_networks(extra_network_data): function activate (line 126) | def activate(p, extra_network_data): function deactivate (line 153) | def deactivate(p, extra_network_data): function parse_prompt (line 178) | def parse_prompt(prompt): function parse_prompts (line 194) | def parse_prompts(prompts): function get_user_metadata (line 209) | def get_user_metadata(filename, lister=None): FILE: modules/extra_networks_hypernet.py class ExtraNetworkHypernet (line 5) | class ExtraNetworkHypernet(extra_networks.ExtraNetwork): method __init__ (line 6) | def __init__(self): method activate (line 9) | def activate(self, p, params_list): method deactivate (line 27) | def deactivate(self, p): FILE: modules/extras.py function run_pnginfo (line 16) | def run_pnginfo(image): function create_config (line 39) | def create_config(ckpt_result, config_source, a, b, c): function to_half (line 68) | def to_half(tensor, enable): function read_metadata (line 75) | def read_metadata(primary_model_name, secondary_model_name, tertiary_mod... function run_modelmerger (line 88) | def run_modelmerger(id_task, primary_model_name, secondary_model_name, t... FILE: modules/face_restoration.py class FaceRestoration (line 4) | class FaceRestoration: method name (line 5) | def name(self): method restore (line 8) | def restore(self, np_image): function restore_faces (line 12) | def restore_faces(np_image): FILE: modules/face_restoration_utils.py function bgr_image_to_rgb_tensor (line 20) | def bgr_image_to_rgb_tensor(img: np.ndarray) -> torch.Tensor: function rgb_tensor_to_bgr_image (line 29) | def rgb_tensor_to_bgr_image(tensor: torch.Tensor, *, min_max=(0.0, 1.0))... function create_face_helper (line 42) | def create_face_helper(device) -> FaceRestoreHelper: function restore_with_face_helper (line 58) | def restore_with_face_helper( class CommonFaceRestoration (line 113) | class CommonFaceRestoration(face_restoration.FaceRestoration): method __init__ (line 118) | def __init__(self, model_path: str): method face_helper (line 125) | def face_helper(self) -> FaceRestoreHelper: method send_model_to (line 128) | def send_model_to(self, device): method get_device (line 137) | def get_device(self): method load_net (line 140) | def load_net(self) -> torch.Module: method restore_with_helper (line 143) | def restore_with_helper( function patch_facexlib (line 163) | def patch_facexlib(dirname: str) -> None: FILE: modules/fifo_lock.py class FIFOLock (line 6) | class FIFOLock(object): method __init__ (line 7) | def __init__(self): method acquire (line 12) | def acquire(self, blocking=True): method release (line 26) | def release(self): method __exit__ (line 36) | def __exit__(self, t, v, tb): FILE: modules/gfpgan_model.py class FaceRestorerGFPGAN (line 23) | class FaceRestorerGFPGAN(face_restoration_utils.CommonFaceRestoration): method name (line 24) | def name(self): method get_device (line 27) | def get_device(self): method load_net (line 30) | def load_net(self) -> torch.Module: method restore (line 46) | def restore(self, np_image): function gfpgan_fix_faces (line 54) | def gfpgan_fix_faces(np_image): function setup_model (line 61) | def setup_model(dirname: str) -> None: FILE: modules/gitpython_hack.py class Git (line 9) | class Git(git.Git): method _get_persistent_cmd (line 14) | def _get_persistent_cmd(self, attr_name, cmd_name, *args, **kwargs): method get_object_header (line 17) | def get_object_header(self, ref: str | bytes) -> tuple[str, str, int]: method stream_object_data (line 26) | def stream_object_data(self, ref: str) -> tuple[str, str, int, Git.Cat... class Repo (line 41) | class Repo(git.Repo): FILE: modules/gradio_extensons.py function add_classes_to_gradio_component (line 6) | def add_classes_to_gradio_component(comp): function IOComponent_init (line 17) | def IOComponent_init(self, *args, **kwargs): function Block_get_config (line 37) | def Block_get_config(self): function BlockContext_init (line 49) | def BlockContext_init(self, *args, **kwargs): function Blocks_get_config_file (line 67) | def Blocks_get_config_file(self, *args, **kwargs): FILE: modules/hashes.py function calculate_sha256 (line 11) | def calculate_sha256(filename): function sha256_from_cache (line 22) | def sha256_from_cache(filename, title, use_addnet_hash=False): function sha256 (line 41) | def sha256(filename, title, use_addnet_hash=False): function addnet_hash_safetensors (line 69) | def addnet_hash_safetensors(b): FILE: modules/hat_model.py class UpscalerHAT (line 10) | class UpscalerHAT(Upscaler): method __init__ (line 11) | def __init__(self, dirname): method do_upscale (line 22) | def do_upscale(self, img, selected_model): method load_model (line 36) | def load_model(self, path: str): FILE: modules/hypernetworks/hypernetwork.py class HypernetworkModule (line 25) | class HypernetworkModule(torch.nn.Module): method __init__ (line 37) | def __init__(self, dim, state_dict=None, layer_structure=None, activat... method fix_old_state_dict (line 101) | def fix_old_state_dict(self, state_dict): method forward (line 117) | def forward(self, x): method trainables (line 120) | def trainables(self): function parse_dropout_structure (line 129) | def parse_dropout_structure(layer_structure, use_dropout, last_layer_dro... class Hypernetwork (line 144) | class Hypernetwork: method __init__ (line 148) | def __init__(self, name=None, enable_sizes=None, layer_structure=None,... method weights (line 178) | def weights(self): method train (line 185) | def train(self, mode=True): method to (line 192) | def to(self, device): method set_multiplier (line 199) | def set_multiplier(self, multiplier): method eval (line 206) | def eval(self): method save (line 213) | def save(self, filename): method load (line 243) | def load(self, filename): method shorthash (line 306) | def shorthash(self): function list_hypernetworks (line 312) | def list_hypernetworks(path): function load_hypernetwork (line 322) | def load_hypernetwork(name): function load_hypernetworks (line 337) | def load_hypernetworks(names, multipliers=None): function apply_single_hypernetwork (line 358) | def apply_single_hypernetwork(hypernetwork, context_k, context_v, layer=... function apply_hypernetworks (line 373) | def apply_hypernetworks(hypernetworks, context, layer=None): function attention_CrossAttention_forward (line 382) | def attention_CrossAttention_forward(self, x, context=None, mask=None, *... function stack_conds (line 410) | def stack_conds(conds): function statistics (line 425) | def statistics(data): function create_hypernetwork (line 440) | def create_hypernetwork(name, enable_sizes, overwrite_old, layer_structu... function train_hypernetwork (line 472) | def train_hypernetwork(id_task, hypernetwork_name: str, learn_rate: floa... function save_hypernetwork (line 770) | def save_hypernetwork(hypernetwork, checkpoint, hypernetwork_name, filen... FILE: modules/hypernetworks/ui.py function create_hypernetwork (line 11) | def create_hypernetwork(name, enable_sizes, overwrite_old, layer_structu... function train_hypernetwork (line 17) | def train_hypernetwork(*args): FILE: modules/images.py function get_font (line 29) | def get_font(fontsize: int): function image_grid (line 36) | def image_grid(imgs, batch_size=1, rows=None): class Grid (line 69) | class Grid(namedtuple("_Grid", ["tiles", "tile_w", "tile_h", "image_w", ... method tile_count (line 71) | def tile_count(self) -> int: function split_grid (line 78) | def split_grid(image: Image.Image, tile_w: int = 512, tile_h: int = 512,... function combine_grid (line 114) | def combine_grid(grid): class GridAnnotation (line 144) | class GridAnnotation: method __init__ (line 145) | def __init__(self, text='', is_active=True): function draw_grid_annotations (line 151) | def draw_grid_annotations(im, width, height, hor_texts, ver_texts, margi... function draw_prompt_matrix (line 239) | def draw_prompt_matrix(im, width, height, all_prompts, margin=0): function resize_image (line 252) | def resize_image(resize_mode, im, width, height, upscaler_name=None): function sanitize_filename_part (line 342) | def sanitize_filename_part(text, replace_spaces=True): function get_scheduler_str (line 356) | def get_scheduler_str(sampler_name, scheduler_name): function get_sampler_scheduler_str (line 365) | def get_sampler_scheduler_str(sampler_name, scheduler_name): function get_sampler_scheduler (line 370) | def get_sampler_scheduler(p, sampler): class FilenameGenerator (line 381) | class FilenameGenerator: method __init__ (line 420) | def __init__(self, p, seed, prompt, image, zip=False, basename=""): method get_vae_filename (line 428) | def get_vae_filename(self): method hasprompt (line 444) | def hasprompt(self, *args): method prompt_no_style (line 460) | def prompt_no_style(self): method prompt_words (line 474) | def prompt_words(self): method datetime (line 480) | def datetime(self, *args): method image_hash (line 497) | def image_hash(self, *args): method string_hash (line 501) | def string_hash(self, text, *args): method apply (line 505) | def apply(self, x): function get_next_sequence_number (line 543) | def get_next_sequence_number(path, basename): function save_image_with_geninfo (line 565) | def save_image_with_geninfo(image, geninfo, filename, extension=None, ex... function save_image (line 624) | def save_image(image, path, basename, seed=None, prompt=None, extension=... function read_info_from_image (line 777) | def read_info_from_image(image: Image.Image) -> tuple[str | None, dict]: function image_data (line 820) | def image_data(data): function flatten (line 841) | def flatten(img, bgcolor): function read (line 852) | def read(fp, **kwargs): function fix_image (line 859) | def fix_image(image: Image.Image): function fix_png_transparency (line 872) | def fix_png_transparency(image: Image.Image): FILE: modules/img2img.py function process_batch (line 20) | def process_batch(p, input, output_dir, inpaint_mask_dir, args, to_scale... function img2img (line 152) | def img2img(id_task: str, request: gr.Request, mode: int, prompt: str, n... FILE: modules/infotext_utils.py class ParamBinding (line 23) | class ParamBinding: method __init__ (line 24) | def __init__(self, paste_button, tabname, source_text_component=None, ... class PasteField (line 34) | class PasteField(tuple): method __new__ (line 35) | def __new__(cls, component, target, *, api=None): method __init__ (line 38) | def __init__(self, component, target, *, api=None): function reset (line 51) | def reset(): function quote (line 56) | def quote(text): function unquote (line 63) | def unquote(text): function image_from_url_text (line 73) | def image_from_url_text(filedata): function add_paste_fields (line 102) | def add_paste_fields(tabname, init_img, fields, override_settings_compon... function create_buttons (line 119) | def create_buttons(tabs_list): function bind_buttons (line 126) | def bind_buttons(buttons, send_image, send_generate_info): function register_paste_params_button (line 135) | def register_paste_params_button(binding: ParamBinding): function connect_paste_params_buttons (line 139) | def connect_paste_params_buttons(): function send_image_and_dimensions (line 186) | def send_image_and_dimensions(x): function restore_old_hires_fix_params (line 202) | def restore_old_hires_fix_params(res): function parse_generation_parameters (line 234) | def parse_generation_parameters(x: str, skip_fields: list[str] | None = ... function create_override_settings_dict (line 404) | def create_override_settings_dict(text_pairs): function get_override_settings (line 434) | def get_override_settings(params, *, skip_fields=None): function connect_paste (line 476) | def connect_paste(button, paste_fields, input_comp, override_settings_co... FILE: modules/infotext_versions.py function parse_version (line 12) | def parse_version(text): function backcompat (line 26) | def backcompat(d): FILE: modules/initialize.py function imports (line 11) | def imports(): function check_versions (line 43) | def check_versions(): function initialize (line 51) | def initialize(): function initialize_rest (line 78) | def initialize_rest(*, reload_script_modules=False): FILE: modules/initialize_util.py function gradio_server_name (line 10) | def gradio_server_name(): function fix_torch_version (line 19) | def fix_torch_version(): function fix_pytorch_lightning (line 27) | def fix_pytorch_lightning(): function fix_asyncio_event_loop_policy (line 35) | def fix_asyncio_event_loop_policy(): function restore_config_state_file (line 75) | def restore_config_state_file(): function validate_tls_options (line 95) | def validate_tls_options(): function get_gradio_auth_creds (line 114) | def get_gradio_auth_creds(): function dumpstacks (line 142) | def dumpstacks(): function configure_sigint_handler (line 158) | def configure_sigint_handler(): function configure_opts_onchange (line 177) | def configure_opts_onchange(): function setup_middleware (line 192) | def setup_middleware(app): function configure_cors_middleware (line 201) | def configure_cors_middleware(app): FILE: modules/interrogate.py function category_types (line 22) | def category_types(): function download_default_clip_interrogate_categories (line 26) | def download_default_clip_interrogate_categories(content_dir): class InterrogateModels (line 45) | class InterrogateModels: method __init__ (line 52) | def __init__(self, content_dir): method categories (line 58) | def categories(self): method create_fake_fairscale (line 83) | def create_fake_fairscale(self): method load_blip_model (line 90) | def load_blip_model(self): method load_clip_model (line 106) | def load_clip_model(self): method load (line 119) | def load(self): method send_clip_to_ram (line 136) | def send_clip_to_ram(self): method send_blip_to_ram (line 141) | def send_blip_to_ram(self): method unload (line 146) | def unload(self): method rank (line 152) | def rank(self, image_features, text_array, top_count=1): method generate_caption (line 173) | def generate_caption(self, pil_image): method interrogate (line 185) | def interrogate(self, pil_image): FILE: modules/launch_utils.py function check_python_version (line 34) | def check_python_version(): function commit_hash (line 66) | def commit_hash(): function git_tag (line 74) | def git_tag(): function run (line 89) | def run(command, desc=None, errdesc=None, custom_env=None, live: bool = ... function is_installed (line 121) | def is_installed(package): function repo_dir (line 135) | def repo_dir(name): function run_pip (line 139) | def run_pip(command, desc=None, live=default_command_live): function check_run_python (line 147) | def check_run_python(code: str) -> bool: function git_fix_workspace (line 152) | def git_fix_workspace(dir, name): function run_git (line 158) | def run_git(dir, name, command, desc=None, errdesc=None, custom_env=None... function git_clone (line 171) | def git_clone(url, dir, name, commithash=None): function git_pull_recursive (line 201) | def git_pull_recursive(dir): function version_check (line 211) | def version_check(commit): function run_extension_installer (line 228) | def run_extension_installer(extension_dir): function list_extensions (line 244) | def list_extensions(settings_file): function run_extensions_installers (line 265) | def run_extensions_installers(settings_file): function requirements_met (line 283) | def requirements_met(requirements_file): function prepare_environment (line 318) | def prepare_environment(): function configure_for_tests (line 449) | def configure_for_tests(): function start (line 463) | def start(): function dump_sysinfo (line 472) | def dump_sysinfo(): FILE: modules/localization.py function list_localizations (line 9) | def list_localizations(dirname): function localization_js (line 26) | def localization_js(current_localization_name: str) -> str: FILE: modules/logging_config.py class TqdmLoggingHandler (line 8) | class TqdmLoggingHandler(logging.Handler): method __init__ (line 9) | def __init__(self, fallback_handler: logging.Handler): method emit (line 13) | def emit(self, record): function setup_logging (line 28) | def setup_logging(loglevel): FILE: modules/lowvram.py function send_everything_to_cpu (line 11) | def send_everything_to_cpu(): function is_needed (line 20) | def is_needed(sd_model): function apply (line 24) | def apply(sd_model): function setup_for_low_vram (line 34) | def setup_for_low_vram(sd_model, use_medvram): function is_enabled (line 164) | def is_enabled(sd_model): FILE: modules/mac_specific.py function check_for_mps (line 17) | def check_for_mps() -> bool: function torch_mps_gc (line 33) | def torch_mps_gc() -> None: function cumsum_fix (line 45) | def cumsum_fix(input, cumsum_func, *args, **kwargs): function interpolate_with_fp32_fallback (line 56) | def interpolate_with_fp32_fallback(orig_func, *args, **kwargs) -> Tensor: FILE: modules/masking.py function get_crop_region_v2 (line 4) | def get_crop_region_v2(mask, pad=0): function get_crop_region (line 22) | def get_crop_region(mask, pad=0): function expand_crop_region (line 39) | def expand_crop_region(crop_region, processing_width, processing_height,... function fill (line 80) | def fill(image, mask): FILE: modules/memmon.py class MemUsageMonitor (line 8) | class MemUsageMonitor(threading.Thread): method __init__ (line 15) | def __init__(self, name, device, opts): method cuda_mem_get_info (line 32) | def cuda_mem_get_info(self): method run (line 36) | def run(self): method dump_debug (line 58) | def dump_debug(self): method monitor (line 72) | def monitor(self): method read (line 75) | def read(self): method stop (line 90) | def stop(self): FILE: modules/modelloader.py function load_file_from_url (line 20) | def load_file_from_url( function load_models (line 44) | def load_models(model_path: str, model_url: str = None, command_path: st... function friendly_name (line 93) | def friendly_name(file: str): function load_upscalers (line 102) | def load_upscalers(): function _init_spandrel_extra_archs (line 146) | def _init_spandrel_extra_archs() -> None: function load_spandrel_model (line 164) | def load_spandrel_model( FILE: modules/models/diffusion/ddpm_edit.py class VQModelInterface (line 34) | class VQModelInterface: function disabled_train (line 42) | def disabled_train(self, mode=True): function uniform_on_device (line 48) | def uniform_on_device(r1, r2, shape, device): class DDPM (line 52) | class DDPM(pl.LightningModule): method __init__ (line 54) | def __init__(self, method register_schedule (line 133) | def register_schedule(self, given_betas=None, beta_schedule="linear", ... method ema_scope (line 188) | def ema_scope(self, context=None): method init_from_ckpt (line 202) | def init_from_ckpt(self, path, ignore_keys=None, only_model=False): method q_mean_variance (line 243) | def q_mean_variance(self, x_start, t): method predict_start_from_noise (line 255) | def predict_start_from_noise(self, x_t, t, noise): method q_posterior (line 261) | def q_posterior(self, x_start, x_t, t): method p_mean_variance (line 270) | def p_mean_variance(self, x, t, clip_denoised: bool): method p_sample (line 283) | def p_sample(self, x, t, clip_denoised=True, repeat_noise=False): method p_sample_loop (line 292) | def p_sample_loop(self, shape, return_intermediates=False): method sample (line 307) | def sample(self, batch_size=16, return_intermediates=False): method q_sample (line 313) | def q_sample(self, x_start, t, noise=None): method get_loss (line 318) | def get_loss(self, pred, target, mean=True): method p_losses (line 333) | def p_losses(self, x_start, t, noise=None): method forward (line 362) | def forward(self, x, *args, **kwargs): method get_input (line 368) | def get_input(self, batch, k): method shared_step (line 371) | def shared_step(self, batch): method training_step (line 376) | def training_step(self, batch, batch_idx): method validation_step (line 392) | def validation_step(self, batch, batch_idx): method on_train_batch_end (line 400) | def on_train_batch_end(self, *args, **kwargs): method _get_rows_from_list (line 404) | def _get_rows_from_list(self, samples): method log_images (line 412) | def log_images(self, batch, N=8, n_row=2, sample=True, return_keys=Non... method configure_optimizers (line 449) | def configure_optimizers(self): class LatentDiffusion (line 458) | class LatentDiffusion(DDPM): method __init__ (line 460) | def __init__(self, method make_cond_schedule (line 510) | def make_cond_schedule(self, ): method on_train_batch_start (line 517) | def on_train_batch_start(self, batch, batch_idx, dataloader_idx): method register_schedule (line 532) | def register_schedule(self, method instantiate_first_stage (line 541) | def instantiate_first_stage(self, config): method instantiate_cond_stage (line 548) | def instantiate_cond_stage(self, config): method _get_denoise_row_from_list (line 569) | def _get_denoise_row_from_list(self, samples, desc='', force_no_decode... method get_first_stage_encoding (line 581) | def get_first_stage_encoding(self, encoder_posterior): method get_learned_conditioning (line 590) | def get_learned_conditioning(self, c): method meshgrid (line 603) | def meshgrid(self, h, w): method delta_border (line 610) | def delta_border(self, h, w): method get_weighting (line 624) | def get_weighting(self, h, w, Ly, Lx, device): method get_fold_unfold (line 640) | def get_fold_unfold(self, x, kernel_size, stride, uf=1, df=1): # todo... method get_input (line 693) | def get_input(self, batch, k, return_first_stage_outputs=False, force_... method decode_first_stage (line 726) | def decode_first_stage(self, z, predict_cids=False, force_not_quantize... method differentiable_decode_first_stage (line 786) | def differentiable_decode_first_stage(self, z, predict_cids=False, for... method encode_first_stage (line 846) | def encode_first_stage(self, x): method shared_step (line 885) | def shared_step(self, batch, **kwargs): method forward (line 890) | def forward(self, x, c, *args, **kwargs): method apply_model (line 901) | def apply_model(self, x_noisy, t, cond, return_ids=False): method _predict_eps_from_xstart (line 1004) | def _predict_eps_from_xstart(self, x_t, t, pred_xstart): method _prior_bpd (line 1008) | def _prior_bpd(self, x_start): method p_losses (line 1022) | def p_losses(self, x_start, cond, t, noise=None): method p_mean_variance (line 1057) | def p_mean_variance(self, x, c, t, clip_denoised: bool, return_codeboo... method p_sample (line 1089) | def p_sample(self, x, c, t, clip_denoised=False, repeat_noise=False, method progressive_denoising (line 1120) | def progressive_denoising(self, cond, shape, verbose=True, callback=No... method p_sample_loop (line 1178) | def p_sample_loop(self, cond, shape, return_intermediates=False, method sample (line 1231) | def sample(self, cond, batch_size=16, return_intermediates=False, x_T=... method sample_log (line 1249) | def sample_log(self,cond,batch_size,ddim, ddim_steps,**kwargs): method log_images (line 1265) | def log_images(self, batch, N=4, n_row=4, sample=True, ddim_steps=200,... method configure_optimizers (line 1376) | def configure_optimizers(self): method to_rgb (line 1401) | def to_rgb(self, x): class DiffusionWrapper (line 1410) | class DiffusionWrapper(pl.LightningModule): method __init__ (line 1411) | def __init__(self, diff_model_config, conditioning_key): method forward (line 1417) | def forward(self, x, t, c_concat: list = None, c_crossattn: list = None): class Layout2ImgDiffusion (line 1439) | class Layout2ImgDiffusion(LatentDiffusion): method __init__ (line 1441) | def __init__(self, cond_stage_key, *args, **kwargs): method log_images (line 1445) | def log_images(self, batch, N=8, *args, **kwargs): FILE: modules/models/diffusion/uni_pc/sampler.py class UniPCSampler (line 9) | class UniPCSampler(object): method __init__ (line 10) | def __init__(self, model, **kwargs): method register_buffer (line 18) | def register_buffer(self, name, attr): method set_hooks (line 24) | def set_hooks(self, before_sample, after_sample, after_update): method sample (line 30) | def sample(self, FILE: modules/models/diffusion/uni_pc/uni_pc.py class NoiseScheduleVP (line 6) | class NoiseScheduleVP: method __init__ (line 7) | def __init__( method marginal_log_mean_coeff (line 125) | def marginal_log_mean_coeff(self, t): method marginal_alpha (line 138) | def marginal_alpha(self, t): method marginal_std (line 144) | def marginal_std(self, t): method marginal_lambda (line 150) | def marginal_lambda(self, t): method inverse_lambda (line 158) | def inverse_lambda(self, lamb): function model_wrapper (line 177) | def model_wrapper( class UniPC (line 372) | class UniPC: method __init__ (line 373) | def __init__( method dynamic_thresholding_fn (line 403) | def dynamic_thresholding_fn(self, x0, t=None): method model (line 414) | def model(self, x, t): method noise_prediction_fn (line 429) | def noise_prediction_fn(self, x, t): method data_prediction_fn (line 435) | def data_prediction_fn(self, x, t): method model_fn (line 450) | def model_fn(self, x, t): method get_time_steps (line 459) | def get_time_steps(self, skip_type, t_T, t_0, N, device): method get_orders_and_timesteps_for_singlestep_solver (line 476) | def get_orders_and_timesteps_for_singlestep_solver(self, steps, order,... method denoise_to_zero_fn (line 507) | def denoise_to_zero_fn(self, x, s): method multistep_uni_pc_update (line 513) | def multistep_uni_pc_update(self, x, model_prev_list, t_prev_list, t, ... method multistep_uni_pc_vary_update (line 522) | def multistep_uni_pc_vary_update(self, x, model_prev_list, t_prev_list... method multistep_uni_pc_bh_update (line 625) | def multistep_uni_pc_bh_update(self, x, model_prev_list, t_prev_list, ... method sample (line 746) | def sample(self, x, steps=20, t_start=None, t_end=None, order=3, skip_... function interpolate_fn (line 811) | def interpolate_fn(x, xp, yp): function expand_dims (line 853) | def expand_dims(v, dims): FILE: modules/models/sd3/mmdit.py class PatchEmbed (line 12) | class PatchEmbed(nn.Module): method __init__ (line 14) | def __init__( method forward (line 45) | def forward(self, x): function modulate (line 53) | def modulate(x, shift, scale): function get_2d_sincos_pos_embed (line 64) | def get_2d_sincos_pos_embed(embed_dim, grid_size, cls_token=False, extra... function get_2d_sincos_pos_embed_from_grid (line 85) | def get_2d_sincos_pos_embed_from_grid(embed_dim, grid): function get_1d_sincos_pos_embed_from_grid (line 94) | def get_1d_sincos_pos_embed_from_grid(embed_dim, pos): class TimestepEmbedder (line 116) | class TimestepEmbedder(nn.Module): method __init__ (line 119) | def __init__(self, hidden_size, frequency_embedding_size=256, dtype=No... method timestep_embedding (line 129) | def timestep_embedding(t, dim, max_period=10000): method forward (line 152) | def forward(self, t, dtype, **kwargs): class VectorEmbedder (line 158) | class VectorEmbedder(nn.Module): method __init__ (line 161) | def __init__(self, input_dim: int, hidden_size: int, dtype=None, devic... method forward (line 169) | def forward(self, x: torch.Tensor) -> torch.Tensor: class QkvLinear (line 178) | class QkvLinear(torch.nn.Linear): function split_qkv (line 181) | def split_qkv(qkv, head_dim): function optimized_attention (line 185) | def optimized_attention(qkv, num_heads): class SelfAttention (line 188) | class SelfAttention(nn.Module): method __init__ (line 191) | def __init__( method pre_attention (line 227) | def pre_attention(self, x: torch.Tensor): method post_attention (line 235) | def post_attention(self, x: torch.Tensor) -> torch.Tensor: method forward (line 240) | def forward(self, x: torch.Tensor) -> torch.Tensor: class RMSNorm (line 247) | class RMSNorm(torch.nn.Module): method __init__ (line 248) | def __init__( method _norm (line 268) | def _norm(self, x): method forward (line 278) | def forward(self, x): class SwiGLUFeedForward (line 293) | class SwiGLUFeedForward(nn.Module): method __init__ (line 294) | def __init__( method forward (line 327) | def forward(self, x): class DismantledBlock (line 331) | class DismantledBlock(nn.Module): method __init__ (line 336) | def __init__( method pre_attention (line 378) | def pre_attention(self, x: torch.Tensor, c: torch.Tensor): method post_attention (line 398) | def post_attention(self, attn, x, gate_msa, shift_mlp, scale_mlp, gate... method forward (line 404) | def forward(self, x: torch.Tensor, c: torch.Tensor) -> torch.Tensor: function block_mixing (line 411) | def block_mixing(context, x, context_block, x_block, c): class JointBlock (line 433) | class JointBlock(nn.Module): method __init__ (line 436) | def __init__(self, *args, **kwargs): method forward (line 443) | def forward(self, *args, **kwargs): class FinalLayer (line 447) | class FinalLayer(nn.Module): method __init__ (line 452) | def __init__(self, hidden_size: int, patch_size: int, out_channels: in... method forward (line 462) | def forward(self, x: torch.Tensor, c: torch.Tensor) -> torch.Tensor: class MMDiT (line 469) | class MMDiT(nn.Module): method __init__ (line 472) | def __init__( method cropped_pos_embed (line 550) | def cropped_pos_embed(self, hw): method unpatchify (line 571) | def unpatchify(self, x, hw=None): method forward_core_with_concat (line 591) | def forward_core_with_concat(self, x: torch.Tensor, c_mod: torch.Tenso... method forward (line 603) | def forward(self, x: torch.Tensor, t: torch.Tensor, y: Optional[torch.... FILE: modules/models/sd3/other_impls.py class AutocastLinear (line 16) | class AutocastLinear(nn.Linear): method forward (line 24) | def forward(self, x): function attention (line 28) | def attention(q, k, v, heads, mask=None): class Mlp (line 37) | class Mlp(nn.Module): method __init__ (line 39) | def __init__(self, in_features, hidden_features=None, out_features=Non... method forward (line 48) | def forward(self, x): class CLIPAttention (line 60) | class CLIPAttention(torch.nn.Module): method __init__ (line 61) | def __init__(self, embed_dim, heads, dtype, device): method forward (line 69) | def forward(self, x, mask=None): class CLIPLayer (line 82) | class CLIPLayer(torch.nn.Module): method __init__ (line 83) | def __init__(self, embed_dim, heads, intermediate_size, intermediate_a... method forward (line 91) | def forward(self, x, mask=None): class CLIPEncoder (line 97) | class CLIPEncoder(torch.nn.Module): method __init__ (line 98) | def __init__(self, num_layers, embed_dim, heads, intermediate_size, in... method forward (line 102) | def forward(self, x, mask=None, intermediate_output=None): class CLIPEmbeddings (line 114) | class CLIPEmbeddings(torch.nn.Module): method __init__ (line 115) | def __init__(self, embed_dim, vocab_size=49408, num_positions=77, dtyp... method forward (line 120) | def forward(self, input_tokens): class CLIPTextModel_ (line 124) | class CLIPTextModel_(torch.nn.Module): method __init__ (line 125) | def __init__(self, config_dict, dtype, device): method forward (line 136) | def forward(self, input_tokens, intermediate_output=None, final_layer_... class CLIPTextModel (line 147) | class CLIPTextModel(torch.nn.Module): method __init__ (line 148) | def __init__(self, config_dict, dtype, device): method get_input_embeddings (line 157) | def get_input_embeddings(self): method set_input_embeddings (line 160) | def set_input_embeddings(self, embeddings): method forward (line 163) | def forward(self, *args, **kwargs): class SDTokenizer (line 169) | class SDTokenizer: method __init__ (line 170) | def __init__(self, max_length=77, pad_with_end=True, tokenizer=None, h... method tokenize_with_weights (line 190) | def tokenize_with_weights(self, text:str): class SDXLClipGTokenizer (line 211) | class SDXLClipGTokenizer(SDTokenizer): method __init__ (line 212) | def __init__(self, tokenizer): class SD3Tokenizer (line 216) | class SD3Tokenizer: method __init__ (line 217) | def __init__(self): method tokenize_with_weights (line 223) | def tokenize_with_weights(self, text:str): class ClipTokenWeightEncoder (line 231) | class ClipTokenWeightEncoder: method encode_token_weights (line 232) | def encode_token_weights(self, token_weight_pairs): class SDClipModel (line 243) | class SDClipModel(torch.nn.Module, ClipTokenWeightEncoder): method __init__ (line 246) | def __init__(self, device="cpu", max_length=77, layer="last", layer_id... method set_clip_options (line 268) | def set_clip_options(self, options): method forward (line 277) | def forward(self, tokens): class SDXLClipG (line 295) | class SDXLClipG(SDClipModel): method __init__ (line 297) | def __init__(self, config, device="cpu", layer="penultimate", layer_id... class T5XXLModel (line 304) | class T5XXLModel(SDClipModel): method __init__ (line 306) | def __init__(self, config, device="cpu", layer="last", layer_idx=None,... class T5XXLTokenizer (line 314) | class T5XXLTokenizer(SDTokenizer): method __init__ (line 316) | def __init__(self): class T5LayerNorm (line 320) | class T5LayerNorm(torch.nn.Module): method __init__ (line 321) | def __init__(self, hidden_size, eps=1e-6, dtype=None, device=None): method forward (line 326) | def forward(self, x): class T5DenseGatedActDense (line 332) | class T5DenseGatedActDense(torch.nn.Module): method __init__ (line 333) | def __init__(self, model_dim, ff_dim, dtype, device): method forward (line 339) | def forward(self, x): class T5LayerFF (line 347) | class T5LayerFF(torch.nn.Module): method __init__ (line 348) | def __init__(self, model_dim, ff_dim, dtype, device): method forward (line 353) | def forward(self, x): class T5Attention (line 360) | class T5Attention(torch.nn.Module): method __init__ (line 361) | def __init__(self, model_dim, inner_dim, num_heads, relative_attention... method _relative_position_bucket (line 376) | def _relative_position_bucket(relative_position, bidirectional=True, n... method compute_bias (line 418) | def compute_bias(self, query_length, key_length, device): method forward (line 433) | def forward(self, x, past_bias=None): class T5LayerSelfAttention (line 450) | class T5LayerSelfAttention(torch.nn.Module): method __init__ (line 451) | def __init__(self, model_dim, inner_dim, ff_dim, num_heads, relative_a... method forward (line 456) | def forward(self, x, past_bias=None): class T5Block (line 462) | class T5Block(torch.nn.Module): method __init__ (line 463) | def __init__(self, model_dim, inner_dim, ff_dim, num_heads, relative_a... method forward (line 469) | def forward(self, x, past_bias=None): class T5Stack (line 475) | class T5Stack(torch.nn.Module): method __init__ (line 476) | def __init__(self, num_layers, model_dim, inner_dim, ff_dim, num_heads... method forward (line 482) | def forward(self, input_ids, intermediate_output=None, final_layer_nor... class T5 (line 496) | class T5(torch.nn.Module): method __init__ (line 497) | def __init__(self, config_dict, dtype, device): method get_input_embeddings (line 503) | def get_input_embeddings(self): method set_input_embeddings (line 506) | def set_input_embeddings(self, embeddings): method forward (line 509) | def forward(self, *args, **kwargs): FILE: modules/models/sd3/sd3_cond.py class SafetensorsMapping (line 12) | class SafetensorsMapping(typing.Mapping): method __init__ (line 13) | def __init__(self, file): method __len__ (line 16) | def __len__(self): method __iter__ (line 19) | def __iter__(self): method __getitem__ (line 23) | def __getitem__(self, key): class Sd3ClipLG (line 56) | class Sd3ClipLG(sd_hijack_clip.TextConditionalModel): method __init__ (line 57) | def __init__(self, clip_l, clip_g): method tokenize (line 72) | def tokenize(self, texts): method encode_with_transformers (line 75) | def encode_with_transformers(self, tokens): method encode_embedding_init_text (line 93) | def encode_embedding_init_text(self, init_text, nvpt): class Sd3T5 (line 97) | class Sd3T5(torch.nn.Module): method __init__ (line 98) | def __init__(self, t5xxl): method tokenize (line 108) | def tokenize(self, texts): method tokenize_line (line 111) | def tokenize_line(self, line, *, target_token_count=None): method forward (line 142) | def forward(self, texts, *, token_count): method encode_embedding_init_text (line 156) | def encode_embedding_init_text(self, init_text, nvpt): class SD3Cond (line 160) | class SD3Cond(torch.nn.Module): method __init__ (line 161) | def __init__(self, *args, **kwargs): method forward (line 178) | def forward(self, prompts: list[str]): method before_load_weights (line 189) | def before_load_weights(self, state_dict): method encode_embedding_init_text (line 207) | def encode_embedding_init_text(self, init_text, nvpt): method tokenize (line 210) | def tokenize(self, texts): method medvram_modules (line 213) | def medvram_modules(self): method get_token_count (line 216) | def get_token_count(self, text): method get_target_prompt_token_count (line 221) | def get_target_prompt_token_count(self, token_count): FILE: modules/models/sd3/sd3_impls.py class ModelSamplingDiscreteFlow (line 15) | class ModelSamplingDiscreteFlow(torch.nn.Module): method __init__ (line 17) | def __init__(self, shift=1.0): method sigma_min (line 25) | def sigma_min(self): method sigma_max (line 29) | def sigma_max(self): method timestep (line 32) | def timestep(self, sigma): method sigma (line 35) | def sigma(self, timestep: torch.Tensor): method calculate_denoised (line 41) | def calculate_denoised(self, sigma, model_output, model_input): method noise_scaling (line 45) | def noise_scaling(self, sigma, noise, latent_image, max_denoise=False): class BaseModel (line 49) | class BaseModel(torch.nn.Module): method __init__ (line 51) | def __init__(self, shift=1.0, device=None, dtype=torch.float32, state_... method apply_model (line 72) | def apply_model(self, x, sigma, c_crossattn=None, y=None): method forward (line 78) | def forward(self, *args, **kwargs): method get_dtype (line 81) | def get_dtype(self): class CFGDenoiser (line 85) | class CFGDenoiser(torch.nn.Module): method __init__ (line 87) | def __init__(self, model): method forward (line 91) | def forward(self, x, timestep, cond, uncond, cond_scale): class SD3LatentFormat (line 100) | class SD3LatentFormat: method __init__ (line 102) | def __init__(self): method process_in (line 106) | def process_in(self, latent): method process_out (line 109) | def process_out(self, latent): method decode_latent_to_preview (line 112) | def decode_latent_to_preview(self, x0): function append_dims (line 139) | def append_dims(x, target_dims): function to_d (line 145) | def to_d(x, sigma, denoised): function sample_euler (line 152) | def sample_euler(model, x, sigmas, extra_args=None): function Normalize (line 171) | def Normalize(in_channels, num_groups=32, dtype=torch.float32, device=No... class ResnetBlock (line 175) | class ResnetBlock(torch.nn.Module): method __init__ (line 176) | def __init__(self, *, in_channels, out_channels=None, dtype=torch.floa... method forward (line 192) | def forward(self, x): class AttnBlock (line 205) | class AttnBlock(torch.nn.Module): method __init__ (line 206) | def __init__(self, in_channels, dtype=torch.float32, device=None): method forward (line 214) | def forward(self, x): class Downsample (line 227) | class Downsample(torch.nn.Module): method __init__ (line 228) | def __init__(self, in_channels, dtype=torch.float32, device=None): method forward (line 232) | def forward(self, x): class Upsample (line 239) | class Upsample(torch.nn.Module): method __init__ (line 240) | def __init__(self, in_channels, dtype=torch.float32, device=None): method forward (line 244) | def forward(self, x): class VAEEncoder (line 250) | class VAEEncoder(torch.nn.Module): method __init__ (line 251) | def __init__(self, ch=128, ch_mult=(1,2,4,4), num_res_blocks=2, in_cha... method forward (line 284) | def forward(self, x): class VAEDecoder (line 305) | class VAEDecoder(torch.nn.Module): method __init__ (line 306) | def __init__(self, ch=128, out_ch=3, ch_mult=(1, 2, 4, 4), num_res_blo... method forward (line 338) | def forward(self, z): class SDVAE (line 358) | class SDVAE(torch.nn.Module): method __init__ (line 359) | def __init__(self, dtype=torch.float32, device=None): method decode (line 365) | def decode(self, latent): method encode (line 369) | def encode(self, image): FILE: modules/models/sd3/sd3_model.py class SD3Denoiser (line 12) | class SD3Denoiser(k_diffusion.external.DiscreteSchedule): method __init__ (line 13) | def __init__(self, inner_model, sigmas): method forward (line 17) | def forward(self, input, sigma, **kwargs): class SD3Inferencer (line 21) | class SD3Inferencer(torch.nn.Module): method __init__ (line 22) | def __init__(self, state_dict, shift=3, use_ema=False): method cond_stage_model (line 44) | def cond_stage_model(self): method before_load_weights (line 47) | def before_load_weights(self, state_dict): method ema_scope (line 50) | def ema_scope(self): method get_learned_conditioning (line 53) | def get_learned_conditioning(self, batch: list[str]): method apply_model (line 56) | def apply_model(self, x, t, cond): method decode_first_stage (line 59) | def decode_first_stage(self, latent): method encode_first_stage (line 63) | def encode_first_stage(self, image): method get_first_stage_encoding (line 67) | def get_first_stage_encoding(self, x): method create_denoiser (line 70) | def create_denoiser(self): method medvram_fields (line 73) | def medvram_fields(self): method add_noise_to_latent (line 80) | def add_noise_to_latent(self, x, noise, amount): method fix_dimensions (line 83) | def fix_dimensions(self, width, height): method diffusers_weight_mapping (line 86) | def diffusers_weight_mapping(self): FILE: modules/ngrok.py function connect (line 4) | def connect(token, port, options): FILE: modules/npu_specific.py function check_for_npu (line 7) | def check_for_npu(): function get_npu_device_string (line 20) | def get_npu_device_string(): function torch_npu_gc (line 26) | def torch_npu_gc(): FILE: modules/options.py class OptionInfo (line 13) | class OptionInfo: method __init__ (line 14) | def __init__(self, default=None, label="", component=None, component_a... method link (line 36) | def link(self, label, url): method js (line 40) | def js(self, label, js_func): method info (line 44) | def info(self, info): method html (line 48) | def html(self, html): method needs_restart (line 52) | def needs_restart(self): method needs_reload_ui (line 56) | def needs_reload_ui(self): class OptionHTML (line 61) | class OptionHTML(OptionInfo): method __init__ (line 62) | def __init__(self, text): function options_section (line 68) | def options_section(section_identifier, options_dict): class Options (line 82) | class Options: method __init__ (line 85) | def __init__(self, data_labels: dict[str, OptionInfo], restricted_opts): method __setattr__ (line 90) | def __setattr__(self, key, value): method __getattr__ (line 131) | def __getattr__(self, item): method set (line 144) | def set(self, key, value, is_api=False, run_callbacks=True): method get_default (line 173) | def get_default(self, key): method save (line 182) | def save(self, filename): method same_type (line 188) | def same_type(self, x, y): method load (line 197) | def load(self, filename): method onchange (line 229) | def onchange(self, key, func, call=True): method dumpjson (line 236) | def dumpjson(self): method add_option (line 256) | def add_option(self, key, info): method reorder (line 261) | def reorder(self): method cast_value (line 297) | def cast_value(self, key, value): class OptionsCategory (line 321) | class OptionsCategory: class OptionsCategories (line 325) | class OptionsCategories: method __init__ (line 326) | def __init__(self): method register_category (line 329) | def register_category(self, category_id, label): FILE: modules/patches.py function patch (line 4) | def patch(key, obj, field, replacement): function undo (line 32) | def undo(key, obj, field): function original (line 57) | def original(key, obj, field): FILE: modules/paths.py function mute_sdxl_imports (line 8) | def mute_sdxl_imports(): FILE: modules/postprocessing.py function run_postprocessing (line 9) | def run_postprocessing(extras_mode, image, image_folder, input_dir, outp... function run_postprocessing_webui (line 132) | def run_postprocessing_webui(id_task, *args, **kwargs): function run_extras (line 136) | def run_extras(extras_mode, resize_mode, image, image_folder, input_dir,... FILE: modules/processing.py function setup_color_correction (line 43) | def setup_color_correction(image): function apply_color_correction (line 49) | def apply_color_correction(correction, original_image): function uncrop (line 65) | def uncrop(image, dest_size, paste_loc): function apply_overlay (line 75) | def apply_overlay(image, paste_loc, overlay): function create_binary_mask (line 90) | def create_binary_mask(image, round=True): function txt2img_image_conditioning (line 100) | def txt2img_image_conditioning(sd_model, x, width, height): class StableDiffusionProcessing (line 137) | class StableDiffusionProcessing: method __post_init__ (line 228) | def __post_init__(self): method fill_fields_from_opts (line 254) | def fill_fields_from_opts(self): method sd_model (line 262) | def sd_model(self): method sd_model (line 266) | def sd_model(self, value): method scripts (line 270) | def scripts(self): method scripts (line 274) | def scripts(self, value): method script_args (line 281) | def script_args(self): method script_args (line 285) | def script_args(self, value): method setup_scripts (line 291) | def setup_scripts(self): method comment (line 296) | def comment(self, text): method txt2img_image_conditioning (line 299) | def txt2img_image_conditioning(self, x, width=None, height=None): method depth2img_image_conditioning (line 304) | def depth2img_image_conditioning(self, source_image): method edit_image_conditioning (line 323) | def edit_image_conditioning(self, source_image): method unclip_image_conditioning (line 328) | def unclip_image_conditioning(self, source_image): method inpainting_image_conditioning (line 336) | def inpainting_image_conditioning(self, source_image, latent_image, im... method img2img_image_conditioning (line 375) | def img2img_image_conditioning(self, source_image, latent_image, image... method init (line 398) | def init(self, all_prompts, all_seeds, all_subseeds): method sample (line 401) | def sample(self, conditioning, unconditional_conditioning, seeds, subs... method close (line 404) | def close(self): method get_token_merging_ratio (line 412) | def get_token_merging_ratio(self, for_hr=False): method setup_prompts (line 418) | def setup_prompts(self): method cached_params (line 440) | def cached_params(self, required_prompts, steps, extra_network_data, h... method get_conds_with_caching (line 460) | def get_conds_with_caching(self, function, required_prompts, steps, ca... method setup_conds (line 493) | def setup_conds(self): method get_conds (line 505) | def get_conds(self): method parse_extra_network_prompts (line 508) | def parse_extra_network_prompts(self): method save_samples (line 511) | def save_samples(self) -> bool: class Processed (line 516) | class Processed: method __init__ (line 517) | def __init__(self, p: StableDiffusionProcessing, images_list, seed=-1,... method js (line 571) | def js(self): method infotext (line 609) | def infotext(self, p: StableDiffusionProcessing, index): method get_token_merging_ratio (line 612) | def get_token_merging_ratio(self, for_hr=False): function create_random_tensors (line 616) | def create_random_tensors(shape, seeds, subseeds=None, subseed_strength=... class DecodedSamples (line 621) | class DecodedSamples(list): function decode_latent_batch (line 625) | def decode_latent_batch(model, batch, target_device=None, check_for_nans... function get_fixed_seed (line 675) | def get_fixed_seed(seed): function fix_seed (line 690) | def fix_seed(p): function program_version (line 695) | def program_version(): function create_infotext (line 705) | def create_infotext(p, all_prompts, all_seeds, all_subseeds, comments=No... function process_images (line 819) | def process_images(p: StableDiffusionProcessing) -> Processed: function process_images_inner (line 863) | def process_images_inner(p: StableDiffusionProcessing) -> Processed: function old_hires_fix_first_pass_dimensions (line 1153) | def old_hires_fix_first_pass_dimensions(width, height): class StableDiffusionProcessingTxt2Img (line 1166) | class StableDiffusionProcessingTxt2Img(StableDiffusionProcessing): method __post_init__ (line 1201) | def __post_init__(self): method calculate_target_resolution (line 1213) | def calculate_target_resolution(self): method init (line 1252) | def init(self, all_prompts, all_seeds, all_subseeds): method sample (line 1307) | def sample(self, conditioning, unconditional_conditioning, seeds, subs... method sample_hr_pass (line 1364) | def sample_hr_pass(self, samples, decoded_samples, seeds, subseeds, su... method close (line 1466) | def close(self): method setup_prompts (line 1474) | def setup_prompts(self): method calculate_hr_conds (line 1499) | def calculate_hr_conds(self): method setup_conds (line 1513) | def setup_conds(self): method get_conds (line 1538) | def get_conds(self): method parse_extra_network_prompts (line 1544) | def parse_extra_network_prompts(self): class StableDiffusionProcessingImg2Img (line 1557) | class StableDiffusionProcessingImg2Img(StableDiffusionProcessing): method __post_init__ (line 1583) | def __post_init__(self): method mask_blur (line 1591) | def mask_blur(self): method mask_blur (line 1597) | def mask_blur(self, value): method init (line 1602) | def init(self, all_prompts, all_seeds, all_subseeds): method sample (line 1759) | def sample(self, conditioning, unconditional_conditioning, seeds, subs... method get_token_merging_ratio (line 1791) | def get_token_merging_ratio(self, for_hr=False): FILE: modules/processing_scripts/comments.py function strip_comments (line 5) | def strip_comments(text): class ScriptStripComments (line 12) | class ScriptStripComments(scripts.Script): method title (line 13) | def title(self): method show (line 16) | def show(self, is_img2img): method process (line 19) | def process(self, p, *args): function before_token_counter (line 37) | def before_token_counter(params: script_callbacks.BeforeTokenCounterPara... FILE: modules/processing_scripts/refiner.py class ScriptRefiner (line 9) | class ScriptRefiner(scripts.ScriptBuiltinUI): method __init__ (line 13) | def __init__(self): method title (line 16) | def title(self): method show (line 19) | def show(self, is_img2img): method ui (line 22) | def ui(self, is_img2img): method setup (line 42) | def setup(self, p, enable_refiner, refiner_checkpoint, refiner_switch_... FILE: modules/processing_scripts/sampler.py class ScriptSampler (line 8) | class ScriptSampler(scripts.ScriptBuiltinUI): method __init__ (line 11) | def __init__(self): method title (line 16) | def title(self): method ui (line 19) | def ui(self, is_img2img): method setup (line 42) | def setup(self, p, steps, sampler_name, scheduler): FILE: modules/processing_scripts/seed.py class ScriptSeed (line 12) | class ScriptSeed(scripts.ScriptBuiltinUI): method __init__ (line 16) | def __init__(self): method title (line 21) | def title(self): method show (line 24) | def show(self, is_img2img): method ui (line 27) | def ui(self, is_img2img): method setup (line 69) | def setup(self, p, seed, seed_checkbox, subseed, subseed_strength, see... function connect_reuse_seed (line 81) | def connect_reuse_seed(seed: gr.Number, reuse_seed: gr.Button, generatio... FILE: modules/profiling.py class Profiler (line 6) | class Profiler: method __init__ (line 7) | def __init__(self): method __enter__ (line 29) | def __enter__(self): method __exit__ (line 35) | def __exit__(self, exc_type, exc, exc_tb): function webpath (line 44) | def webpath(): FILE: modules/progress.py function start_task (line 23) | def start_task(id_task): function finish_task (line 30) | def finish_task(id_task): function create_task_id (line 40) | def create_task_id(task_type): function record_results (line 46) | def record_results(id_task, res): function add_task_to_queue (line 52) | def add_task_to_queue(id_job): class PendingTasksResponse (line 55) | class PendingTasksResponse(BaseModel): class ProgressRequest (line 59) | class ProgressRequest(BaseModel): class ProgressResponse (line 65) | class ProgressResponse(BaseModel): function setup_progress_api (line 76) | def setup_progress_api(app): function get_pending_tasks (line 81) | def get_pending_tasks(): function progressapi (line 87) | def progressapi(req: ProgressRequest): function restore_progress (line 144) | def restore_progress(id_task): FILE: modules/prompt_parser.py function get_learned_conditioning_prompt_schedules (line 28) | def get_learned_conditioning_prompt_schedules(prompts, base_steps, hires... class SdConditioning (line 139) | class SdConditioning(list): method __init__ (line 144) | def __init__(self, prompts, is_negative_prompt=False, width=None, heig... function get_learned_conditioning (line 157) | def get_learned_conditioning(model, prompts: SdConditioning | list[str],... function get_multicond_prompt_list (line 209) | def get_multicond_prompt_list(prompts: SdConditioning | list[str]): class ComposableScheduledPromptConditioning (line 240) | class ComposableScheduledPromptConditioning: method __init__ (line 241) | def __init__(self, schedules, weight=1.0): class MulticondLearnedConditioning (line 246) | class MulticondLearnedConditioning: method __init__ (line 247) | def __init__(self, shape, batch): function get_multicond_learned_conditioning (line 252) | def get_multicond_learned_conditioning(model, prompts, steps, hires_step... class DictWithShape (line 270) | class DictWithShape(dict): method __init__ (line 271) | def __init__(self, x, shape=None): method shape (line 276) | def shape(self): function reconstruct_cond_batch (line 280) | def reconstruct_cond_batch(c: list[list[ScheduledPromptConditioning]], c... function stack_conds (line 307) | def stack_conds(tensors): function reconstruct_multicond_batch (line 321) | def reconstruct_multicond_batch(c: MulticondLearnedConditioning, current... function parse_prompt_attention (line 370) | def parse_prompt_attention(text): FILE: modules/realesrgan_model.py class UpscalerRealESRGAN (line 9) | class UpscalerRealESRGAN(Upscaler): method __init__ (line 10) | def __init__(self, path): method do_upscale (line 29) | def do_upscale(self, img, path): method load_model (line 53) | def load_model(self, path): function get_realesrgan_models (line 67) | def get_realesrgan_models(scaler: UpscalerRealESRGAN): FILE: modules/restart.py function is_restartable (line 7) | def is_restartable() -> bool: function restart_program (line 14) | def restart_program() -> None: function stop_program (line 24) | def stop_program() -> None: FILE: modules/rng.py function randn (line 6) | def randn(seed, shape, generator=None): function randn_local (line 22) | def randn_local(seed, shape): function randn_like (line 36) | def randn_like(x): function randn_without_seed (line 50) | def randn_without_seed(shape, generator=None): function manual_seed (line 64) | def manual_seed(seed): function create_generator (line 75) | def create_generator(seed): function slerp (line 85) | def slerp(val, low, high): class ImageRNG (line 99) | class ImageRNG: method __init__ (line 100) | def __init__(self, shape, seeds, subseeds=None, subseed_strength=0.0, ... method first (line 112) | def first(self): method next (line 153) | def next(self): FILE: modules/rng_philox.py function uint32 (line 27) | def uint32(x): function philox4_round (line 32) | def philox4_round(counter, key): function philox4_32 (line 44) | def philox4_32(counter, key, rounds=10): function box_muller (line 66) | def box_muller(x, y): class Generator (line 77) | class Generator: method __init__ (line 80) | def __init__(self, seed): method randn (line 84) | def randn(self, shape): FILE: modules/safe.py function encode (line 18) | def encode(*args): class RestrictedUnpickler (line 23) | class RestrictedUnpickler(pickle.Unpickler): method persistent_load (line 26) | def persistent_load(self, saved_id): method find_class (line 34) | def find_class(self, module, name): function check_zip_filenames (line 71) | def check_zip_filenames(filename, names): function check_pt (line 79) | def check_pt(filename, extra_handler): function load (line 107) | def load(filename, *args, **kwargs): function load_with_extra (line 111) | def load_with_extra(filename, extra_handler=None, *args, **kwargs): class Extra (line 159) | class Extra: method __init__ (line 179) | def __init__(self, handler): method __enter__ (line 182) | def __enter__(self): method __exit__ (line 188) | def __exit__(self, exc_type, exc_val, exc_tb): FILE: modules/script_callbacks.py function report_exception (line 14) | def report_exception(c, job): class ImageSaveParams (line 18) | class ImageSaveParams: method __init__ (line 19) | def __init__(self, image, p, filename, pnginfo): class ExtraNoiseParams (line 33) | class ExtraNoiseParams: method __init__ (line 34) | def __init__(self, noise, x, xi): class CFGDenoiserParams (line 45) | class CFGDenoiserParams: method __init__ (line 46) | def __init__(self, x, image_cond, sigma, sampling_step, total_sampling... class CFGDenoisedParams (line 72) | class CFGDenoisedParams: method __init__ (line 73) | def __init__(self, x, sampling_step, total_sampling_steps, inner_model): class AfterCFGCallbackParams (line 87) | class AfterCFGCallbackParams: method __init__ (line 88) | def __init__(self, x, sampling_step, total_sampling_steps): class UiTrainTabParams (line 99) | class UiTrainTabParams: method __init__ (line 100) | def __init__(self, txt2img_preview_params): class ImageGridLoopParams (line 104) | class ImageGridLoopParams: method __init__ (line 105) | def __init__(self, imgs, cols, rows): class BeforeTokenCounterParams (line 112) | class BeforeTokenCounterParams: class ScriptCallback (line 121) | class ScriptCallback: function add_callback (line 127) | def add_callback(callbacks, fun, *, name=None, category='unknown', filen... function sort_callbacks (line 150) | def sort_callbacks(category, unordered_callbacks, *, enable_user_sort=Tr... function ordered_callbacks (line 194) | def ordered_callbacks(category, unordered_callbacks=None, *, enable_user... function enumerate_callbacks (line 211) | def enumerate_callbacks(): function clear_callbacks (line 246) | def clear_callbacks(): function app_started_callback (line 253) | def app_started_callback(demo: Optional[Blocks], app: FastAPI): function app_reload_callback (line 262) | def app_reload_callback(): function model_loaded_callback (line 270) | def model_loaded_callback(sd_model): function ui_tabs_callback (line 278) | def ui_tabs_callback(): function ui_train_tabs_callback (line 290) | def ui_train_tabs_callback(params: UiTrainTabParams): function ui_settings_callback (line 298) | def ui_settings_callback(): function before_image_saved_callback (line 306) | def before_image_saved_callback(params: ImageSaveParams): function image_saved_callback (line 314) | def image_saved_callback(params: ImageSaveParams): function extra_noise_callback (line 322) | def extra_noise_callback(params: ExtraNoiseParams): function cfg_denoiser_callback (line 330) | def cfg_denoiser_callback(params: CFGDenoiserParams): function cfg_denoised_callback (line 338) | def cfg_denoised_callback(params: CFGDenoisedParams): function cfg_after_cfg_callback (line 346) | def cfg_after_cfg_callback(params: AfterCFGCallbackParams): function before_component_callback (line 354) | def before_component_callback(component, **kwargs): function after_component_callback (line 362) | def after_component_callback(component, **kwargs): function image_grid_callback (line 370) | def image_grid_callback(params: ImageGridLoopParams): function infotext_pasted_callback (line 378) | def infotext_pasted_callback(infotext: str, params: dict[str, Any]): function script_unloaded_callback (line 386) | def script_unloaded_callback(): function before_ui_callback (line 394) | def before_ui_callback(): function list_optimizers_callback (line 402) | def list_optimizers_callback(): function list_unets_callback (line 414) | def list_unets_callback(): function before_token_counter_callback (line 426) | def before_token_counter_callback(params: BeforeTokenCounterParams): function remove_current_script_callbacks (line 434) | def remove_current_script_callbacks(): function remove_callbacks_for_function (line 447) | def remove_callbacks_for_function(callback_func): function on_app_started (line 456) | def on_app_started(callback, *, name=None): function on_before_reload (line 462) | def on_before_reload(callback, *, name=None): function on_model_loaded (line 467) | def on_model_loaded(callback, *, name=None): function on_ui_tabs (line 473) | def on_ui_tabs(callback, *, name=None): function on_ui_train_tabs (line 486) | def on_ui_train_tabs(callback, *, name=None): function on_ui_settings (line 493) | def on_ui_settings(callback, *, name=None): function on_before_image_saved (line 499) | def on_before_image_saved(callback, *, name=None): function on_image_saved (line 507) | def on_image_saved(callback, *, name=None): function on_extra_noise (line 515) | def on_extra_noise(callback, *, name=None): function on_cfg_denoiser (line 523) | def on_cfg_denoiser(callback, *, name=None): function on_cfg_denoised (line 531) | def on_cfg_denoised(callback, *, name=None): function on_cfg_after_cfg (line 539) | def on_cfg_after_cfg(callback, *, name=None): function on_before_component (line 547) | def on_before_component(callback, *, name=None): function on_after_component (line 559) | def on_after_component(callback, *, name=None): function on_image_grid (line 564) | def on_image_grid(callback, *, name=None): function on_infotext_pasted (line 572) | def on_infotext_pasted(callback, *, name=None): function on_script_unloaded (line 581) | def on_script_unloaded(callback, *, name=None): function on_before_ui (line 588) | def on_before_ui(callback, *, name=None): function on_list_optimizers (line 594) | def on_list_optimizers(callback, *, name=None): function on_list_unets (line 602) | def on_list_unets(callback, *, name=None): function on_before_token_counter (line 609) | def on_before_token_counter(callback, *, name=None): FILE: modules/script_loading.py function load_module (line 10) | def load_module(path): function preload_extensions (line 19) | def preload_extensions(extensions_dir, parser, extension_list=None): FILE: modules/scripts.py class MaskBlendArgs (line 16) | class MaskBlendArgs: method __init__ (line 17) | def __init__(self, current_latent, nmask, init_latent, mask, blended_l... class PostSampleArgs (line 28) | class PostSampleArgs: method __init__ (line 29) | def __init__(self, samples): class PostprocessImageArgs (line 32) | class PostprocessImageArgs: method __init__ (line 33) | def __init__(self, image): class PostProcessMaskOverlayArgs (line 36) | class PostProcessMaskOverlayArgs: method __init__ (line 37) | def __init__(self, index, mask_for_overlay, overlay_image): class PostprocessBatchListArgs (line 42) | class PostprocessBatchListArgs: method __init__ (line 43) | def __init__(self, images): class OnComponent (line 48) | class OnComponent: class Script (line 52) | class Script: method title (line 99) | def title(self): method ui (line 104) | def ui(self, is_img2img): method show (line 112) | def show(self, is_img2img): method run (line 124) | def run(self, p, *args): method setup (line 137) | def setup(self, p, *args): method before_process (line 143) | def before_process(self, p, *args): method process (line 152) | def process(self, p, *args): method before_process_batch (line 161) | def before_process_batch(self, p, *args, **kwargs): method after_extra_networks_activate (line 175) | def after_extra_networks_activate(self, p, *args, **kwargs): method process_before_every_sampling (line 190) | def process_before_every_sampling(self, p, *args, **kwargs): method process_batch (line 197) | def process_batch(self, p, *args, **kwargs): method postprocess_batch (line 210) | def postprocess_batch(self, p, *args, **kwargs): method postprocess_batch_list (line 221) | def postprocess_batch_list(self, p, pp: PostprocessBatchListArgs, *arg... method on_mask_blend (line 240) | def on_mask_blend(self, p, mba: MaskBlendArgs, *args): method post_sample (line 250) | def post_sample(self, p, ps: PostSampleArgs, *args): method postprocess_image (line 259) | def postprocess_image(self, p, pp: PostprocessImageArgs, *args): method postprocess_maskoverlay (line 266) | def postprocess_maskoverlay(self, p, ppmo: PostProcessMaskOverlayArgs,... method postprocess_image_after_composite (line 273) | def postprocess_image_after_composite(self, p, pp: PostprocessImageArg... method postprocess (line 282) | def postprocess(self, p, processed, *args): method before_component (line 290) | def before_component(self, component, **kwargs): method after_component (line 300) | def after_component(self, component, **kwargs): method on_before_component (line 307) | def on_before_component(self, callback, *, elem_id): method on_after_component (line 321) | def on_after_component(self, callback, *, elem_id): method describe (line 330) | def describe(self): method elem_id (line 334) | def elem_id(self, item_id): method before_hr (line 344) | def before_hr(self, p, *args): class ScriptBuiltinUI (line 351) | class ScriptBuiltinUI(Script): method elem_id (line 354) | def elem_id(self, item_id): method show (line 362) | def show(self, is_img2img): function basedir (line 369) | def basedir(): class ScriptWithDependencies (line 385) | class ScriptWithDependencies: function list_scripts (line 393) | def list_scripts(scriptdirname, extension, *, include_extensions=True): function list_files_with_name (line 471) | def list_files_with_name(filename): function load_scripts (line 487) | def load_scripts(): function wrap_call (line 533) | def wrap_call(func, filename, funcname, *args, default=None, **kwargs): class ScriptRunner (line 542) | class ScriptRunner: method __init__ (line 543) | def __init__(self): method initialize_scripts (line 578) | def initialize_scripts(self, is_img2img): method apply_on_before_component_callbacks (line 614) | def apply_on_before_component_callbacks(self): method create_script_ui (line 634) | def create_script_ui(self, script): method create_script_ui_inner (line 644) | def create_script_ui_inner(self, script): method setup_ui_for_section (line 689) | def setup_ui_for_section(self, section, scriptlist=None): method prepare_ui (line 705) | def prepare_ui(self): method setup_ui (line 708) | def setup_ui(self): method run (line 768) | def run(self, p, *args): method list_scripts_for_method (line 786) | def list_scripts_for_method(self, method_name): method create_ordered_callbacks_list (line 792) | def create_ordered_callbacks_list(self, method_name, *, enable_user_s... method ordered_callbacks (line 805) | def ordered_callbacks(self, method_name, *, enable_user_sort=True): method ordered_scripts (line 817) | def ordered_scripts(self, method_name): method before_process (line 820) | def before_process(self, p): method process (line 828) | def process(self, p): method process_before_every_sampling (line 836) | def process_before_every_sampling(self, p, **kwargs): method before_process_batch (line 844) | def before_process_batch(self, p, **kwargs): method after_extra_networks_activate (line 852) | def after_extra_networks_activate(self, p, **kwargs): method process_batch (line 860) | def process_batch(self, p, **kwargs): method postprocess (line 868) | def postprocess(self, p, processed): method postprocess_batch (line 876) | def postprocess_batch(self, p, images, **kwargs): method postprocess_batch_list (line 884) | def postprocess_batch_list(self, p, pp: PostprocessBatchListArgs, **kw... method post_sample (line 892) | def post_sample(self, p, ps: PostSampleArgs): method on_mask_blend (line 900) | def on_mask_blend(self, p, mba: MaskBlendArgs): method postprocess_image (line 908) | def postprocess_image(self, p, pp: PostprocessImageArgs): method postprocess_maskoverlay (line 916) | def postprocess_maskoverlay(self, p, ppmo: PostProcessMaskOverlayArgs): method postprocess_image_after_composite (line 924) | def postprocess_image_after_composite(self, p, pp: PostprocessImageArgs): method before_component (line 932) | def before_component(self, component, **kwargs): method after_component (line 945) | def after_component(self, component, **kwargs): method script (line 958) | def script(self, title): method reload_sources (line 961) | def reload_sources(self, cache): method before_hr (line 979) | def before_hr(self, p): method setup_scrips (line 987) | def setup_scrips(self, p, *, is_ui=True): method set_named_arg (line 998) | def set_named_arg(self, args, script_name, arg_elem_id, value, fuzzy=F... function reload_script_body_only (line 1034) | def reload_script_body_only(): FILE: modules/scripts_auto_postprocessing.py class ScriptPostprocessingForMainUI (line 4) | class ScriptPostprocessingForMainUI(scripts.Script): method __init__ (line 5) | def __init__(self, script_postproc): method title (line 9) | def title(self): method show (line 12) | def show(self, is_img2img): method ui (line 15) | def ui(self, is_img2img): method postprocess_image (line 19) | def postprocess_image(self, p, script_pp, *args): function create_auto_preprocessing_script_data (line 29) | def create_auto_preprocessing_script_data(): FILE: modules/scripts_postprocessing.py class PostprocessedImageSharedInfo (line 9) | class PostprocessedImageSharedInfo: class PostprocessedImage (line 14) | class PostprocessedImage: method __init__ (line 15) | def __init__(self, image): method get_suffix (line 24) | def get_suffix(self, used_suffixes=None): method create_copy (line 43) | def create_copy(self, new_image, *, nametags=None, disable_processing=... class ScriptPostprocessing (line 56) | class ScriptPostprocessing: method ui (line 71) | def ui(self): method process (line 80) | def process(self, pp: PostprocessedImage, **args): method process_firstpass (line 88) | def process_firstpass(self, pp: PostprocessedImage, **args): method image_changed (line 97) | def image_changed(self): function wrap_call (line 101) | def wrap_call(func, filename, funcname, *args, default=None, **kwargs): class ScriptPostprocessingRunner (line 111) | class ScriptPostprocessingRunner: method __init__ (line 112) | def __init__(self): method initialize_scripts (line 116) | def initialize_scripts(self, scripts_data): method create_script_ui (line 128) | def create_script_ui(self, script, inputs): method scripts_in_preferred_order (line 140) | def scripts_in_preferred_order(self): method setup_ui (line 160) | def setup_ui(self): method run (line 172) | def run(self, pp: PostprocessedImage, args): method create_args_for_run (line 210) | def create_args_for_run(self, scripts_args): method image_changed (line 227) | def image_changed(self): FILE: modules/sd_disable_initialization.py class ReplaceHelper (line 9) | class ReplaceHelper: method __init__ (line 10) | def __init__(self): method replace (line 13) | def replace(self, obj, field, func): method restore (line 23) | def restore(self): class DisableInitialization (line 30) | class DisableInitialization(ReplaceHelper): method __init__ (line 46) | def __init__(self, disable_clip=True): method replace (line 50) | def replace(self, obj, field, func): method __enter__ (line 60) | def __enter__(self): method __exit__ (line 111) | def __exit__(self, exc_type, exc_val, exc_tb): class InitializeOnMeta (line 115) | class InitializeOnMeta(ReplaceHelper): method __enter__ (line 128) | def __enter__(self): method __exit__ (line 141) | def __exit__(self, exc_type, exc_val, exc_tb): class LoadStateDictOnMeta (line 145) | class LoadStateDictOnMeta(ReplaceHelper): method __init__ (line 158) | def __init__(self, state_dict, device, weight_dtype_conversion=None): method get_weight_dtype (line 165) | def get_weight_dtype(self, key): method __enter__ (line 169) | def __enter__(self): method __exit__ (line 231) | def __exit__(self, exc_type, exc_val, exc_tb): FILE: modules/sd_emphasis.py class Emphasis (line 5) | class Emphasis: method after_transformers (line 20) | def after_transformers(self): class EmphasisNone (line 26) | class EmphasisNone(Emphasis): class EmphasisIgnore (line 31) | class EmphasisIgnore(Emphasis): class EmphasisOriginal (line 36) | class EmphasisOriginal(Emphasis): method after_transformers (line 40) | def after_transformers(self): class EmphasisOriginalNoNorm (line 49) | class EmphasisOriginalNoNorm(EmphasisOriginal): method after_transformers (line 53) | def after_transformers(self): function get_current_option (line 57) | def get_current_option(emphasis_option_name): function get_options_descriptions (line 61) | def get_options_descriptions(): FILE: modules/sd_hijack.py function list_optimizers (line 48) | def list_optimizers(): function apply_optimizations (line 59) | def apply_optimizations(option=None): function undo_optimizations (line 103) | def undo_optimizations(): function fix_checkpoint (line 113) | def fix_checkpoint(): function weighted_loss (line 120) | def weighted_loss(sd_model, pred, target, mean=True): function weighted_forward (line 132) | def weighted_forward(sd_model, x, c, w, *args, **kwargs): function apply_weighted_forward (line 157) | def apply_weighted_forward(sd_model): function undo_weighted_forward (line 161) | def undo_weighted_forward(sd_model): class StableDiffusionModelHijack (line 168) | class StableDiffusionModelHijack: method __init__ (line 175) | def __init__(self): method apply_optimizations (line 184) | def apply_optimizations(self, option=None): method convert_sdxl_to_ssd (line 191) | def convert_sdxl_to_ssd(self, m): method hijack (line 205) | def hijack(self, m): method undo_hijack (line 275) | def undo_hijack(self, m): method apply_circular (line 311) | def apply_circular(self, enable): method clear_comments (line 320) | def clear_comments(self): method get_prompt_lengths (line 324) | def get_prompt_lengths(self, text): method redo_hijack (line 335) | def redo_hijack(self, m): class EmbeddingsWithFixes (line 340) | class EmbeddingsWithFixes(torch.nn.Module): method __init__ (line 341) | def __init__(self, wrapped, embeddings, textual_inversion_key='clip_l'): method forward (line 347) | def forward(self, input_ids): class TextualInversionEmbeddings (line 369) | class TextualInversionEmbeddings(torch.nn.Embedding): method __init__ (line 370) | def __init__(self, num_embeddings: int, embedding_dim: int, textual_in... method wrapped (line 377) | def wrapped(self): method forward (line 380) | def forward(self, input_ids): function add_circular_option_to_conv_2d (line 384) | def add_circular_option_to_conv_2d(): function register_buffer (line 396) | def register_buffer(self, name, attr): FILE: modules/sd_hijack_checkpoint.py function BasicTransformerBlock_forward (line 7) | def BasicTransformerBlock_forward(self, x, context=None): function AttentionBlock_forward (line 11) | def AttentionBlock_forward(self, x): function ResBlock_forward (line 15) | def ResBlock_forward(self, x, emb): function add (line 22) | def add(): function remove (line 37) | def remove(): FILE: modules/sd_hijack_clip.py class PromptChunk (line 10) | class PromptChunk: method __init__ (line 18) | def __init__(self): class TextConditionalModel (line 30) | class TextConditionalModel(torch.nn.Module): method __init__ (line 31) | def __init__(self): method empty_chunk (line 46) | def empty_chunk(self): method get_target_prompt_token_count (line 54) | def get_target_prompt_token_count(self, token_count): method tokenize (line 59) | def tokenize(self, texts): method encode_with_transformers (line 64) | def encode_with_transformers(self, tokens): method encode_embedding_init_text (line 75) | def encode_embedding_init_text(self, init_text, nvpt): method tokenize_line (line 81) | def tokenize_line(self, line): method process_texts (line 176) | def process_texts(self, texts): method forward (line 199) | def forward(self, texts): method process_tokens (line 253) | def process_tokens(self, remade_batch_tokens, batch_multipliers): class FrozenCLIPEmbedderWithCustomWordsBase (line 288) | class FrozenCLIPEmbedderWithCustomWordsBase(TextConditionalModel): method __init__ (line 293) | def __init__(self, wrapped, hijack): method forward (line 308) | def forward(self, texts): class FrozenCLIPEmbedderWithCustomWords (line 316) | class FrozenCLIPEmbedderWithCustomWords(FrozenCLIPEmbedderWithCustomWord... method __init__ (line 317) | def __init__(self, wrapped, hijack): method tokenize (line 346) | def tokenize(self, texts): method encode_with_transformers (line 351) | def encode_with_transformers(self, tokens): method encode_embedding_init_text (line 362) | def encode_embedding_init_text(self, init_text, nvpt): class FrozenCLIPEmbedderForSDXLWithCustomWords (line 370) | class FrozenCLIPEmbedderForSDXLWithCustomWords(FrozenCLIPEmbedderWithCus... method __init__ (line 371) | def __init__(self, wrapped, hijack): method encode_with_transformers (line 374) | def encode_with_transformers(self, tokens): FILE: modules/sd_hijack_clip_old.py function process_text_old (line 5) | def process_text_old(self: sd_hijack_clip.FrozenCLIPEmbedderWithCustomWo... function forward_old (line 72) | def forward_old(self: sd_hijack_clip.FrozenCLIPEmbedderWithCustomWordsBa... FILE: modules/sd_hijack_ip2p.py function should_hijack_ip2p (line 4) | def should_hijack_ip2p(checkpoint_info): FILE: modules/sd_hijack_open_clip.py class FrozenOpenCLIPEmbedderWithCustomWords (line 10) | class FrozenOpenCLIPEmbedderWithCustomWords(sd_hijack_clip.FrozenCLIPEmb... method __init__ (line 11) | def __init__(self, wrapped, hijack): method tokenize (line 19) | def tokenize(self, texts): method encode_with_transformers (line 26) | def encode_with_transformers(self, tokens): method encode_embedding_init_text (line 32) | def encode_embedding_init_text(self, init_text, nvpt): class FrozenOpenCLIPEmbedder2WithCustomWords (line 40) | class FrozenOpenCLIPEmbedder2WithCustomWords(sd_hijack_clip.FrozenCLIPEm... method __init__ (line 41) | def __init__(self, wrapped, hijack): method tokenize (line 49) | def tokenize(self, texts): method encode_with_transformers (line 56) | def encode_with_transformers(self, tokens): method encode_embedding_init_text (line 66) | def encode_embedding_init_text(self, init_text, nvpt): FILE: modules/sd_hijack_optimizations.py class SdOptimization (line 25) | class SdOptimization: method title (line 31) | def title(self): method is_available (line 37) | def is_available(self): method apply (line 40) | def apply(self): method undo (line 43) | def undo(self): class SdOptimizationXformers (line 51) | class SdOptimizationXformers(SdOptimization): method is_available (line 56) | def is_available(self): method apply (line 59) | def apply(self): class SdOptimizationSdpNoMem (line 66) | class SdOptimizationSdpNoMem(SdOptimization): method is_available (line 72) | def is_available(self): method apply (line 75) | def apply(self): class SdOptimizationSdp (line 82) | class SdOptimizationSdp(SdOptimizationSdpNoMem): method apply (line 88) | def apply(self): class SdOptimizationSubQuad (line 95) | class SdOptimizationSubQuad(SdOptimization): method priority (line 100) | def priority(self): method apply (line 103) | def apply(self): class SdOptimizationV1 (line 110) | class SdOptimizationV1(SdOptimization): method apply (line 116) | def apply(self): class SdOptimizationInvokeAI (line 121) | class SdOptimizationInvokeAI(SdOptimization): method priority (line 126) | def priority(self): method apply (line 129) | def apply(self): class SdOptimizationDoggettx (line 134) | class SdOptimizationDoggettx(SdOptimization): method apply (line 139) | def apply(self): function list_optimizers (line 146) | def list_optimizers(res): function get_available_vram (line 166) | def get_available_vram(): function split_cross_attention_forward_v1 (line 180) | def split_cross_attention_forward_v1(self, x, context=None, mask=None, *... function split_cross_attention_forward (line 221) | def split_cross_attention_forward(self, x, context=None, mask=None, **kw... function einsum_op_compvis (line 288) | def einsum_op_compvis(q, k, v): function einsum_op_slice_0 (line 294) | def einsum_op_slice_0(q, k, v, slice_size): function einsum_op_slice_1 (line 302) | def einsum_op_slice_1(q, k, v, slice_size): function einsum_op_mps_v1 (line 310) | def einsum_op_mps_v1(q, k, v): function einsum_op_mps_v2 (line 320) | def einsum_op_mps_v2(q, k, v): function einsum_op_tensor_mem (line 327) | def einsum_op_tensor_mem(q, k, v, max_tensor_mb): function einsum_op_cuda (line 337) | def einsum_op_cuda(q, k, v): function einsum_op (line 348) | def einsum_op(q, k, v): function split_cross_attention_forward_invokeAI (line 362) | def split_cross_attention_forward_invokeAI(self, x, context=None, mask=N... function sub_quad_attention_forward (line 390) | def sub_quad_attention_forward(self, x, context=None, mask=None, **kwargs): function sub_quad_attention (line 427) | def sub_quad_attention(q, k, v, q_chunk_size=1024, kv_chunk_size=None, k... function get_xformers_flash_attention_op (line 465) | def get_xformers_flash_attention_op(q, k, v): function xformers_attention_forward (line 480) | def xformers_attention_forward(self, x, context=None, mask=None, **kwargs): function scaled_dot_product_attention_forward (line 508) | def scaled_dot_product_attention_forward(self, x, context=None, mask=Non... function scaled_dot_product_no_mem_attention_forward (line 549) | def scaled_dot_product_no_mem_attention_forward(self, x, context=None, m... function cross_attention_attnblock_forward (line 554) | def cross_attention_attnblock_forward(self, x): function xformers_attnblock_forward (line 613) | def xformers_attnblock_forward(self, x): function sdp_attnblock_forward (line 637) | def sdp_attnblock_forward(self, x): function sdp_no_mem_attnblock_forward (line 658) | def sdp_no_mem_attnblock_forward(self, x): function sub_quad_attnblock_forward (line 663) | def sub_quad_attnblock_forward(self, x): FILE: modules/sd_hijack_unet.py class TorchHijackForUnet (line 10) | class TorchHijackForUnet: method __getattr__ (line 16) | def __getattr__(self, item): method cat (line 25) | def cat(self, tensors, *args, **kwargs): function apply_model (line 40) | def apply_model(orig_func, self, x_noisy, t, cond, **kwargs): function timestep_embedding (line 58) | def timestep_embedding(_, timesteps, dim, max_period=10000, repeat_only=... function spatial_transformer_forward (line 83) | def spatial_transformer_forward(_, self, x: torch.Tensor, context=None): class GELUHijack (line 105) | class GELUHijack(torch.nn.GELU, torch.nn.Module): method __init__ (line 106) | def __init__(self, *args, **kwargs): method forward (line 108) | def forward(self, x): function hijack_ddpm_edit (line 116) | def hijack_ddpm_edit(): function timestep_embedding_cast_result (line 145) | def timestep_embedding_cast_result(orig_func, timesteps, *args, **kwargs): FILE: modules/sd_hijack_utils.py class CondFunc (line 7) | class CondFunc: method __new__ (line 8) | def __new__(cls, orig_func, sub_func, cond_func=always_true_func): method __init__ (line 28) | def __init__(self, orig_func, sub_func, cond_func): method __call__ (line 32) | def __call__(self, *args, **kwargs): FILE: modules/sd_hijack_xlmr.py class FrozenXLMREmbedderWithCustomWords (line 6) | class FrozenXLMREmbedderWithCustomWords(sd_hijack_clip.FrozenCLIPEmbedde... method __init__ (line 7) | def __init__(self, wrapped, hijack): method encode_with_transformers (line 16) | def encode_with_transformers(self, tokens): method encode_embedding_init_text (line 27) | def encode_embedding_init_text(self, init_text, nvpt): FILE: modules/sd_models.py class ModelType (line 30) | class ModelType(enum.Enum): function replace_key (line 38) | def replace_key(d, key, new_key, value): class CheckpointInfo (line 56) | class CheckpointInfo: method __init__ (line 57) | def __init__(self, filename): method register (line 102) | def register(self): method calculate_shorthash (line 107) | def calculate_shorthash(self): function setup_model (line 140) | def setup_model(): function checkpoint_tiles (line 149) | def checkpoint_tiles(use_short=False): function list_models (line 153) | def list_models(): function get_closet_checkpoint_match (line 183) | def get_closet_checkpoint_match(search_string): function model_hash (line 203) | def model_hash(filename): function select_checkpoint (line 218) | def select_checkpoint(): function transform_checkpoint_dict_key (line 254) | def transform_checkpoint_dict_key(k, replacements): function get_state_dict_from_checkpoint (line 262) | def get_state_dict_from_checkpoint(pl_sd): function read_metadata_from_safetensors (line 284) | def read_metadata_from_safetensors(filename): function read_state_dict (line 312) | def read_state_dict(checkpoint_file, print_global_state=False, map_locat... function get_checkpoint_state_dict (line 332) | def get_checkpoint_state_dict(checkpoint_info: CheckpointInfo, timer): class SkipWritingToConfig (line 350) | class SkipWritingToConfig: method __enter__ (line 356) | def __enter__(self): method __exit__ (line 361) | def __exit__(self, exc_type, exc_value, exc_traceback): function check_fp8 (line 365) | def check_fp8(model): function set_model_type (line 379) | def set_model_type(model, state_dict): function set_model_fields (line 405) | def set_model_fields(model): function load_model_weights (line 410) | def load_model_weights(model, checkpoint_info: CheckpointInfo, state_dic... function enable_midas_autodownload (line 542) | def enable_midas_autodownload(): function patch_given_betas (line 585) | def patch_given_betas(): function repair_config (line 599) | def repair_config(sd_config, state_dict=None): function rescale_zero_terminal_snr_abar (line 628) | def rescale_zero_terminal_snr_abar(alphas_cumprod): function apply_alpha_schedule_override (line 647) | def apply_alpha_schedule_override(sd_model, p=None): class SdModelData (line 676) | class SdModelData: method __init__ (line 677) | def __init__(self): method get_sd_model (line 683) | def get_sd_model(self): method set_sd_model (line 703) | def set_sd_model(self, v, already_loaded=False): function get_empty_cond (line 722) | def get_empty_cond(sd_model): function send_model_to_cpu (line 738) | def send_model_to_cpu(m): function model_target_device (line 748) | def model_target_device(m): function send_model_to_device (line 755) | def send_model_to_device(m): function send_model_to_trash (line 762) | def send_model_to_trash(m): function instantiate_from_config (line 767) | def instantiate_from_config(config, state_dict=None): function get_obj_from_str (line 778) | def get_obj_from_str(string, reload=False): function load_model (line 786) | def load_model(checkpoint_info=None, already_loaded_state_dict=None): function reuse_model_from_already_loaded (line 878) | def reuse_model_from_already_loaded(sd_model, checkpoint_info, timer): function reload_model_weights (line 940) | def reload_model_weights(sd_model=None, info=None, forced_reload=False): function unload_model_weights (line 1005) | def unload_model_weights(sd_model=None, info=None): function apply_token_merging (line 1011) | def apply_token_merging(sd_model, token_merging_ratio): FILE: modules/sd_models_config.py function is_using_v_parameterization_for_sd2 (line 29) | def is_using_v_parameterization_for_sd2(state_dict): function guess_model_config_from_state_dict (line 72) | def guess_model_config_from_state_dict(sd, filename): function find_checkpoint_config (line 117) | def find_checkpoint_config(state_dict, info): function find_checkpoint_config_near_filename (line 128) | def find_checkpoint_config_near_filename(info): FILE: modules/sd_models_types.py class WebuiSdModel (line 9) | class WebuiSdModel(LatentDiffusion): FILE: modules/sd_models_xl.py function get_learned_conditioning (line 12) | def get_learned_conditioning(self: sgm.models.diffusion.DiffusionEngine,... function apply_model (line 37) | def apply_model(self: sgm.models.diffusion.DiffusionEngine, x, t, cond): function get_first_stage_encoding (line 46) | def get_first_stage_encoding(self, x): # SDXL's encode_first_stage does... function encode_embedding_init_text (line 55) | def encode_embedding_init_text(self: sgm.modules.GeneralConditioner, ini... function tokenize (line 65) | def tokenize(self: sgm.modules.GeneralConditioner, texts): function process_texts (line 73) | def process_texts(self, texts): function get_target_prompt_token_count (line 78) | def get_target_prompt_token_count(self, token_count): function extend_sdxl (line 90) | def extend_sdxl(model): FILE: modules/sd_samplers.py function find_sampler_config (line 24) | def find_sampler_config(name): function create_sampler (line 33) | def create_sampler(name, model): function set_samplers (line 47) | def set_samplers(): function visible_sampler_names (line 61) | def visible_sampler_names(): function visible_samplers (line 65) | def visible_samplers(): function get_sampler_from_infotext (line 69) | def get_sampler_from_infotext(d: dict): function get_scheduler_from_infotext (line 73) | def get_scheduler_from_infotext(d: dict): function get_hr_sampler_and_scheduler (line 77) | def get_hr_sampler_and_scheduler(d: dict): function get_hr_sampler_from_infotext (line 92) | def get_hr_sampler_from_infotext(d: dict): function get_hr_scheduler_from_infotext (line 96) | def get_hr_scheduler_from_infotext(d: dict): function get_sampler_and_scheduler (line 101) | def get_sampler_and_scheduler(sampler_name, scheduler_name, *, convert_a... function fix_p_invalid_sampler_and_scheduler (line 125) | def fix_p_invalid_sampler_and_scheduler(p): FILE: modules/sd_samplers_cfg_denoiser.py function catenate_conds (line 11) | def catenate_conds(conds): function subscript_cond (line 18) | def subscript_cond(cond, a, b): function pad_cond (line 25) | def pad_cond(tensor, repeats, empty): class CFGDenoiser (line 33) | class CFGDenoiser(torch.nn.Module): method __init__ (line 41) | def __init__(self, sampler): method inner_model (line 71) | def inner_model(self): method combine_denoised (line 74) | def combine_denoised(self, x_out, conds_list, uncond, cond_scale): method combine_denoised_for_edit_model (line 84) | def combine_denoised_for_edit_model(self, x_out, cond_scale): method get_pred_x0 (line 90) | def get_pred_x0(self, x_in, x_out, sigma): method update_inner_model (line 93) | def update_inner_model(self): method pad_cond_uncond (line 100) | def pad_cond_uncond(self, cond, uncond): method pad_cond_uncond_v0 (line 113) | def pad_cond_uncond_v0(self, cond, uncond): method forward (line 156) | def forward(self, x, sigma, uncond, cond, cond_scale, s_min_uncond, im... FILE: modules/sd_samplers_common.py class SamplerData (line 14) | class SamplerData(SamplerDataTuple): method total_steps (line 15) | def total_steps(self, steps): function setup_img2img_steps (line 22) | def setup_img2img_steps(p, steps=None): function samples_to_images_tensor (line 37) | def samples_to_images_tensor(sample, approximation=None, model=None): function single_sample_to_image (line 63) | def single_sample_to_image(sample, approximation=None): function decode_first_stage (line 73) | def decode_first_stage(model, x): function sample_to_image (line 79) | def sample_to_image(samples, index=0, approximation=None): function samples_to_image_grid (line 83) | def samples_to_image_grid(samples, approximation=None): function images_tensor_to_samples (line 87) | def images_tensor_to_samples(image, approximation=None, model=None): function store_latent (line 115) | def store_latent(decoded): function is_sampler_using_eta_noise_seed_delta (line 123) | def is_sampler_using_eta_noise_seed_delta(p): class InterruptedException (line 142) | class InterruptedException(BaseException): function replace_torchsde_browinan (line 146) | def replace_torchsde_browinan(): function apply_refiner (line 158) | def apply_refiner(cfg_denoiser, sigma=None): class TorchHijack (line 205) | class TorchHijack: method __init__ (line 213) | def __init__(self, p): method __getattr__ (line 216) | def __getattr__(self, item): method randn_like (line 225) | def randn_like(self, x): class Sampler (line 229) | class Sampler: method __init__ (line 230) | def __init__(self, funcname): method callback_state (line 256) | def callback_state(self, d): method launch_sampling (line 265) | def launch_sampling(self, steps, func): method number_of_needed_noises (line 283) | def number_of_needed_noises(self, p): method initialize (line 286) | def initialize(self, p) -> dict: method create_noise_sampler (line 334) | def create_noise_sampler(self, x, sigmas, p): method sample (line 344) | def sample(self, p, x, conditioning, unconditional_conditioning, steps... method sample_img2img (line 347) | def sample_img2img(self, p, x, noise, conditioning, unconditional_cond... method add_infotext (line 350) | def add_infotext(self, p): FILE: modules/sd_samplers_extra.py function restart_sampler (line 7) | def restart_sampler(model, x, sigmas, extra_args=None, callback=None, di... FILE: modules/sd_samplers_kdiffusion.py class CFGDenoiserKDiffusion (line 52) | class CFGDenoiserKDiffusion(sd_samplers_cfg_denoiser.CFGDenoiser): method inner_model (line 54) | def inner_model(self): class KDiffusionSampler (line 67) | class KDiffusionSampler(sd_samplers_common.Sampler): method __init__ (line 68) | def __init__(self, funcname, sd_model, options=None): method get_sigmas (line 79) | def get_sigmas(self, p, steps): method sample_img2img (line 134) | def sample_img2img(self, p, x, noise, conditioning, unconditional_cond... method sample (line 190) | def sample(self, p, x, conditioning, unconditional_conditioning, steps... FILE: modules/sd_samplers_lcm.py class LCMCompVisDenoiser (line 10) | class LCMCompVisDenoiser(DiscreteEpsDDPMDenoiser): method __init__ (line 11) | def __init__(self, model): method get_sigmas (line 23) | def get_sigmas(self, n=None,): method sigma_to_t (line 35) | def sigma_to_t(self, sigma, quantize=None): method t_to_sigma (line 41) | def t_to_sigma(self, timestep): method get_eps (line 46) | def get_eps(self, *args, **kwargs): method get_scaled_out (line 50) | def get_scaled_out(self, sigma, output, input): method forward (line 60) | def forward(self, input, sigma, **kwargs): function sample_lcm (line 66) | def sample_lcm(model, x, sigmas, extra_args=None, callback=None, disable... class CFGDenoiserLCM (line 83) | class CFGDenoiserLCM(sd_samplers_cfg_denoiser.CFGDenoiser): method inner_model (line 85) | def inner_model(self): class LCMSampler (line 93) | class LCMSampler(sd_samplers_kdiffusion.KDiffusionSampler): method __init__ (line 94) | def __init__(self, funcname, sd_model, options=None): FILE: modules/sd_samplers_timesteps.py class CompVisTimestepsDenoiser (line 25) | class CompVisTimestepsDenoiser(torch.nn.Module): method __init__ (line 26) | def __init__(self, model, *args, **kwargs): method forward (line 30) | def forward(self, input, timesteps, **kwargs): class CompVisTimestepsVDenoiser (line 34) | class CompVisTimestepsVDenoiser(torch.nn.Module): method __init__ (line 35) | def __init__(self, model, *args, **kwargs): method predict_eps_from_z_and_v (line 39) | def predict_eps_from_z_and_v(self, x_t, t, v): method forward (line 42) | def forward(self, input, timesteps, **kwargs): class CFGDenoiserTimesteps (line 48) | class CFGDenoiserTimesteps(CFGDenoiser): method __init__ (line 50) | def __init__(self, sampler): method get_pred_x0 (line 56) | def get_pred_x0(self, x_in, x_out, sigma): method inner_model (line 67) | def inner_model(self): class CompVisSampler (line 75) | class CompVisSampler(sd_samplers_common.Sampler): method __init__ (line 76) | def __init__(self, funcname, sd_model): method get_timesteps (line 86) | def get_timesteps(self, p, steps): method sample_img2img (line 98) | def sample_img2img(self, p, x, noise, conditioning, unconditional_cond... method sample (line 141) | def sample(self, p, x, conditioning, unconditional_conditioning, steps... FILE: modules/sd_samplers_timesteps_impl.py function ddim (line 12) | def ddim(model, x, timesteps, extra_args=None, callback=None, disable=No... function ddim_cfgpp (line 44) | def ddim_cfgpp(model, x, timesteps, extra_args=None, callback=None, disa... function plms (line 84) | def plms(model, x, timesteps, extra_args=None, callback=None, disable=No... class UniPCCFG (line 145) | class UniPCCFG(uni_pc.UniPC): method __init__ (line 146) | def __init__(self, cfg_model, extra_args, callback, *args, **kwargs): method get_model_input_time (line 159) | def get_model_input_time(self, t_continuous): method model (line 162) | def model(self, x, t): function unipc (line 170) | def unipc(model, x, timesteps, extra_args=None, callback=None, disable=N... FILE: modules/sd_schedulers.py function to_d (line 10) | def to_d(x, sigma, denoised): class Scheduler (line 19) | class Scheduler: function uniform (line 29) | def uniform(n, sigma_min, sigma_max, inner_model, device): function sgm_uniform (line 33) | def sgm_uniform(n, sigma_min, sigma_max, inner_model, device): function get_align_your_steps_sigmas (line 44) | def get_align_your_steps_sigmas(n, sigma_min, sigma_max, device): function kl_optimal (line 73) | def kl_optimal(n, sigma_min, sigma_max, device): function simple_scheduler (line 81) | def simple_scheduler(n, sigma_min, sigma_max, inner_model, device): function normal_scheduler (line 90) | def normal_scheduler(n, sigma_min, sigma_max, inner_model, device, sgm=F... function ddim_scheduler (line 107) | def ddim_scheduler(n, sigma_min, sigma_max, inner_model, device): function beta_scheduler (line 119) | def beta_scheduler(n, sigma_min, sigma_max, inner_model, device): FILE: modules/sd_unet.py function list_unets (line 10) | def list_unets(): function get_unet_option (line 17) | def get_unet_option(option=None): function apply_unet (line 33) | def apply_unet(option=None): class SdUnetOption (line 63) | class SdUnetOption: method create_unet (line 70) | def create_unet(self): class SdUnet (line 75) | class SdUnet(torch.nn.Module): method forward (line 76) | def forward(self, x, timesteps, context, *args, **kwargs): method activate (line 79) | def activate(self): method deactivate (line 82) | def deactivate(self): function create_unet_forward (line 86) | def create_unet_forward(original_forward): FILE: modules/sd_vae.py function get_loaded_vae_name (line 23) | def get_loaded_vae_name(): function get_loaded_vae_hash (line 30) | def get_loaded_vae_hash(): function get_base_vae (line 39) | def get_base_vae(model): function store_base_vae (line 45) | def store_base_vae(model): function delete_base_vae (line 53) | def delete_base_vae(): function restore_base_vae (line 59) | def restore_base_vae(model): function get_filename (line 68) | def get_filename(filepath): function refresh_vae_list (line 72) | def refresh_vae_list(): function find_vae_near_checkpoint (line 109) | def find_vae_near_checkpoint(checkpoint_file): class VaeResolution (line 119) | class VaeResolution: method tuple (line 124) | def tuple(self): function is_automatic (line 128) | def is_automatic(): function resolve_vae_from_setting (line 132) | def resolve_vae_from_setting() -> VaeResolution: function resolve_vae_from_user_metadata (line 146) | def resolve_vae_from_user_metadata(checkpoint_file) -> VaeResolution: function resolve_vae_near_checkpoint (line 160) | def resolve_vae_near_checkpoint(checkpoint_file) -> VaeResolution: function resolve_vae (line 168) | def resolve_vae(checkpoint_file) -> VaeResolution: function load_vae_dict (line 188) | def load_vae_dict(filename, map_location): function load_vae (line 194) | def load_vae(model, vae_file=None, vae_source="from unknown source"): function _load_vae_dict (line 238) | def _load_vae_dict(model, vae_dict_1): function clear_loaded_vae (line 243) | def clear_loaded_vae(): function reload_vae_weights (line 251) | def reload_vae_weights(sd_model=None, vae_file=unspecified): FILE: modules/sd_vae_approx.py class VAEApprox (line 10) | class VAEApprox(nn.Module): method __init__ (line 11) | def __init__(self, latent_channels=4): method forward (line 22) | def forward(self, x): function download_model (line 34) | def download_model(model_path, model_url): function model (line 42) | def model(): function cheap_approximation (line 70) | def cheap_approximation(sample): FILE: modules/sd_vae_taesd.py function conv (line 16) | def conv(n_in, n_out, **kwargs): class Clamp (line 20) | class Clamp(nn.Module): method forward (line 22) | def forward(x): class Block (line 26) | class Block(nn.Module): method __init__ (line 27) | def __init__(self, n_in, n_out): method forward (line 33) | def forward(self, x): function decoder (line 37) | def decoder(latent_channels=4): function encoder (line 47) | def encoder(latent_channels=4): class TAESDDecoder (line 57) | class TAESDDecoder(nn.Module): method __init__ (line 61) | def __init__(self, decoder_path="taesd_decoder.pth", latent_channels=N... class TAESDEncoder (line 73) | class TAESDEncoder(nn.Module): method __init__ (line 77) | def __init__(self, encoder_path="taesd_encoder.pth", latent_channels=N... function download_model (line 89) | def download_model(model_path, model_url): function decoder_model (line 97) | def decoder_model(): function encoder_model (line 122) | def encoder_model(): FILE: modules/shared_gradio_themes.py function reload_gradio_theme (line 44) | def reload_gradio_theme(theme_name=None): function resolve_var (line 74) | def resolve_var(name: str, gradio_theme=None, history=None): FILE: modules/shared_init.py function initialize (line 9) | def initialize(): FILE: modules/shared_items.py function realesrgan_models_names (line 9) | def realesrgan_models_names(): function dat_models_names (line 14) | def dat_models_names(): function postprocessing_scripts (line 19) | def postprocessing_scripts(): function sd_vae_items (line 25) | def sd_vae_items(): function refresh_vae_list (line 31) | def refresh_vae_list(): function cross_attention_optimizations (line 37) | def cross_attention_optimizations(): function sd_unet_items (line 43) | def sd_unet_items(): function refresh_unet_list (line 49) | def refresh_unet_list(): function list_checkpoint_tiles (line 55) | def list_checkpoint_tiles(use_short=False): function refresh_checkpoints (line 60) | def refresh_checkpoints(): function list_samplers (line 65) | def list_samplers(): function reload_hypernetworks (line 70) | def reload_hypernetworks(): function get_infotext_names (line 77) | def get_infotext_names(): function ui_reorder_categories (line 109) | def ui_reorder_categories(): function callbacks_order_settings (line 124) | def callbacks_order_settings(): class Shared (line 163) | class Shared(sys.modules[__name__].__class__): method sd_model (line 172) | def sd_model(self): method sd_model (line 178) | def sd_model(self, value): FILE: modules/shared_state.py class State (line 12) | class State: method __init__ (line 33) | def __init__(self): method need_restart (line 37) | def need_restart(self) -> bool: method need_restart (line 42) | def need_restart(self, value: bool) -> None: method server_command (line 48) | def server_command(self): method server_command (line 52) | def server_command(self, value: Optional[str]) -> None: method wait_for_server_command (line 59) | def wait_for_server_command(self, timeout: Optional[float] = None) -> ... method request_restart (line 70) | def request_restart(self) -> None: method skip (line 75) | def skip(self): method interrupt (line 79) | def interrupt(self): method stop_generating (line 83) | def stop_generating(self): method nextjob (line 87) | def nextjob(self): method dict (line 95) | def dict(self): method begin (line 110) | def begin(self, job: str = "(unknown)"): method end (line 129) | def end(self): method set_current_image (line 137) | def set_current_image(self): method do_set_current_image (line 145) | def do_set_current_image(self): method assign_current_image (line 164) | def assign_current_image(self, image): FILE: modules/shared_total_tqdm.py class TotalTQDM (line 6) | class TotalTQDM: method __init__ (line 7) | def __init__(self): method reset (line 10) | def reset(self): method update (line 18) | def update(self): method updateTotal (line 25) | def updateTotal(self, new_total): method clear (line 32) | def clear(self): FILE: modules/styles.py class PromptStyle (line 10) | class PromptStyle(typing.NamedTuple): function merge_prompts (line 17) | def merge_prompts(style_prompt: str, prompt: str) -> str: function apply_styles_to_prompt (line 27) | def apply_styles_to_prompt(prompt, styles): function extract_style_text_from_prompt (line 34) | def extract_style_text_from_prompt(style_text, prompt): function extract_original_prompts (line 62) | def extract_original_prompts(style: PromptStyle, prompt, negative_prompt): class StyleDatabase (line 82) | class StyleDatabase: method __init__ (line 83) | def __init__(self, paths: list[str | Path]): method reload (line 101) | def reload(self): method load_from_csv (line 132) | def load_from_csv(self, path: str | Path): method get_style_paths (line 150) | def get_style_paths(self) -> set: method get_style_prompts (line 169) | def get_style_prompts(self, styles): method get_negative_style_prompts (line 172) | def get_negative_style_prompts(self, styles): method apply_styles_to_prompt (line 175) | def apply_styles_to_prompt(self, prompt, styles): method apply_negative_styles_to_prompt (line 180) | def apply_negative_styles_to_prompt(self, prompt, styles): method save_styles (line 185) | def save_styles(self, path: str = None) -> None: method extract_styles_from_prompt (line 210) | def extract_styles_from_prompt(self, prompt, negative_prompt): FILE: modules/sub_quadratic_attention.py function narrow_trunc (line 21) | def narrow_trunc( class AttnChunk (line 30) | class AttnChunk(NamedTuple): class SummarizeChunk (line 36) | class SummarizeChunk: method __call__ (line 38) | def __call__( class ComputeQueryChunkAttn (line 45) | class ComputeQueryChunkAttn: method __call__ (line 47) | def __call__( function _summarize_chunk (line 54) | def _summarize_chunk( function _query_chunk_attention (line 75) | def _query_chunk_attention( function _get_attention_scores_no_kv_chunking (line 117) | def _get_attention_scores_no_kv_chunking( class ScannedChunk (line 136) | class ScannedChunk(NamedTuple): function efficient_dot_product_attention (line 141) | def efficient_dot_product_attention( FILE: modules/sysinfo.py function pretty_bytes (line 38) | def pretty_bytes(num, suffix="B"): function get (line 45) | def get(): function check (line 59) | def check(x): function get_cpu_info (line 70) | def get_cpu_info(): function get_ram_info (line 81) | def get_ram_info(): function get_packages (line 90) | def get_packages(): function get_dict (line 102) | def get_dict(): function get_environment (line 130) | def get_environment(): function get_argv (line 134) | def get_argv(): function get_torch_sysinfo (line 154) | def get_torch_sysinfo(): function run_git (line 164) | def run_git(path, *args): function git_status (line 171) | def git_status(path): function get_info_from_repo_path (line 176) | def get_info_from_repo_path(path: Path): function get_extensions (line 187) | def get_extensions(*, enabled, fallback_disabled_extensions=None): function get_config (line 206) | def get_config(): FILE: modules/textual_inversion/autocrop.py function crop_image (line 14) | def crop_image(im, settings): function focal_point (line 74) | def focal_point(im, settings): function image_face_points (line 142) | def image_face_points(im, settings): function image_corner_points (line 200) | def image_corner_points(im, settings): function image_entropy_points (line 228) | def image_entropy_points(im, settings): function image_entropy (line 260) | def image_entropy(im): function centroid (line 269) | def centroid(pois): function poi_average (line 275) | def poi_average(pois, settings): function is_landscape (line 289) | def is_landscape(w, h): function is_portrait (line 293) | def is_portrait(w, h): function is_square (line 297) | def is_square(w, h): function download_and_cache_models (line 310) | def download_and_cache_models(): class PointOfInterest (line 320) | class PointOfInterest: method __init__ (line 321) | def __init__(self, x, y, weight=1.0, size=10): method bounding (line 327) | def bounding(self, size): class Settings (line 336) | class Settings: method __init__ (line 337) | def __init__(self, crop_width=512, crop_height=512, corner_points_weig... FILE: modules/textual_inversion/dataset.py class DatasetEntry (line 20) | class DatasetEntry: method __init__ (line 21) | def __init__(self, filename=None, filename_text=None, latent_dist=None... class PersonalizedBase (line 32) | class PersonalizedBase(Dataset): method __init__ (line 33) | def __init__(self, data_root, width, height, repeats, flip_p=0.5, plac... method create_text (line 152) | def create_text(self, filename_text): method __len__ (line 163) | def __len__(self): method __getitem__ (line 166) | def __getitem__(self, i): class GroupedBatchSampler (line 175) | class GroupedBatchSampler(Sampler): method __init__ (line 176) | def __init__(self, data_source: PersonalizedBase, batch_size: int): method __len__ (line 188) | def __len__(self): method __iter__ (line 191) | def __iter__(self): class PersonalizedDataLoader (line 209) | class PersonalizedDataLoader(DataLoader): method __init__ (line 210) | def __init__(self, dataset, latent_sampling_method="once", batch_size=... class BatchLoader (line 218) | class BatchLoader: method __init__ (line 219) | def __init__(self, data): method pin_memory (line 230) | def pin_memory(self): function collate_wrapper (line 234) | def collate_wrapper(batch): class BatchLoaderRandom (line 237) | class BatchLoaderRandom(BatchLoader): method __init__ (line 238) | def __init__(self, data): method pin_memory (line 241) | def pin_memory(self): function collate_wrapper_random (line 244) | def collate_wrapper_random(batch): FILE: modules/textual_inversion/image_embedding.py class EmbeddingEncoder (line 15) | class EmbeddingEncoder(json.JSONEncoder): method default (line 16) | def default(self, obj): class EmbeddingDecoder (line 22) | class EmbeddingDecoder(json.JSONDecoder): method __init__ (line 23) | def __init__(self, *args, **kwargs): method object_hook (line 26) | def object_hook(self, d): function embedding_to_b64 (line 32) | def embedding_to_b64(data): function embedding_from_b64 (line 37) | def embedding_from_b64(data): function lcg (line 42) | def lcg(m=2**32, a=1664525, c=1013904223, seed=0): function xor_block (line 48) | def xor_block(block): function style_block (line 54) | def style_block(block, sequence): function insert_image_data_embed (line 72) | def insert_image_data_embed(image, data): function crop_black (line 108) | def crop_black(img, tol=0): function extract_image_data_embed (line 116) | def extract_image_data_embed(image): function caption_image_overlay (line 137) | def caption_image_overlay(srcimage, title, footerLeft, footerMid, footer... FILE: modules/textual_inversion/learn_schedule.py class LearnScheduleIterator (line 4) | class LearnScheduleIterator: method __init__ (line 5) | def __init__(self, learn_rate, max_steps, cur_step=0): method __iter__ (line 39) | def __iter__(self): method __next__ (line 42) | def __next__(self): class LearnRateScheduler (line 50) | class LearnRateScheduler: method __init__ (line 51) | def __init__(self, learn_rate, max_steps, cur_step=0, verbose=True): method step (line 61) | def step(self, step_number): method apply (line 72) | def apply(self, optimizer, step_number): FILE: modules/textual_inversion/saving_settings.py function save_settings_to_file (line 52) | def save_settings_to_file(log_directory, all_params): FILE: modules/textual_inversion/textual_inversion.py function list_textual_inversion_templates (line 27) | def list_textual_inversion_templates(): class Embedding (line 39) | class Embedding: method __init__ (line 40) | def __init__(self, vec, name, step=None): method save (line 54) | def save(self, filename): method checksum (line 73) | def checksum(self): method set_hash (line 86) | def set_hash(self, v): class DirWithTextualInversionEmbeddings (line 91) | class DirWithTextualInversionEmbeddings: method __init__ (line 92) | def __init__(self, path): method has_changed (line 96) | def has_changed(self): method update (line 104) | def update(self): class EmbeddingDatabase (line 111) | class EmbeddingDatabase: method __init__ (line 112) | def __init__(self): method add_embedding_dir (line 120) | def add_embedding_dir(self, path): method clear_embedding_dirs (line 123) | def clear_embedding_dirs(self): method register_embedding (line 126) | def register_embedding(self, embedding, model): method register_embedding_by_name (line 129) | def register_embedding_by_name(self, embedding, model, name): method get_expected_shape (line 152) | def get_expected_shape(self): method load_from_file (line 157) | def load_from_file(self, path, filename): method load_from_dir (line 195) | def load_from_dir(self, embdir): method load_textual_inversion_embeddings (line 212) | def load_textual_inversion_embeddings(self, force_reload=False): method find_embedding_at_position (line 245) | def find_embedding_at_position(self, tokens, offset): function create_embedding (line 259) | def create_embedding(name, num_vectors_per_token, overwrite_old, init_te... function create_embedding_from_data (line 287) | def create_embedding_from_data(data, name, filename='unknown embedding f... function write_loss (line 326) | def write_loss(log_directory, filename, step, epoch_len, values): function tensorboard_setup (line 350) | def tensorboard_setup(log_directory): function tensorboard_add (line 357) | def tensorboard_add(tensorboard_writer, loss, global_step, step, learn_r... function tensorboard_add_scaler (line 363) | def tensorboard_add_scaler(tensorboard_writer, tag, value, step): function tensorboard_add_image (line 367) | def tensorboard_add_image(tensorboard_writer, tag, pil_image, step): function validate_train_inputs (line 376) | def validate_train_inputs(model_name, learn_rate, batch_size, gradient_s... function train_embedding (line 400) | def train_embedding(id_task, embedding_name, learn_rate, batch_size, gra... function save_embedding (line 691) | def save_embedding(embedding, optimizer, checkpoint, embedding_name, fil... FILE: modules/textual_inversion/ui.py function create_embedding (line 9) | def create_embedding(name, initialization_text, nvpt, overwrite_old): function train_embedding (line 17) | def train_embedding(*args): FILE: modules/timer.py class TimerSubcategory (line 5) | class TimerSubcategory: method __init__ (line 6) | def __init__(self, timer, category): method __enter__ (line 12) | def __enter__(self): method __exit__ (line 20) | def __exit__(self, exc_type, exc_val, exc_tb): class Timer (line 28) | class Timer: method __init__ (line 29) | def __init__(self, print_log=False): method elapsed (line 37) | def elapsed(self): method add_time_to_record (line 43) | def add_time_to_record(self, category, amount): method record (line 49) | def record(self, category, extra_time=0, disable_log=False): method subcategory (line 59) | def subcategory(self, name): method summary (line 65) | def summary(self): method dump (line 78) | def dump(self): method reset (line 81) | def reset(self): FILE: modules/torch_utils.py function get_param (line 7) | def get_param(model) -> torch.nn.Parameter: function float64 (line 21) | def float64(t: torch.Tensor): FILE: modules/txt2img.py function txt2img_create_processing (line 14) | def txt2img_create_processing(id_task: str, request: gr.Request, prompt:... function txt2img_upscale (line 58) | def txt2img_upscale(id_task: str, request: gr.Request, gallery, gallery_... function txt2img (line 102) | def txt2img(id_task: str, request: gr.Request, *args): FILE: modules/ui.py function gr_show (line 62) | def gr_show(visible=True): function send_gradio_gallery_to_image (line 87) | def send_gradio_gallery_to_image(x): function calc_resolution_hires (line 93) | def calc_resolution_hires(enable, width, height, hr_scale, hr_resize_x, ... function resize_from_to_html (line 103) | def resize_from_to_html(width, height, scale_by): function process_interrogate (line 113) | def process_interrogate(interrogation_function, mode, ii_input_dir, ii_o... function interrogate (line 136) | def interrogate(image): function interrogate_deepbooru (line 141) | def interrogate_deepbooru(image): function connect_clear_prompt (line 146) | def connect_clear_prompt(button): function update_token_counter (line 156) | def update_token_counter(text, steps, styles, *, is_positive=True): function update_negative_prompt_token_counter (line 189) | def update_negative_prompt_token_counter(*args): function setup_progressbar (line 193) | def setup_progressbar(*args, **kwargs): function apply_setting (line 197) | def apply_setting(key, value): function create_output_panel (line 230) | def create_output_panel(tabname, outdir, toprow=None): function ordered_ui_categories (line 234) | def ordered_ui_categories(): function create_override_settings_dropdown (line 241) | def create_override_settings_dropdown(tabname, row): function create_ui (line 253) | def create_ui(): function versions_html (line 1178) | def versions_html(): function setup_ui_api (line 1207) | def setup_ui_api(app): FILE: modules/ui_checkpoint_merger.py function update_interp_description (line 9) | def update_interp_description(value): function modelmerger (line 19) | def modelmerger(*args): class UiCheckpointMerger (line 29) | class UiCheckpointMerger: method __init__ (line 30) | def __init__(self): method setup_ui (line 86) | def setup_ui(self, dummy_component, sd_model_checkpoint_component): FILE: modules/ui_common.py function update_generation_info (line 20) | def update_generation_info(generation_info, html_info, img_index): function plaintext_to_html (line 32) | def plaintext_to_html(text, classname=None): function update_logfile (line 38) | def update_logfile(logfile_path, fields): function save_files (line 64) | def save_files(js_data, images, do_make_zip, index): class OutputPanel (line 156) | class OutputPanel: function create_output_panel (line 164) | def create_output_panel(tabname, outdir, toprow=None): function create_refresh_button (line 284) | def create_refresh_button(refresh_component, refresh_method, refreshed_a... function setup_dialog (line 312) | def setup_dialog(button_show, dialog, *, button_close=None): FILE: modules/ui_components.py class FormComponent (line 4) | class FormComponent: method get_expected_parent (line 5) | def get_expected_parent(self): class ToolButton (line 12) | class ToolButton(FormComponent, gr.Button): method __init__ (line 15) | def __init__(self, *args, **kwargs): method get_block_name (line 19) | def get_block_name(self): class ResizeHandleRow (line 23) | class ResizeHandleRow(gr.Row): method __init__ (line 26) | def __init__(self, **kwargs): method get_block_name (line 31) | def get_block_name(self): class FormRow (line 35) | class FormRow(FormComponent, gr.Row): method get_block_name (line 38) | def get_block_name(self): class FormColumn (line 42) | class FormColumn(FormComponent, gr.Column): method get_block_name (line 45) | def get_block_name(self): class FormGroup (line 49) | class FormGroup(FormComponent, gr.Group): method get_block_name (line 52) | def get_block_name(self): class FormHTML (line 56) | class FormHTML(FormComponent, gr.HTML): method get_block_name (line 59) | def get_block_name(self): class FormColorPicker (line 63) | class FormColorPicker(FormComponent, gr.ColorPicker): method get_block_name (line 66) | def get_block_name(self): class DropdownMulti (line 70) | class DropdownMulti(FormComponent, gr.Dropdown): method __init__ (line 72) | def __init__(self, **kwargs): method get_block_name (line 75) | def get_block_name(self): class DropdownEditable (line 79) | class DropdownEditable(FormComponent, gr.Dropdown): method __init__ (line 81) | def __init__(self, **kwargs): method get_block_name (line 84) | def get_block_name(self): class InputAccordion (line 88) | class InputAccordion(gr.Checkbox): method __init__ (line 96) | def __init__(self, value, **kwargs): method extra (line 120) | def extra(self): method __enter__ (line 136) | def __enter__(self): method __exit__ (line 140) | def __exit__(self, exc_type, exc_val, exc_tb): method get_block_name (line 143) | def get_block_name(self): FILE: modules/ui_extensions.py function check_access (line 22) | def check_access(): function apply_and_restart (line 26) | def apply_and_restart(disable_list, update_list, disable_all): function save_config_state (line 59) | def save_config_state(name): function restore_config_state (line 76) | def restore_config_state(confirmed, config_state_name, restore_type): function check_updates (line 100) | def check_updates(id_task, disable_list): function make_commit_link (line 125) | def make_commit_link(commit_hash, remote, text=None): function extension_table (line 137) | def extension_table(): function update_config_states_table (line 194) | def update_config_states_table(state_name): function normalize_git_url (line 331) | def normalize_git_url(url): function get_extension_dirname_from_url (line 339) | def get_extension_dirname_from_url(url): function install_extension_from_url (line 344) | def install_extension_from_url(dirname, url, branch_name=None): function install_extension_from_index (line 399) | def install_extension_from_index(url, selected_tags, showing_type, filte... function refresh_available_extensions (line 407) | def refresh_available_extensions(url, selected_tags, showing_type, filte... function refresh_available_extensions_for_tags (line 421) | def refresh_available_extensions_for_tags(selected_tags, showing_type, f... function search_extensions (line 427) | def search_extensions(filter_text, selected_tags, showing_type, filterin... function get_date (line 446) | def get_date(info: dict, key): function refresh_available_extensions_from_data (line 453) | def refresh_available_extensions_from_data(selected_tags, showing_type, ... function preload_extensions_git_metadata (line 539) | def preload_extensions_git_metadata(): function create_ui (line 544) | def create_ui(): FILE: modules/ui_extra_networks.py function allowed_preview_extensions_with_extra (line 25) | def allowed_preview_extensions_with_extra(extra_extensions=None): function allowed_preview_extensions (line 29) | def allowed_preview_extensions(): class ExtraNetworksItem (line 34) | class ExtraNetworksItem: function get_tree (line 39) | def get_tree(paths: Union[str, list[str]], items: dict[str, ExtraNetwork... function register_page (line 89) | def register_page(page): function fetch_file (line 97) | def fetch_file(filename: str = ""): function fetch_cover_images (line 114) | def fetch_cover_images(page: str = "", item: str = "", index: int = 0): function get_metadata (line 139) | def get_metadata(page: str = "", item: str = ""): function get_single_card (line 155) | def get_single_card(page: str = "", tabname: str = "", name: str = ""): function add_pages_to_demo (line 173) | def add_pages_to_demo(app): function quote_js (line 180) | def quote_js(s): class ExtraNetworksPage (line 186) | class ExtraNetworksPage: method __init__ (line 187) | def __init__(self, title): method refresh (line 207) | def refresh(self): method read_user_metadata (line 210) | def read_user_metadata(self, item, use_cache=True): method link_preview (line 220) | def link_preview(self, filename): method search_terms_from_path (line 225) | def search_terms_from_path(self, filename, possible_directories=None): method create_item_html (line 234) | def create_item_html( method create_tree_dir_item_html (line 353) | def create_tree_dir_item_html( method create_tree_file_item_html (line 405) | def create_tree_file_item_html(self, tabname: str, file_path: str, ite... method create_tree_view_html (line 455) | def create_tree_view_html(self, tabname: str) -> str: method create_dirs_view_html (line 511) | def create_dirs_view_html(self, tabname: str) -> str: method create_card_view_html (line 552) | def create_card_view_html(self, tabname: str, *, none_message) -> str: method create_html (line 575) | def create_html(self, tabname, *, empty=False): method create_item (line 625) | def create_item(self, name, index=None): method list_items (line 628) | def list_items(self): method allowed_directories_for_previews (line 631) | def allowed_directories_for_previews(self): method get_sort_keys (line 634) | def get_sort_keys(self, path): method find_preview (line 647) | def find_preview(self, path): method find_embedded_preview (line 660) | def find_embedded_preview(self, path, name, metadata): method find_description (line 671) | def find_description(self, path): method create_user_metadata_editor (line 686) | def create_user_metadata_editor(self, ui, tabname): function initialize (line 690) | def initialize(): function register_default_pages (line 694) | def register_default_pages(): class ExtraNetworksUi (line 703) | class ExtraNetworksUi: method __init__ (line 704) | def __init__(self): function pages_in_preferred_order (line 719) | def pages_in_preferred_order(pages): function create_ui (line 735) | def create_ui(interface: gr.Blocks, unrelated_tabs, tabname): function path_is_parent (line 795) | def path_is_parent(parent_path, child_path): function setup_ui (line 802) | def setup_ui(ui, gallery): FILE: modules/ui_extra_networks_checkpoints.py class ExtraNetworksPageCheckpoints (line 8) | class ExtraNetworksPageCheckpoints(ui_extra_networks.ExtraNetworksPage): method __init__ (line 9) | def __init__(self): method refresh (line 14) | def refresh(self): method create_item (line 17) | def create_item(self, name, index=None, enable_filter=True): method list_items (line 39) | def list_items(self): method allowed_directories_for_previews (line 47) | def allowed_directories_for_previews(self): method create_user_metadata_editor (line 50) | def create_user_metadata_editor(self, ui, tabname): FILE: modules/ui_extra_networks_checkpoints_user_metadata.py class CheckpointUserMetadataEditor (line 7) | class CheckpointUserMetadataEditor(ui_extra_networks_user_metadata.UserM... method __init__ (line 8) | def __init__(self, ui, tabname, page): method save_user_metadata (line 13) | def save_user_metadata(self, name, desc, notes, vae): method update_vae (line 21) | def update_vae(self, name): method put_values_into_components (line 25) | def put_values_into_components(self, name): method create_editor (line 34) | def create_editor(self): FILE: modules/ui_extra_networks_hypernets.py class ExtraNetworksPageHypernetworks (line 8) | class ExtraNetworksPageHypernetworks(ui_extra_networks.ExtraNetworksPage): method __init__ (line 9) | def __init__(self): method refresh (line 12) | def refresh(self): method create_item (line 15) | def create_item(self, name, index=None, enable_filter=True): method list_items (line 38) | def list_items(self): method allowed_directories_for_previews (line 46) | def allowed_directories_for_previews(self): FILE: modules/ui_extra_networks_textual_inversion.py class ExtraNetworksPageTextualInversion (line 7) | class ExtraNetworksPageTextualInversion(ui_extra_networks.ExtraNetworksP... method __init__ (line 8) | def __init__(self): method refresh (line 12) | def refresh(self): method create_item (line 15) | def create_item(self, name, index=None, enable_filter=True): method list_items (line 36) | def list_items(self): method allowed_directories_for_previews (line 44) | def allowed_directories_for_previews(self): FILE: modules/ui_extra_networks_user_metadata.py class UserMetadataEditor (line 11) | class UserMetadataEditor: method __init__ (line 13) | def __init__(self, ui, tabname, page): method get_user_metadata (line 35) | def get_user_metadata(self, name): method create_extra_default_items_in_left_column (line 45) | def create_extra_default_items_in_left_column(self): method create_default_editor_elems (line 48) | def create_default_editor_elems(self): method create_default_buttons (line 60) | def create_default_buttons(self): method get_card_html (line 71) | def get_card_html(self, name): method relative_path (line 92) | def relative_path(self, path): method get_metadata_table (line 99) | def get_metadata_table(self, name): method put_values_into_components (line 118) | def put_values_into_components(self, name): method write_user_metadata (line 131) | def write_user_metadata(self, name, metadata): method save_user_metadata (line 141) | def save_user_metadata(self, name, desc, notes): method setup_save_handler (line 148) | def setup_save_handler(self, button, func, components): method create_editor (line 153) | def create_editor(self): method create_ui (line 166) | def create_ui(self): method save_preview (line 175) | def save_preview(self, index, gallery, name): method setup_ui (line 194) | def setup_ui(self, gallery): FILE: modules/ui_gradio_extensions.py function webpath (line 8) | def webpath(fn): function javascript_html (line 12) | def javascript_html(): function css_html (line 31) | def css_html(): function reload_javascript (line 52) | def reload_javascript(): FILE: modules/ui_loadsave.py function radio_choices (line 10) | def radio_choices(comp): # gradio 3.41 changes choices from list of val... class UiLoadsave (line 14) | class UiLoadsave: method __init__ (line 17) | def __init__(self, filename): method add_component (line 36) | def add_component(self, path, x): method add_block (line 127) | def add_block(self, x, path=""): method read_from_file (line 141) | def read_from_file(self): method write_to_file (line 145) | def write_to_file(self, current_ui_settings): method dump_defaults (line 149) | def dump_defaults(self): method iter_changes (line 157) | def iter_changes(self, current_ui_settings, values): method ui_view (line 184) | def ui_view(self, *values): method ui_apply (line 199) | def ui_apply(self, *values): method create_ui (line 215) | def create_ui(self): method setup_ui (line 231) | def setup_ui(self): FILE: modules/ui_postprocessing.py function create_ui (line 7) | def create_ui(): FILE: modules/ui_prompt_styles.py function select_style (line 10) | def select_style(name): function save_style (line 21) | def save_style(name, prompt, negative_prompt): function delete_style (line 35) | def delete_style(name): function materialize_styles (line 45) | def materialize_styles(prompt, negative_prompt, styles): function refresh_styles (line 52) | def refresh_styles(): class UiPromptStyles (line 56) | class UiPromptStyles: method __init__ (line 57) | def __init__(self, tabname, main_ui_prompt, main_ui_negative_prompt): method setup_apply_button (line 117) | def setup_apply_button(self, button): FILE: modules/ui_settings.py function get_value_for_setting (line 12) | def get_value_for_setting(key): function create_setting_component (line 22) | def create_setting_component(key, is_quicksettings=False): class UiSettings (line 58) | class UiSettings: method run_settings (line 72) | def run_settings(self, *args): method run_settings_single (line 91) | def run_settings_single(self, value, key): method register_settings (line 102) | def register_settings(self): method create_ui (line 105) | def create_ui(self, loadsave, dummy_component): method add_quicksettings (line 290) | def add_quicksettings(self): method add_functionality (line 296) | def add_functionality(self, demo): method search (line 342) | def search(self, text): FILE: modules/ui_tempdir.py function register_tmp_file (line 16) | def register_tmp_file(gradio, filename): function check_tmp_file (line 24) | def check_tmp_file(gradio, filename): function save_pil_to_file (line 34) | def save_pil_to_file(self, pil_image, dir=None, format="png"): function install_ui_tempdir_override (line 59) | def install_ui_tempdir_override(): function on_tmpdir_changed (line 64) | def on_tmpdir_changed(): function cleanup_tmpdr (line 73) | def cleanup_tmpdr(): function is_gradio_temp_path (line 88) | def is_gradio_temp_path(path): FILE: modules/ui_toprow.py class Toprow (line 9) | class Toprow: method __init__ (line 38) | def __init__(self, is_img2img, is_compact=False, id_part=None): method create_classic_toprow (line 52) | def create_classic_toprow(self): method create_inline_toprow_prompts (line 62) | def create_inline_toprow_prompts(self): method create_inline_toprow_image (line 74) | def create_inline_toprow_image(self): method create_prompts (line 80) | def create_prompts(self): method create_submit_box (line 96) | def create_submit_box(self): method create_tools_row (line 116) | def create_tools_row(self): method create_styles_ui (line 142) | def create_styles_ui(self): FILE: modules/upscaler.py class Upscaler (line 14) | class Upscaler: method __init__ (line 26) | def __init__(self, create_dirs=False): method do_upscale (line 51) | def do_upscale(self, img: PIL.Image, selected_model: str): method upscale (line 54) | def upscale(self, img: PIL.Image, scale, selected_model: str = None): method load_model (line 79) | def load_model(self, path: str): method find_models (line 82) | def find_models(self, ext_filter=None) -> list: method update_status (line 85) | def update_status(self, prompt): class UpscalerData (line 89) | class UpscalerData: method __init__ (line 96) | def __init__(self, name: str, path: str, upscaler: Upscaler = None, sc... method __repr__ (line 104) | def __repr__(self): class UpscalerNone (line 108) | class UpscalerNone(Upscaler): method load_model (line 112) | def load_model(self, path): method do_upscale (line 115) | def do_upscale(self, img, selected_model=None): method __init__ (line 118) | def __init__(self, dirname=None): class UpscalerLanczos (line 123) | class UpscalerLanczos(Upscaler): method do_upscale (line 126) | def do_upscale(self, img, selected_model=None): method load_model (line 129) | def load_model(self, _): method __init__ (line 132) | def __init__(self, dirname=None): class UpscalerNearest (line 138) | class UpscalerNearest(Upscaler): method do_upscale (line 141) | def do_upscale(self, img, selected_model=None): method load_model (line 144) | def load_model(self, _): method __init__ (line 147) | def __init__(self, dirname=None): FILE: modules/upscaler_utils.py function pil_image_to_torch_bgr (line 14) | def pil_image_to_torch_bgr(img: Image.Image) -> torch.Tensor: function torch_bgr_to_pil_image (line 22) | def torch_bgr_to_pil_image(tensor: torch.Tensor) -> Image.Image: function upscale_pil_patch (line 38) | def upscale_pil_patch(model, img: Image.Image) -> Image.Image: function upscale_with_model (line 51) | def upscale_with_model( function tiled_upscale_2 (line 91) | def tiled_upscale_2( function upscale_2 (line 165) | def upscale_2( FILE: modules/util.py function natural_sort_key (line 8) | def natural_sort_key(s, regex=re.compile('([0-9]+)')): function listfiles (line 12) | def listfiles(dirname): function html_path (line 17) | def html_path(filename): function html (line 21) | def html(filename): function walk_files (line 31) | def walk_files(path, allowed_extensions=None): function ldm_print (line 54) | def ldm_print(*args, **kwargs): function truncate_path (line 61) | def truncate_path(target_path, base_path=cwd): class MassFileListerCachedDir (line 71) | class MassFileListerCachedDir: method __init__ (line 74) | def __init__(self, dirname): method update_entry (line 84) | def update_entry(self, filename): class MassFileLister (line 96) | class MassFileLister: method __init__ (line 99) | def __init__(self): method find (line 102) | def find(self, path): method exists (line 131) | def exists(self, path): method mctime (line 136) | def mctime(self, path): method reset (line 147) | def reset(self): method update_file_entry (line 151) | def update_file_entry(self, path): function topological_sort (line 157) | def topological_sort(dependencies): function open_folder (line 181) | def open_folder(path): FILE: modules/xlmr.py class BertSeriesConfig (line 11) | class BertSeriesConfig(BertConfig): method __init__ (line 12) | def __init__(self, vocab_size=30522, hidden_size=768, num_hidden_layer... class RobertaSeriesConfig (line 19) | class RobertaSeriesConfig(XLMRobertaConfig): method __init__ (line 20) | def __init__(self, pad_token_id=1, bos_token_id=0, eos_token_id=2,proj... class BertSeriesModelWithTransformation (line 27) | class BertSeriesModelWithTransformation(BertPreTrainedModel): method __init__ (line 33) | def __init__(self, config=None, **kargs): method encode (line 67) | def encode(self,c): method forward (line 82) | def forward( class RobertaSeriesModelWithTransformation (line 138) | class RobertaSeriesModelWithTransformation(BertSeriesModelWithTransforma... FILE: modules/xlmr_m18.py class BertSeriesConfig (line 10) | class BertSeriesConfig(BertConfig): method __init__ (line 11) | def __init__(self, vocab_size=30522, hidden_size=768, num_hidden_layer... class RobertaSeriesConfig (line 18) | class RobertaSeriesConfig(XLMRobertaConfig): method __init__ (line 19) | def __init__(self, pad_token_id=1, bos_token_id=0, eos_token_id=2,proj... class BertSeriesModelWithTransformation (line 26) | class BertSeriesModelWithTransformation(BertPreTrainedModel): method __init__ (line 32) | def __init__(self, config=None, **kargs): method encode (line 72) | def encode(self,c): method forward (line 87) | def forward( class RobertaSeriesModelWithTransformation (line 164) | class RobertaSeriesModelWithTransformation(BertSeriesModelWithTransforma... FILE: modules/xpu_specific.py function check_for_xpu (line 13) | def check_for_xpu(): function get_xpu_device_string (line 17) | def get_xpu_device_string(): function torch_xpu_gc (line 23) | def torch_xpu_gc(): function torch_xpu_scaled_dot_product_attention (line 38) | def torch_xpu_scaled_dot_product_attention( function is_xpu_device (line 97) | def is_xpu_device(device: str | torch.device = None): FILE: script.js function gradioApp (line 1) | function gradioApp() { function get_uiCurrentTab (line 16) | function get_uiCurrentTab() { function get_uiCurrentTabContent (line 23) | function get_uiCurrentTabContent() { function onUiUpdate (line 40) | function onUiUpdate(callback) { function onAfterUiUpdate (line 52) | function onAfterUiUpdate(callback) { function onUiLoaded (line 60) | function onUiLoaded(callback) { function onUiTabChange (line 68) | function onUiTabChange(callback) { function onOptionsChanged (line 77) | function onOptionsChanged(callback) { function onOptionsAvailable (line 86) | function onOptionsAvailable(callback) { function executeCallbacks (line 95) | function executeCallbacks(queue, arg) { function scheduleAfterUiUpdateCallbacks (line 111) | function scheduleAfterUiUpdateCallbacks() { function uiElementIsVisible (line 196) | function uiElementIsVisible(el) { function uiElementInSight (line 208) | function uiElementInSight(el) { FILE: scripts/custom_code.py function convertExpr2Expression (line 10) | def convertExpr2Expression(expr): function exec_with_return (line 18) | def exec_with_return(code, module): class Script (line 38) | class Script(scripts.Script): method title (line 40) | def title(self): method show (line 43) | def show(self, is_img2img): method ui (line 46) | def ui(self, is_img2img): method run (line 63) | def run(self, p, code, indent_level): FILE: scripts/img2imgalt.py function find_noise_for_image (line 14) | def find_noise_for_image(p, cond, uncond, cfg_scale, steps): function find_noise_for_image_sigma_adjustment (line 66) | def find_noise_for_image_sigma_adjustment(p, cond, uncond, cfg_scale, st... class Script (line 121) | class Script(scripts.Script): method __init__ (line 122) | def __init__(self): method title (line 125) | def title(self): method show (line 128) | def show(self, is_img2img): method ui (line 131) | def ui(self, is_img2img): method run (line 160) | def run(self, p, _, override_sampler, override_prompt, original_prompt... FILE: scripts/loopback.py class Script (line 10) | class Script(scripts.Script): method title (line 11) | def title(self): method show (line 14) | def show(self, is_img2img): method ui (line 17) | def ui(self, is_img2img): method run (line 25) | def run(self, p, loops, final_denoising_strength, denoising_curve, app... FILE: scripts/outpainting_mk_2.py function get_matched_noise (line 16) | def get_matched_noise(_np_src_image, np_mask_rgb, noise_q=1, color_varia... class Script (line 121) | class Script(scripts.Script): method title (line 122) | def title(self): method show (line 125) | def show(self, is_img2img): method ui (line 128) | def ui(self, is_img2img): method run (line 142) | def run(self, p, _, pixels, mask_blur, direction, noise_q, color_varia... FILE: scripts/poor_mans_outpainting.py class Script (line 12) | class Script(scripts.Script): method title (line 13) | def title(self): method show (line 16) | def show(self, is_img2img): method ui (line 19) | def ui(self, is_img2img): method run (line 30) | def run(self, p, pixels, mask_blur, inpainting_fill, direction): FILE: scripts/postprocessing_codeformer.py class ScriptPostprocessingCodeFormer (line 8) | class ScriptPostprocessingCodeFormer(scripts_postprocessing.ScriptPostpr... method ui (line 12) | def ui(self): method process (line 24) | def process(self, pp: scripts_postprocessing.PostprocessedImage, enabl... FILE: scripts/postprocessing_gfpgan.py class ScriptPostprocessingGfpGan (line 8) | class ScriptPostprocessingGfpGan(scripts_postprocessing.ScriptPostproces... method ui (line 12) | def ui(self): method process (line 21) | def process(self, pp: scripts_postprocessing.PostprocessedImage, enabl... FILE: scripts/postprocessing_upscale.py function limit_size_by_one_dimention (line 15) | def limit_size_by_one_dimention(w, h, limit): class ScriptPostprocessingUpscale (line 26) | class ScriptPostprocessingUpscale(scripts_postprocessing.ScriptPostproce... method ui (line 30) | def ui(self): method upscale (line 88) | def upscale(self, image, info, upscaler, upscale_mode, upscale_by, max... method process_firstpass (line 121) | def process_firstpass(self, pp: scripts_postprocessing.PostprocessedIm... method process (line 131) | def process(self, pp: scripts_postprocessing.PostprocessedImage, upsca... method image_changed (line 165) | def image_changed(self): class ScriptPostprocessingUpscaleSimple (line 169) | class ScriptPostprocessingUpscaleSimple(ScriptPostprocessingUpscale): method ui (line 173) | def ui(self): method process_firstpass (line 183) | def process_firstpass(self, pp: scripts_postprocessing.PostprocessedIm... method process (line 187) | def process(self, pp: scripts_postprocessing.PostprocessedImage, upsca... FILE: scripts/prompt_matrix.py function draw_xy_grid (line 12) | def draw_xy_grid(xs, ys, x_label, y_label, cell): class Script (line 40) | class Script(scripts.Script): method title (line 41) | def title(self): method ui (line 44) | def ui(self, is_img2img): method run (line 58) | def run(self, p, put_at_start, different_seeds, prompt_type, variation... FILE: scripts/prompts_from_file.py function process_model_tag (line 13) | def process_model_tag(tag): function process_string_tag (line 19) | def process_string_tag(tag): function process_int_tag (line 23) | def process_int_tag(tag): function process_float_tag (line 27) | def process_float_tag(tag): function process_boolean_tag (line 31) | def process_boolean_tag(tag): function cmdargs (line 63) | def cmdargs(line): function load_prompt_file (line 102) | def load_prompt_file(file): class Script (line 110) | class Script(scripts.Script): method title (line 111) | def title(self): method ui (line 114) | def ui(self, is_img2img): method run (line 130) | def run(self, p, checkbox_iterate, checkbox_iterate_batch, prompt_posi... FILE: scripts/sd_upscale.py class Script (line 12) | class Script(scripts.Script): method title (line 13) | def title(self): method show (line 16) | def show(self, is_img2img): method ui (line 19) | def ui(self, is_img2img): method run (line 27) | def run(self, p, _, overlap, upscaler_index, scale_factor): FILE: scripts/xyz_grid.py function apply_field (line 30) | def apply_field(field): function apply_prompt (line 37) | def apply_prompt(p, x, xs): function apply_order (line 45) | def apply_order(p, x, xs): function confirm_samplers (line 70) | def confirm_samplers(p, xs): function apply_checkpoint (line 76) | def apply_checkpoint(p, x, xs): function confirm_checkpoints (line 83) | def confirm_checkpoints(p, xs): function confirm_checkpoints_or_none (line 89) | def confirm_checkpoints_or_none(p, xs): function confirm_range (line 98) | def confirm_range(min_val, max_val, axis_label): function apply_size (line 109) | def apply_size(p, x: str, xs) -> None: function find_vae (line 120) | def find_vae(name: str): function apply_vae (line 128) | def apply_vae(p, x, xs): function apply_styles (line 132) | def apply_styles(p: StableDiffusionProcessingTxt2Img, x: str, _): function apply_uni_pc_order (line 136) | def apply_uni_pc_order(p, x, xs): function apply_face_restore (line 140) | def apply_face_restore(p, opt, x): function apply_override (line 154) | def apply_override(field, boolean: bool = False): function boolean_choice (line 163) | def boolean_choice(reverse: bool = False): function format_value_add_label (line 170) | def format_value_add_label(p, opt, x): function format_value (line 177) | def format_value(p, opt, x): function format_value_join_list (line 183) | def format_value_join_list(p, opt, x): function do_nothing (line 187) | def do_nothing(p, x, xs): function format_nothing (line 191) | def format_nothing(p, opt, x): function format_remove_path (line 195) | def format_remove_path(p, opt, x): function str_permutations (line 199) | def str_permutations(x): function list_to_csv_string (line 204) | def list_to_csv_string(data_list): function csv_string_to_list_strip (line 210) | def csv_string_to_list_strip(data_str): class AxisOption (line 214) | class AxisOption: method __init__ (line 215) | def __init__(self, label, type, apply, format_value=format_value_add_l... class AxisOptionImg2Img (line 226) | class AxisOptionImg2Img(AxisOption): method __init__ (line 227) | def __init__(self, *args, **kwargs): class AxisOptionTxt2Img (line 232) | class AxisOptionTxt2Img(AxisOption): method __init__ (line 233) | def __init__(self, *args, **kwargs): function draw_xyz_grid (line 287) | def draw_xyz_grid(p, xs, ys, zs, x_labels, y_labels, z_labels, cell, dra... class SharedSettingsStackHelper (line 399) | class SharedSettingsStackHelper(object): method __enter__ (line 400) | def __enter__(self): method __exit__ (line 403) | def __exit__(self, exc_type, exc_value, tb): class Script (line 415) | class Script(scripts.Script): method title (line 416) | def title(self): method ui (line 419) | def ui(self, is_img2img): method run (line 538) | def run(self, p, x_type, x_values, x_values_dropdown, y_type, y_values... FILE: test/conftest.py function pytest_configure (line 10) | def pytest_configure(config): function file_to_base64 (line 16) | def file_to_base64(filename): function img2img_basic_image_base64 (line 25) | def img2img_basic_image_base64() -> str: function mask_basic_image_base64 (line 30) | def mask_basic_image_base64() -> str: function initialize (line 35) | def initialize() -> None: FILE: test/test_extras.py function test_simple_upscaling_performed (line 4) | def test_simple_upscaling_performed(base_url, img2img_basic_image_base64): function test_png_info_performed (line 23) | def test_png_info_performed(base_url, img2img_basic_image_base64): function test_interrogate_performed (line 30) | def test_interrogate_performed(base_url, img2img_basic_image_base64): FILE: test/test_face_restorers.py function test_face_restorers (line 11) | def test_face_restorers(restorer_name): FILE: test/test_img2img.py function url_img2img (line 7) | def url_img2img(base_url): function simple_img2img_request (line 12) | def simple_img2img_request(img2img_basic_image_base64): function test_img2img_simple_performed (line 50) | def test_img2img_simple_performed(url_img2img, simple_img2img_request): function test_inpainting_masked_performed (line 54) | def test_inpainting_masked_performed(url_img2img, simple_img2img_request... function test_inpainting_with_inverted_masked_performed (line 59) | def test_inpainting_with_inverted_masked_performed(url_img2img, simple_i... function test_img2img_sd_upscale_performed (line 65) | def test_img2img_sd_upscale_performed(url_img2img, simple_img2img_request): FILE: test/test_torch_utils.py function test_get_param (line 10) | def test_get_param(wrapped): FILE: test/test_txt2img.py function url_txt2img (line 7) | def url_txt2img(base_url): function simple_txt2img_request (line 12) | def simple_txt2img_request(): function test_txt2img_simple_performed (line 43) | def test_txt2img_simple_performed(url_txt2img, simple_txt2img_request): function test_txt2img_with_negative_prompt_performed (line 47) | def test_txt2img_with_negative_prompt_performed(url_txt2img, simple_txt2... function test_txt2img_with_complex_prompt_performed (line 52) | def test_txt2img_with_complex_prompt_performed(url_txt2img, simple_txt2i... function test_txt2img_not_square_image_performed (line 57) | def test_txt2img_not_square_image_performed(url_txt2img, simple_txt2img_... function test_txt2img_with_hrfix_performed (line 62) | def test_txt2img_with_hrfix_performed(url_txt2img, simple_txt2img_request): function test_txt2img_with_tiling_performed (line 67) | def test_txt2img_with_tiling_performed(url_txt2img, simple_txt2img_reque... function test_txt2img_with_restore_faces_performed (line 72) | def test_txt2img_with_restore_faces_performed(url_txt2img, simple_txt2im... function test_txt2img_with_vanilla_sampler_performed (line 78) | def test_txt2img_with_vanilla_sampler_performed(url_txt2img, simple_txt2... function test_txt2img_multiple_batches_performed (line 83) | def test_txt2img_multiple_batches_performed(url_txt2img, simple_txt2img_... function test_txt2img_batch_performed (line 88) | def test_txt2img_batch_performed(url_txt2img, simple_txt2img_request): FILE: test/test_utils.py function test_options_write (line 5) | def test_options_write(base_url): function test_get_api_url (line 32) | def test_get_api_url(base_url, url): FILE: webui.py function create_api (line 18) | def create_api(app): function api_only (line 26) | def api_only(): function webui (line 48) | def webui():