MCPcopy Create free account

hub / github.com/Sygil-Dev/sygil-webui / functions

Functions1,943 in github.com/Sygil-Dev/sygil-webui

↓ 136 callersMethodupdate
(self, op_code, cur_count, max_count=None, message="")
scripts/sd_concepts_library_downloader.py:23
↓ 93 callersMethoderror
(e)
frontend/js/index.js:178
↓ 84 callersMethodload
()
frontend/js/index.js:58
↓ 78 callersFunctionexpand_dims
Expand the tensor `v` to the dim `dims`. Args: `v`: a PyTorch tensor with shape [N]. `dim`: a `int`. Returns: a P
ldm/models/diffusion/dpm_solver/dpm_solver.py:1482
↓ 73 callersMethodsave
(self, ckpt_path)
ldm/modules/embedding_manager.py:190
↓ 68 callersMethodget
(selector)
frontend/js/index.js:103
↓ 60 callersMethodregister_buffer
(self, name, attr)
ldm/models/diffusion/ddim.py:22
↓ 39 callersFunctioninstantiate_from_config
(config)
ldm/util.py:78
↓ 34 callersMethod_api_request
(self, method: str, path: str, **kwargs: T.Any)
scripts/hydrus_api/__init__.py:235
↓ 33 callersMethodload
Load model from file. Args: path (str): file path
ldm/modules/midas/midas/base_model.py:5
↓ 29 callersFunctionModelLoader
( models, load=False, unload=False, imgproc_realesrgan_model_name="RealESRGAN_x4plus" )
scripts/webui.py:3460
↓ 29 callersMethoddecode
(self, quant)
ldm/models/autoencoder.py:116
↓ 28 callersFunctionconv_nd
Create a 1D, 2D, or 3D convolution module.
ldm/modules/diffusionmodules/util.py:245
↓ 28 callersMethodfrom_pretrained
Initialize a pretrained Real-ESRGAN upsampler. Args: model_name_or_path (str, optional): The Hugging Face repo ID or path to local
scripts/sd_utils_old.py:1779
↓ 26 callersFunction_n2p
(w, t=True)
ldm/models/vit.py:289
↓ 25 callersFunctionload_models
Load the different models. We also reuse the models that are already in memory to speed things up instead of loading them again.
scripts/sd_utils_old.py:332
↓ 21 callersFunctionextract_into_tensor
(a, t, x_shape)
ldm/modules/diffusionmodules/util.py:118
↓ 19 callersMethodencode
(self, x)
ldm/models/autoencoder.py:105
↓ 19 callersMethodget_input_embeddings
(self)
ldm/models/med.py:650
↓ 19 callersMethodget_learned_conditioning
(self, c)
optimizedSD/ddpm.py:350
↓ 19 callersMethodmarginal_lambda
Compute lambda_t = log(alpha_t) - log(sigma_t) of a given continuous-time label t in [0, T].
ldm/models/diffusion/dpm_solver/dpm_solver.py:157
↓ 18 callersMethodmarginal_std
Compute sigma_t of a given continuous-time label t in [0, T].
ldm/models/diffusion/dpm_solver/dpm_solver.py:151
↓ 18 callersFunctionto_d
Converts a denoiser output to a Karras ODE derivative.
optimizedSD/samplers.py:100
↓ 17 callersFunctioncall_JS
(sd_method, **kwargs)
frontend/css_and_js.py:48
↓ 17 callersFunctiontorch_gc
()
scripts/sd_utils_old.py:1579
↓ 16 callersMethodapply_model
(self, x_noisy, t, cond, return_ids=False)
optimizedSD/ddpm.py:476
↓ 16 callersFunctionexists
(val)
ldm/modules/x_transformer.py:52
↓ 16 callersMethodget_sigmas
(self, n=None)
optimizedSD/samplers.py:40
↓ 16 callersMethodmarginal_log_mean_coeff
Compute log(alpha_t) of a given continuous-time label t in [0, T].
ldm/models/diffusion/dpm_solver/dpm_solver.py:121
↓ 16 callersMethodset_on_image
Sets metadata on image, in both text form and as an ImageMetadata object
frontend/image_metadata.py:51
↓ 15 callersMethod__init__
( self, *, ch, out_ch, ch_mult=(1, 2, 4, 8), num_res_blocks,
ldm/modules/diffusionmodules/model.py:257
↓ 15 callersFunctionlog_info
(*args, **kwargs)
scripts/scn2img.py:426
↓ 15 callersMethodmodel_fn
Convert the model to the noise prediction model or the data prediction model.
ldm/models/diffusion/dpm_solver/dpm_solver.py:431
↓ 14 callersMethoddecode_first_stage
(self, z, predict_cids=False, force_not_quantize=False)
optimizedSD/ddpm.py:213
↓ 14 callersMethodq_sample
(self, x_start, t, noise=None)
ldm/models/diffusion/ddpm.py:364
↓ 14 callersMethodsigma_to_t
(self, sigma, quantize=None)
optimizedSD/samplers.py:47
↓ 14 callersFunctiontorch_gc
()
scripts/webui.py:669
↓ 13 callersMethod__init__
(self, config, layer_num)
ldm/models/med.py:364
↓ 13 callersFunctionassign_to_checkpoint
This does the final conversion step: take locally converted weights and apply a global renaming to them. It splits attention layers, and take
scripts/convert_original_stable_diffusion_to_diffusers.py:160
↓ 13 callersMethoddecode
( self, x_latent, cond, t_start, unconditional_guidance_scale=1.0,
ldm/models/diffusion/ddim.py:336
↓ 13 callersMethodinit
({ x, toId })
frontend/js/index.js:8
↓ 13 callersFunctionnormalization
Make a standard normalization layer. :param channels: number of input channels. :return: an nn.Module for normalization.
ldm/modules/diffusionmodules/util.py:225
↓ 13 callersMethodread
(self)
scripts/webui.py:560
↓ 13 callersMethodregister_buffer
(self, name, attr)
ldm/models/diffusion/plms.py:21
↓ 13 callersFunctionseed_to_int
(s)
scripts/webui.py:976
↓ 13 callersFunctionset_page_title
Simple function to allows us to change the title dynamically. Normally you can use `st.set_page_config` to change the title but it can only b
scripts/sd_utils_old.py:253
↓ 13 callersFunctionset_page_title
Simple function to allows us to change the title dynamically. Normally you can use `st.set_page_config` to change the title but it can only b
webui/streamlit/scripts/sd_utils/__init__.py:235
↓ 12 callersMethod__init__
(self, value, fn)
ldm/modules/x_transformer.py:124
↓ 12 callersMethod__init__
(self, config, layer_num)
ldm/models/nlvr_encoder.py:408
↓ 12 callersFunctionget_next_sequence_number
Determines and returns the next sequence number to use when saving an image in the specified directory. If a prefix is given, only consi
scripts/webui.py:1213
↓ 12 callersMethodget_scalings
(self, sigma)
optimizedSD/samplers.py:76
↓ 12 callersFunctionlayout
()
scripts/Settings.py:34
↓ 12 callersFunctionlayout
()
webui/streamlit/scripts/Settings.py:34
↓ 12 callersFunctionsave_sample
saves the image according to selected parameters. Expects to find generation parameters on image, set by ImageMetadata.set_on_image()
scripts/webui.py:1093
↓ 11 callersFunctionappend_dims
Appends dimensions to the end of a tensor until it has target_dims dimensions.
optimizedSD/samplers.py:11
↓ 10 callersFunctionget_activation
(name)
ldm/modules/midas/midas/vit.py:159
↓ 10 callersFunctionnonlinearity
(x)
ldm/modules/diffusionmodules/model.py:34
↓ 10 callersFunctiontorch_gc
()
scripts/sd_utils/__init__.py:1604
↓ 9 callersFunctionNormalize
(in_channels, num_groups=32)
ldm/modules/diffusionmodules/model.py:39
↓ 9 callersMethod__init__
(self, channels, use_conv, dims=2, out_channels=None, padding=1)
ldm/modules/diffusionmodules/openaimodel.py:101
↓ 9 callersMethod__init__
(self, channels, use_conv, dims=2, out_channels=None, padding=1)
optimizedSD/openaimodelSplit.py:89
↓ 9 callersMethodalign_canvas
(self)
webui/flet/scripts/flet_canvas.py:66
↓ 9 callersFunctioncreate_vit
( vit, image_size, use_grad_checkpointing=False, ckpt_layer=0, drop_path_rate=0 )
ldm/models/blip.py:242
↓ 9 callersFunctiondefault
(val, d)
ldm/util.py:57
↓ 9 callersMethodfrom_pretrained
Same as diffusers `from_pretrained` but with tiled option, which makes images tilable
webui/streamlit/scripts/txt2vid.py:1026
↓ 9 callersMethodread
(self)
webui/streamlit/scripts/sd_utils/__init__.py:298
↓ 9 callersMethodrefresh_layers
(self)
webui/flet/scripts/flet_asset_manager.py:77
↓ 8 callersFunctionRemoveDouble
(str, symbol)
scripts/custom_components/sygil_suggestions/main.js:724
↓ 8 callersFunctionRemoveDouble
(str, symbol)
webui/streamlit/scripts/custom_components/sygil_suggestions/main.js:724
↓ 8 callersMethod__init__
( self, n_embed, n_layer, vocab_size=30522, max_seq_len=77, de
ldm/modules/encoders/modules.py:98
↓ 8 callersMethodenable_attention_slicing
r""" Enable sliced attention computation. When this option is enabled, the attention module will split the input tensor in slices, to
scripts/txt2vid.py:314
↓ 8 callersMethodencode_first_stage
(self, x)
optimizedSD/ddpm.py:239
↓ 8 callersMethodget_first_stage_encoding
(self, encoder_posterior)
optimizedSD/ddpm.py:201
↓ 8 callersMethodget_from_image
Gets metadata from an image, first looking for an ImageMetadata, then if not found tries to construct one from the info
frontend/image_metadata.py:60
↓ 8 callersFunctionlinear
Create a linear module.
ldm/modules/diffusionmodules/util.py:258
↓ 8 callersFunctionload_models
Load the different models. We also reuse the models that are already in memory to speed things up instead of loading them again.
scripts/sd_utils/__init__.py:354
↓ 8 callersMethodmake_schedule
( self, ddim_num_steps, ddim_discretize="uniform", ddim_eta=0.0, verbose=True )
optimizedSD/ddpm.py:528
↓ 8 callersMethodmeshgrid
(self, h, w)
ldm/models/diffusion/ddpm.py:713
↓ 8 callersMethodread
(self)
scripts/hydrus_api/utils.py:27
↓ 8 callersFunctionseed_to_int
(s)
scripts/sd_utils_old.py:2298
↓ 8 callersMethodsetup
(self)
webui/flet/scripts/flet_canvas.py:11
↓ 7 callersFunctionAddButton
(label, action, dataTooltip = null, tooltipImage = null, pattern = null, data = null)
scripts/custom_components/sygil_suggestions/main.js:113
↓ 7 callersFunctionAddButton
(label, action, dataTooltip = null, tooltipImage = null, pattern = null, data = null)
webui/streamlit/scripts/custom_components/sygil_suggestions/main.js:113
↓ 7 callersMethod_get_call_info
Helper to get the SessionInfo and JobInfo.
frontend/job_manager.py:302
↓ 7 callersMethodapply_model
(self, x_noisy, t, cond, return_ids=False)
ldm/models/diffusion/ddpm.py:1123
↓ 7 callersFunctionbatch_rank
( model, image_features, text_array, batch_size=st.session_state["defaults"].img2txt.batch_siz
scripts/img2txt.py:161
↓ 7 callersFunctionbatch_rank
( model, image_features, text_array, batch_size=st.session_state["defaults"].img2txt.batch_siz
webui/streamlit/scripts/img2txt.py:161
↓ 7 callersMethodcheckpoint
(self, step, text_encoder, save_samples=True, path=None)
scripts/textual_inversion.py:282
↓ 7 callersFunctionconcat_all_gather
Performs all_gather operation on the provided tensors. *** Warning ***: torch.distributed.all_gather has no gradient.
ldm/models/blip_retrieval.py:320
↓ 7 callersMethoddecode_first_stage
(self, z, predict_cids=False, force_not_quantize=False)
ldm/models/diffusion/ddpm.py:902
↓ 7 callersMethodema_scope
(self, context=None)
ldm/models/autoencoder.py:71
↓ 7 callersMethodema_scope
(self, context=None)
ldm/models/diffusion/ddpm.py:239
↓ 7 callersFunctionimage_grid
(imgs, batch_size, force_n_rows=None, captions=None)
scripts/webui.py:937
↓ 7 callersFunctioninit_tokenizer
()
ldm/models/blip.py:234
↓ 7 callersFunctionload_learned_embed_in_clip
( learned_embeds_path, text_encoder, tokenizer, token=None )
scripts/sd_utils_old.py:2210
↓ 7 callersFunctionload_list
(filename)
scripts/img2txt.py:129
↓ 7 callersFunctionload_list
(filename)
webui/streamlit/scripts/img2txt.py:129
↓ 7 callersFunctionlog_lvl
(lvl, *args, **kwargs)
scripts/scn2img.py:414
↓ 7 callersFunctionmake_attn
(in_channels, attn_type="vanilla")
ldm/modules/diffusionmodules/model.py:245
↓ 7 callersMethodmessage
(self, text, err=0)
webui/flet/scripts/flet_messages.py:62
next →1–100 of 1,943, ranked by callers