MCPcopy Create free account

hub / github.com/lllyasviel/Fooocus / functions

Functions2,411 in github.com/lllyasviel/Fooocus

↓ 2 callersFunctionselected_gallery_button
()
javascript/imageviewer.js:51
↓ 2 callersMethodset_alphas_cumprod
(self, alphas_cumprod)
ldm_patched/modules/model_sampling.py:81
↓ 2 callersMethodset_cond_hint
(self, cond_hint, strength=1.0, timestep_percent_range=(0.0, 1.0))
ldm_patched/modules/controlnet.py:46
↓ 2 callersMethodset_input_embeddings
(self, embeddings)
ldm_patched/modules/clip_model.py:127
↓ 2 callersMethodset_manual_cast
(self, manual_cast_dtype)
ldm_patched/modules/supported_models_base.py:82
↓ 2 callersMethodset_model_attn1_output_patch
(self, patch)
ldm_patched/modules/model_patcher.py:100
↓ 2 callersMethodset_model_input_block_patch
(self, patch)
ldm_patched/modules/model_patcher.py:106
↓ 2 callersMethodset_model_patch_replace
(self, patch, name, block_name, number, transformer_index=None)
ldm_patched/modules/model_patcher.py:76
↓ 2 callersMethodset_parameters
(self, shift=1.0, cosine_s=8e-3)
ldm_patched/modules/model_sampling.py:169
↓ 2 callersMethodset_previous_controlnet
(self, controlnet)
ldm_patched/modules/controlnet.py:57
↓ 2 callersMethodset_up_textual_embeddings
(self, tokens, current_embeds)
ldm_patched/modules/sd1_clip.py:117
↓ 2 callersMethodsigma
(self, timestep)
ldm_patched/modules/model_sampling.py:97
↓ 2 callersMethodsigma
(self, timestep)
ldm_patched/modules/model_sampling.py:183
↓ 2 callersFunctionsimple_scheduler
(model, steps)
ldm_patched/modules/samplers.py:286
↓ 2 callersFunctionslerp
slerps batches b1, b2 according to ratio r, batches should be flat e.g. NxC
ldm_patched/modules/utils.py:299
↓ 2 callersFunctionsoft_empty_cache
(force=False)
ldm_patched/modules/model_management.py:762
↓ 2 callersFunctionsplit
(x)
ldm_patched/contrib/external_tomesd.py:79
↓ 2 callersMethodsteps
(self)
modules/flags.py:184
↓ 2 callersMethodsteps_uov
(self)
modules/flags.py:187
↓ 2 callersFunctionstop_processing
(async_task, processing_start_time)
modules/async_worker.py:960
↓ 2 callersFunctionswish
(x)
ldm_patched/pfn/architecture/face/codeformer.py:542
↓ 2 callersFunctiontile
(x, dim, n_tile)
extras/BLIP/models/blip_vqa.py:178
↓ 2 callersFunctiontimed_adm
(y, timesteps)
modules/patch.py:330
↓ 2 callersMethodtokenize_with_weights
Takes a prompt and converts it to a list of (token, weight, word id) elements. Tokens can both be integer tokens and pre computed CLI
ldm_patched/modules/sd1_clip.py:397
↓ 2 callersFunctionunclip_adm
(unclip_conditioning, device, noise_augmentor, noise_augment_merge=0.0, seed=None)
ldm_patched/modules/model_base.py:221
↓ 2 callersMethodunpatch_model
(self, device_to=None)
ldm_patched/modules/model_patcher.py:337
↓ 2 callersFunctionunwrap_style_text_from_prompt
Checks the prompt to see if the style text is wrapped around it. If so, returns True plus the prompt text without the style text. Otherwise,
modules/util.py:233
↓ 2 callersMethodupdate_absolute
(self, value, total=None, preview=None)
ldm_patched/modules/utils.py:451
↓ 2 callersMethodvae_encode_crop_pixels
(pixels)
ldm_patched/contrib/external.py:295
↓ 2 callersFunctionwindow_partition
Args: x: (B, H, W, C) window_size (int): window size Returns: windows: (num_windows*B, window_size, window_size, C)
ldm_patched/pfn/architecture/SwinIR.py:47
↓ 2 callersFunctionwindow_partition
Args: x: (B, H, W, C) window_size (int): window size Returns: windows: (num_windows*B, window_size, window_size, C)
ldm_patched/pfn/architecture/Swin2SR.py:49
↓ 2 callersFunctionwindow_reverse
Args: windows: (num_windows*b, window_size, window_size, c) window_size (int): Window size h (int): Height of image
ldm_patched/pfn/architecture/HAT.py:123
↓ 2 callersFunctionwrap_model
(model)
ldm_patched/modules/samplers.py:582
↓ 1 callersFunctionDecoder
()
ldm_patched/taesd/taesd.py:37
↓ 1 callersFunctionEncoder
()
ldm_patched/taesd/taesd.py:28
↓ 1 callersFunctionFeedForward
(dim, mult=4)
extras/resampler.py:9
↓ 1 callersFunctionMBConv
( dim_in, dim_out, *, downsample, expansion_rate=4, shrinkage_rate=0.25, dropout=0.0 )
ldm_patched/pfn/architecture/OmniSR/OSA.py:170
↓ 1 callersMethod__align_multi
(self, image, boxes, landmarks, limit=None)
extras/facexlib/detection/retinaface.py:235
↓ 1 callersMethod__init__
(self)
modules/core.py:197
↓ 1 callersMethod__init__
(self, version="openai/clip-vit-large-patch14", device="cpu", max_length=77, freeze=True, lay
ldm_patched/modules/sd1_clip.py:68
↓ 1 callersMethod__init__
( self, state_dict, norm=None, act: str = "leakyrelu", upsampler: str
ldm_patched/pfn/architecture/SPSR.py:39
↓ 1 callersMethod__init__
(self, drop_prob: float = 0.0, scale_by_keep: bool = True)
ldm_patched/pfn/architecture/timm/drop.py:214
↓ 1 callersMethod__init__
( self, out_size, num_style_feat=512, channel_multiplier=1, decoder_lo
ldm_patched/pfn/architecture/face/gfpgan_bilinear_arch.py:171
↓ 1 callersMethod__init__
(self, dim)
ldm_patched/pfn/architecture/OmniSR/layernorm.py:62
↓ 1 callersMethod__init__
( self, alpha: float, merge_strategy: str = "learned_with_images", rearrange_p
ldm_patched/ldm/modules/diffusionmodules/util.py:23
↓ 1 callersMethod__init__
(self, n_in, n_out)
ldm_patched/taesd/taesd.py:20
↓ 1 callersMethod__init__
( self, dim=1024, depth=8, dim_head=64, heads=16, num_queries=
extras/resampler.py:79
↓ 1 callersMethod__init__
(self)
extras/facexlib/parsing/resnet.py:50
↓ 1 callersMethod__init__
Args: med_config (str): path for the mixture of encoder-decoder model's configuration file image_size (int): input im
extras/BLIP/models/blip.py:24
↓ 1 callersFunction_compute_zero_padding
(kernel_size: tuple[int, int] | int)
modules/anisotropic.py:10
↓ 1 callersMethod_dequeue_and_enqueue
(self, image_feat, text_feat, idxs)
extras/BLIP/models/blip_retrieval.py:244
↓ 1 callersMethod_dequeue_and_enqueue
(self, image_feat, text_feat)
extras/BLIP/models/blip_pretrain.py:232
↓ 1 callersFunction_get_activation_fn
Return an activation function given a string
ldm_patched/pfn/architecture/face/codeformer.py:481
↓ 1 callersMethod_get_closed_form_lr
(self)
ldm_patched/k_diffusion/utils.py:170
↓ 1 callersMethod_get_closed_form_lr
(self)
ldm_patched/k_diffusion/utils.py:211
↓ 1 callersFunction_load_weights
Load weights from .npz checkpoints for official Google Brain Flax implementation
extras/BLIP/models/vit.py:205
↓ 1 callersMethod_momentum_update
(self)
extras/BLIP/models/blip_retrieval.py:237
↓ 1 callersMethod_momentum_update
(self)
extras/BLIP/models/blip_pretrain.py:225
↓ 1 callersMethod_register_schedule
(self, given_betas=None, beta_schedule="linear", timesteps=1000, linear_start=1e-4,
ldm_patched/modules/model_sampling.py:54
↓ 1 callersFunction_scandir
(dir_path, suffix, recursive)
extras/facexlib/utils/misc.py:100
↓ 1 callersMethod_segment_by_slic
Helper method that segments an image into superpixels using slic. Parameters: x: base64 representation of an image
modules/gradio_hijack.py:343
↓ 1 callersMethod_try_get_embedding
Takes a potential embedding name and tries to retrieve it. Returns a Tuple consisting of the embedding and any leftover string, embed
ldm_patched/modules/sd1_clip.py:383
↓ 1 callersFunctionadaptive_instance_normalization
Adaptive instance normalization. Adjust the reference features to have the similar color and illuminations as those in the degradate features.
ldm_patched/pfn/architecture/face/codeformer.py:417
↓ 1 callersFunctionaddContextMenuEventListener
()
javascript/contextMenus.js:95
↓ 1 callersFunctionaddObserverIfDesiredNodeAvailable
(querySelector, callback)
javascript/script.js:136
↓ 1 callersFunctionaddnet_hash_safetensors
kohya-ss hash for safetensors from https://github.com/kohya-ss/sd-scripts/blob/main/library/train_util.py
modules/util.py:188
↓ 1 callersFunctionadjustBrushSize
( elemId, deltaY, withoutValue = false, percentage = 5
javascript/zoom.js:207
↓ 1 callersFunctionalign_crop_face_landmarks
Align and crop face with landmarks. The output_size and transform_size are based on width. The height is adjusted based on shrink_ratio_h/shr
extras/facexlib/utils/face_utils.py:31
↓ 1 callersFunctionalign_warp_face
(self, landmark, border_mode='constant')
extras/face_crop.py:9
↓ 1 callersFunctionall_gather_with_grad
Performs all_gather operation on the provided tensors. Graph remains connected for backward grad computation.
extras/BLIP/models/blip_retrieval.py:306
↓ 1 callersFunctionappendContextMenuOption
(targetElementSelector, entryName, entryFunction)
javascript/contextMenus.js:62
↓ 1 callersFunctionapply_arrays
(text, index)
modules/sdxl_styles.py:77
↓ 1 callersFunctionapply_control_nets
(async_task, height, ip_adapter_face_path, ip_adapter_path, width, current_progress)
modules/async_worker.py:396
↓ 1 callersFunctionapply_image_input
(async_task, base_model_additional_loras, clip_vision_path, controlnet_canny_path, c
modules/async_worker.py:852
↓ 1 callersFunctionapply_outpaint
(async_task, inpaint_image, inpaint_mask)
modules/async_worker.py:545
↓ 1 callersFunctionapply_patch_settings
(async_task)
modules/async_worker.py:327
↓ 1 callersFunctionapply_style
(style, positive)
modules/sdxl_styles.py:60
↓ 1 callersFunctionattention_basic_with_sim
(q, k, v, heads, mask=None)
ldm_patched/contrib/external_sag.py:15
↓ 1 callersFunctionattention_pytorch
(q, k, v, heads, mask=None)
ldm_patched/ldm/modules/attention.py:317
↓ 1 callersFunctionauth_list_to_dict
(auth_list)
modules/auth.py:8
↓ 1 callersFunctionavg_pool_nd
Create a 1D, 2D, or 3D average pooling module.
ldm_patched/t2ia/adapter.py:20
↓ 1 callersFunctionavg_pool_nd
Create a 1D, 2D, or 3D average pooling module.
ldm_patched/ldm/modules/diffusionmodules/util.py:275
↓ 1 callersFunctionbatched_decode
Decode locations from predictions using priors to undo the encoding we did for offset regression at train time. Args: b_loc (tensor):
extras/facexlib/detection/retinaface_utils.py:297
↓ 1 callersFunctionbatched_decode_landm
Decode landm from predictions using priors to undo the encoding we did for offset regression at train time. Args: pre (tensor): landm
extras/facexlib/detection/retinaface_utils.py:320
↓ 1 callersMethodbatched_transform
Arguments: frames: a list of PIL.Image, or torch.Tensor(shape=[n, h, w, c], type=np.float32, BGR format).
extras/facexlib/detection/retinaface.py:261
↓ 1 callersMethodbayer
(im, pal_im, order)
ldm_patched/contrib/external_post_processing.py:143
↓ 1 callersFunctionbetas_for_alpha_bar
Create a beta schedule that discretizes the given alpha_t_bar function, which defines the cumulative product of (1-beta) over time from t = [
ldm_patched/ldm/modules/diffusionmodules/util.py:150
↓ 1 callersFunctionbilateral_blur
( input: Tensor, kernel_size: tuple[int, int] | int = (13, 13), sigma_color: float | Tensor = 3.0,
modules/anisotropic.py:118
↓ 1 callersFunctionbipartite_soft_matching_random2d
Partitions the tokens into src and dst and merges r tokens from src to dst. Dst tokens are partitioned by choosing one randomy in each (sx, s
ldm_patched/contrib/external_tomesd.py:24
↓ 1 callersFunctionbislerp
(samples, width, height)
ldm_patched/modules/utils.py:298
↓ 1 callersMethodblend_mode
(self, img1, img2, mode)
ldm_patched/contrib/external_post_processing.py:49
↓ 1 callersMethodblend_mode
(self, img1, img2, mode)
ldm_patched/contrib/external.py:1258
↓ 1 callersFunctionblip_decoder
(pretrained='',**kwargs)
extras/BLIP/models/blip.py:172
↓ 1 callersMethodblur
(self, image: torch.Tensor, blur_radius: int, sigma: float)
ldm_patched/contrib/external_post_processing.py:103
↓ 1 callersFunctionbox_blur
(x, k)
modules/inpaint_worker.py:26
↓ 1 callersFunctionbuild_image_wall
(async_task)
modules/async_worker.py:236
↓ 1 callersFunctionbuild_launcher
()
build_launcher.py:14
↓ 1 callersMethodby_steps
(cls, steps: int | str)
modules/flags.py:175
↓ 1 callersFunctioncached_filename_list_
(folder_name)
ldm_patched/utils/path_utils.py:196
↓ 1 callersMethodcalculate_denoised
(self, sigma, model_output, model_input)
ldm_patched/modules/model_sampling.py:11
← previousnext →401–500 of 2,411, ranked by callers