MCPcopy Create free account

hub / github.com/lllyasviel/Fooocus / functions

Functions2,411 in github.com/lllyasviel/Fooocus

↓ 546 callersMethodappend
(self, conditioning_to, clip, gligen_textbox_model, text, width, height, x, y)
ldm_patched/contrib/external.py:993
↓ 318 callersMethodto
(self, device)
ldm_patched/contrib/external_hypernetwork.py:91
↓ 118 callersMethodupdate
( value: Any | Literal[_Keywords.NO_VALUE] | None = _Keywords.NO_VALUE, height: int | None = N
modules/gradio_hijack.py:199
↓ 102 callersMethodkeys
(cls)
modules/flags.py:147
↓ 79 callersMethodcopy
(self)
ldm_patched/modules/controlnet.py:179
↓ 76 callersMethodclone
(self)
ldm_patched/modules/sd.py:104
↓ 67 callersFunctionget_config_item_or_set_default
(key, default_value, validator, disable_empty_as_none=False, expected_type=None)
modules/config.py:207
↓ 50 callersMethodrepeat
(self, samples, amount)
ldm_patched/contrib/external.py:1069
↓ 45 callersMethodload_state_dict
Loads the class's state. Args: state_dict (dict): scaler state. Should be an object returned from a call to :meth:
ldm_patched/k_diffusion/utils.py:117
↓ 41 callersFunctiongradioApp
()
javascript/script.js:2
↓ 39 callersMethodload
(self, latent)
ldm_patched/contrib/external.py:483
↓ 33 callersMethoddevice
(self)
extras/sam/predictor.py:278
↓ 33 callersFunctionprogressbar
(async_task, number, text)
modules/async_worker.py:216
↓ 29 callersMethodsigma
(self, t)
ldm_patched/k_diffusion/sampling.py:331
↓ 28 callersFunctionload_file_from_url
Download a file from `url` into `model_dir`, using the file present if possible. Returns the path to the downloaded file.
modules/model_loader.py:6
↓ 26 callersFunction_n2p
(w, t=True)
extras/BLIP/models/vit.py:210
↓ 25 callersFunctionconv
(n_in, n_out, **kwargs)
ldm_patched/taesd/taesd.py:12
↓ 21 callersMethodt
(self, sigma)
ldm_patched/k_diffusion/sampling.py:328
↓ 20 callersFunctioncallback
(step, x0, x, total_steps)
ldm_patched/utils/latent_visualization.py:88
↓ 19 callersMethodconv_nd
(s, dims, *args, **kwargs)
ldm_patched/modules/ops.py:91
↓ 18 callersFunctionexpand_dims
Expand the tensor `v` to the dim `dims`. Args: `v`: a PyTorch tensor with shape [N]. `dim`: a `int`. Returns: a
ldm_patched/unipc/uni_pc.py:823
↓ 17 callersFunctionto_d
Converts a denoiser output to a Karras ODE derivative.
ldm_patched/k_diffusion/sampling.py:45
↓ 16 callersMethodstate_dict
Returns the state of the class as a :class:`dict`.
ldm_patched/k_diffusion/utils.py:113
↓ 15 callersFunctiontrunc_normal_
r"""Fills the input Tensor with values drawn from a truncated normal distribution. The values are effectively drawn from the normal distributi
ldm_patched/pfn/architecture/timm/weight_init.py:46
↓ 14 callersFunctionget_dir_or_set_default
(key, default_value, as_array=False, make_directory=False)
modules/config.py:146
↓ 13 callersMethod__init__
(self, num_feat, compress_ratio=3, squeeze_factor=30)
ldm_patched/pfn/architecture/HAT.py:67
↓ 13 callersMethod__init__
(self, config, layer_num)
extras/BLIP/models/med.py:321
↓ 13 callersFunctionconv_dw
(inp, oup, stride, leaky=0.1)
extras/facexlib/detection/retinaface_net.py:25
↓ 13 callersFunctionget_torch_device
()
ldm_patched/modules/model_management.py:76
↓ 12 callersMethod__init__
( self, in_channels, nf, out_channels, ch_mult, num_res_blocks
ldm_patched/pfn/architecture/face/codeformer.py:212
↓ 12 callersMethod__init__
( self, in_channels, num_style_feat, upsample=True, resample_kernel=(1, 3, 3, 1) )
ldm_patched/pfn/architecture/face/stylegan2_arch.py:395
↓ 12 callersMethod__init__
( self, dim, dim_head=32, dropout=0.0, window_size=7, with_pe=
ldm_patched/pfn/architecture/OmniSR/OSA.py:198
↓ 12 callersMethod__init__
(self, config, layer_num)
extras/BLIP/models/nlvr_encoder.py:357
↓ 12 callersFunctionget_file_from_folder_list
(name, folders)
modules/util.py:372
↓ 12 callersFunctionis_intel_xpu
()
ldm_patched/modules/model_management.py:68
↓ 11 callersMethod__init__
( self, in_features, hidden_features=None, out_features=None, act_laye
ldm_patched/pfn/architecture/Swin2SR.py:24
↓ 11 callersMethodmarginal_std
(self, t)
ldm_patched/unipc/uni_pc.py:844
↓ 10 callersMethod__init__
(self, state_dict)
ldm_patched/pfn/architecture/DAT.py:920
↓ 10 callersMethod__init__
( self, in_features, hidden_features=None, out_features=None, act_laye
ldm_patched/pfn/architecture/SwinIR.py:22
↓ 10 callersFunctionget_models_from_cond
(cond, model_type)
ldm_patched/modules/sample.py:36
↓ 10 callersFunctionreplace_config
(old_key, new_key)
modules/config.py:61
↓ 10 callersFunctionyield_result
(async_task, imgs, progressbar_index, black_out_nsfw, censor=True, do_not_show_finished_images=False)
modules/async_worker.py:220
↓ 9 callersFunctionHWC3
(x)
modules/util.py:133
↓ 9 callersMethod__init__
(self, embed_dim, intermediate_size, activation, dtype, device, operations)
ldm_patched/modules/clip_model.py:28
↓ 9 callersMethod__init__
( self, in_channels, num_style_feat, upsample=True, interpolation_mode="bilinear" )
ldm_patched/pfn/architecture/face/stylegan2_bilinear_arch.py:249
↓ 9 callersMethodadd_patches
(self, patches, strength_patch=1.0, strength_model=1.0)
ldm_patched/modules/sd.py:112
↓ 9 callersFunctionconv_block
Conv layer with padding, normalization, activation mode: CNA --> Conv -> Norm -> Act NAC --> Norm -> Act --> Conv (Identity Mappings
ldm_patched/pfn/architecture/block.py:157
↓ 9 callersFunctioncreate_vit
(vit, image_size, use_grad_checkpointing=False, ckpt_layer=0, drop_path_rate=0)
extras/BLIP/models/blip.py:195
↓ 9 callersFunctionget_str
(key: str, fallback: str | None, source_dict: dict, results: list, default=None)
modules/meta_parser.py:75
↓ 9 callersMethodsave
(self, samples, filename_prefix="ldm_patched", prompt=None, extra_pnginfo=None)
ldm_patched/contrib/external.py:437
↓ 9 callersMethodupdate
(self, value)
ldm_patched/modules/utils.py:460
↓ 9 callersMethodvalues
(cls)
modules/flags.py:171
↓ 9 callersFunctionwebpath
(fn)
modules/ui_gradio_extensions.py:16
↓ 8 callersMethod__init__
( self, in_channels, out_channels, kernel_size, ratio_gin, rat
ldm_patched/pfn/architecture/LaMa.py:283
↓ 8 callersMethod__init__
(self, in_channels, with_conv)
ldm_patched/pfn/architecture/face/restoreformer_arch.py:127
↓ 8 callersFunctiondefault_noise_sampler
(x)
ldm_patched/k_diffusion/sampling.py:60
↓ 8 callersMethodeps
(self, eps_cache, key, x, t, *args, **kwargs)
ldm_patched/k_diffusion/sampling.py:334
↓ 8 callersFunctionexists
(x)
ldm_patched/ldm/util.py:47
↓ 8 callersMethodmarginal_lambda
Compute lambda_t = log(alpha_t) - log(sigma_t) of a given continuous-time label t in [0, T].
ldm_patched/unipc/uni_pc.py:847
↓ 8 callersMethodmarginal_log_mean_coeff
(self, sigma)
ldm_patched/unipc/uni_pc.py:838
↓ 8 callersMethodtokenize
(self, text, return_word_ids=False)
ldm_patched/modules/sd.py:118
↓ 7 callersFunctionNormalize
(in_channels)
ldm_patched/pfn/architecture/face/restoreformer_arch.py:120
↓ 7 callersMethod__init__
(self, channels=[320, 640, 1280, 1280], nums_rb=3, cin=64, ksize=3, sk=False, use_conv=True, xl=True)
ldm_patched/t2ia/adapter.py:104
↓ 7 callersFunctionconcat_all_gather
Performs all_gather operation on the provided tensors. *** Warning ***: torch.distributed.all_gather has no gradient.
extras/BLIP/models/blip_retrieval.py:274
↓ 7 callersMethodencode
(self, vae, pixels)
ldm_patched/contrib/external.py:304
↓ 7 callersMethodencode
(self, pixel_samples)
ldm_patched/modules/sd.py:254
↓ 7 callersMethodencode_from_tokens
(self, tokens, return_pooled=False)
ldm_patched/modules/sd.py:121
↓ 7 callersFunctionforward_timestep_embed
(ts, x, emb, context=None, transformer_options={}, output_shape=None, time_context=None, num_video_frames=None
ldm_patched/ldm/modules/diffusionmodules/openaimodel.py:32
↓ 7 callersFunctionget_ancestral_step
Calculates the noise level (sigma_down) to step down to and the amount of noise to add (sigma_up) when doing an ancestral sampling step.
ldm_patched/k_diffusion/sampling.py:50
↓ 7 callersFunctioninit_tokenizer
()
extras/BLIP/models/blip.py:186
↓ 7 callersMethodmodel_fn
Convert the model to the noise prediction model or the data prediction model.
ldm_patched/unipc/uni_pc.py:416
↓ 7 callersMethodset_model_patch
(self, patch, name)
ldm_patched/modules/model_patcher.py:70
↓ 7 callersMethodtransform
(self, x)
ldm_patched/pfn/architecture/LaMa.py:39
↓ 7 callersMethodtranspose_for_scores
(self, x)
extras/BLIP/models/nlvr_encoder.py:128
↓ 7 callersMethodtranspose_for_scores
(self, x)
extras/BLIP/models/med.py:138
↓ 6 callersFunctionFourier_filter
(x, threshold, scale)
ldm_patched/contrib/external_freelunch.py:8
↓ 6 callersFunctionNormalize
(in_channels, num_groups=32)
ldm_patched/ldm/modules/diffusionmodules/model.py:43
↓ 6 callersMethod__init__
(self, model_config, model_type=ModelType.EPS, device=None)
ldm_patched/modules/model_base.py:292
↓ 6 callersMethod__init__
(self, dim_in, dim_out)
ldm_patched/modules/gligen.py:23
↓ 6 callersMethod__init__
(self, *, ch, out_ch, ch_mult=(1,2,4,8), num_res_blocks, attn_resolutions, dropout=0.0, resam
ldm_patched/ldm/modules/diffusionmodules/model.py:299
↓ 6 callersFunctionapply_control
(h, control, name)
ldm_patched/ldm/modules/diffusionmodules/openaimodel.py:355
↓ 6 callersFunctionapply_overrides
(async_task, steps, height, width)
modules/async_worker.py:629
↓ 6 callersFunctionclip_separate
(cond, target_model=None, target_clip=None)
modules/sample_hijack.py:54
↓ 6 callersFunctioncount_blocks
(state_dict_keys, prefix_string)
ldm_patched/modules/model_detection.py:4
↓ 6 callersMethoddecode
(self, samples_in)
ldm_patched/modules/sd.py:230
↓ 6 callersFunctionencode_model_conds
(model_function, conds, noise, device, prompt_type, **kwargs)
ldm_patched/modules/samplers.py:485
↓ 6 callersMethodflip
(self, samples, flip_method)
ldm_patched/contrib/external.py:1172
↓ 6 callersMethodflops
(self)
ldm_patched/pfn/architecture/SwinIR.py:642
↓ 6 callersMethodflops
(self)
ldm_patched/pfn/architecture/Swin2SR.py:736
↓ 6 callersMethodforward_features
(self, x)
ldm_patched/pfn/architecture/Swin2SR.py:1253
↓ 6 callersFunctiongetTranslation
(text)
javascript/localization.js:25
↓ 6 callersMethodget_dtype
(self)
ldm_patched/modules/model_base.py:88
↓ 6 callersFunctionget_free_memory
(dev=None, torch_free_too=False)
ldm_patched/modules/model_management.py:652
↓ 6 callersFunctionget_number
(key: str, fallback: str | None, source_dict: dict, results: list, default=None, cast_type=float)
modules/meta_parser.py:96
↓ 6 callersFunctionisModifierKey
(event, key)
javascript/zoom.js:10
↓ 6 callersMethodmarginal_alpha
(self, t)
ldm_patched/unipc/uni_pc.py:841
↓ 6 callersFunctionnonlinearity
(x)
ldm_patched/pfn/architecture/face/restoreformer_arch.py:115
↓ 6 callersFunctionnormalize
(in_channels)
ldm_patched/pfn/architecture/face/codeformer.py:535
↓ 6 callersFunctionresetZoom
()
javascript/zoom.js:150
↓ 6 callersFunctionsafe_str
(x)
extras/expansion.py:24
next →1–100 of 2,411, ranked by callers