MCPcopy Create free account

hub / github.com/lllyasviel/Fooocus / functions

Functions2,411 in github.com/lllyasviel/Fooocus

↓ 3 callersMethodget_input_embeddings
(self)
ldm_patched/modules/clip_model.py:124
↓ 3 callersMethodget_input_embeddings
(self)
extras/BLIP/models/med.py:594
↓ 3 callersFunctionget_model_filenames
(folder_paths, extensions=None, name_filter=None)
modules/config.py:800
↓ 3 callersMethodget_models
(self)
ldm_patched/modules/controlnet.py:184
↓ 3 callersFunctionget_presets
()
modules/config.py:101
↓ 3 callersMethodget_scheme
(self)
modules/meta_parser.py:294
↓ 3 callersFunctionget_shape_ceil
(h, w)
modules/util.py:104
↓ 3 callersMethodim2win
(self, x, H, W)
ldm_patched/pfn/architecture/DAT.py:228
↓ 3 callersFunctioninterpolate_pos_embed
(pos_embed_checkpoint, visual_encoder)
extras/BLIP/models/vit.py:284
↓ 3 callersFunctionis_json
(data: str)
modules/util.py:355
↓ 3 callersFunctionis_nvidia
()
ldm_patched/modules/model_management.py:161
↓ 3 callersMethodload_controlnet
(self, control_net_name)
ldm_patched/contrib/external.py:721
↓ 3 callersMethodload_model_weights
(self, sd, unet_prefix="")
ldm_patched/modules/model_base.py:158
↓ 3 callersFunctionlog
(img, metadata, metadata_parser: MetadataParser | None = None, output_format=None, task=None, persist_image=Tr
modules/private_logger.py:24
↓ 3 callersFunctionmake_beta_schedule
(schedule, n_timestep, linear_start=1e-4, linear_end=2e-2, cosine_s=8e-3)
ldm_patched/ldm/modules/diffusionmodules/util.py:87
↓ 3 callersFunctionmake_resample_kernel
Make resampling kernel for UpFirDn. Args: k (list[int]): A list indicating the 1D resample kernel magnitude. Returns: Tensor
ldm_patched/pfn/architecture/face/stylegan2_arch.py:27
↓ 3 callersMethodmarginal_log_mean_coeff
Compute log(alpha_t) of a given continuous-time label t in [0, T].
ldm_patched/unipc/uni_pc.py:129
↓ 3 callersMethodmatches
(s, unet_config)
ldm_patched/modules/supported_models_base.py:28
↓ 3 callersMethodmax_denoise
(self, model_wrap, sigmas)
ldm_patched/modules/samplers.py:511
↓ 3 callersMethodmemory_required
(self, input_shape)
ldm_patched/modules/model_base.py:207
↓ 3 callersMethodmodel_dtype
(self)
ldm_patched/modules/model_patcher.py:139
↓ 3 callersMethodmodel_patches_to
(self, device)
ldm_patched/modules/model_patcher.py:118
↓ 3 callersMethodmodel_state_dict
(self, filter_prefix=None)
ldm_patched/modules/model_patcher.py:168
↓ 3 callersFunctiononUiLoaded
* Register callback to be called when the UI is loaded. * The callback receives no arguments.
javascript/script.js:60
↓ 3 callersFunctionpad
(pad_type: str, padding)
ldm_patched/pfn/architecture/block.py:52
↓ 3 callersMethodpre_run
(self, model, percent_to_timestep_function)
ldm_patched/modules/controlnet.py:189
↓ 3 callersMethodpreprocess
Parameters: x: base64 url data, or (if tool == "sketch") a dict of image and mask base64 url data Returns: im
modules/gradio_hijack.py:259
↓ 3 callersFunctionprocessNode
(node)
javascript/localization.js:54
↓ 3 callersMethodprocess_latent_out
(self, latent)
ldm_patched/modules/model_base.py:178
↓ 3 callersMethodquantize
(self, image: torch.Tensor, colors: int, dither: str)
ldm_patched/contrib/external_post_processing.py:168
↓ 3 callersMethodreplace_value_with_filename
(key, value, filenames)
modules/meta_parser.py:584
↓ 3 callersFunctionreshape_latent_to
(target_shape, latent)
ldm_patched/contrib/external_latent.py:6
↓ 3 callersFunctionreshape_tensor
(x, heads)
extras/resampler.py:19
↓ 3 callersFunctionresize
(im, w, h)
modules/util.py:62
↓ 3 callersFunctionrun_pip
(command, desc=None, live=default_command_live)
modules/launch_util.py:67
↓ 3 callersMethodsample
(self, x, timesteps, t_start=None, t_end=None, order=3, skip_type='time_uniform', method='singlestep',
ldm_patched/unipc/uni_pc.py:712
↓ 3 callersFunctionset_image_shape_ceil
(im, shape_ceil)
modules/util.py:113
↓ 3 callersMethodset_inpaint
(self)
ldm_patched/modules/model_base.py:204
↓ 3 callersMethodset_model_attn1_patch
(self, patch)
ldm_patched/modules/model_patcher.py:88
↓ 3 callersMethodset_model_output_block_patch
(self, patch)
ldm_patched/modules/model_patcher.py:112
↓ 3 callersFunctionset_model_patch_replace
(model, number, key)
extras/ip_adapter.py:257
↓ 3 callersMethodset_model_sampler_cfg_function
(self, sampler_cfg_function, disable_cfg1_optimization=False)
ldm_patched/modules/model_patcher.py:54
↓ 3 callersFunctionshould_use_fp16
(device=None, model_params=0, prioritize_performance=True)
ldm_patched/modules/model_management.py:704
↓ 3 callersFunctionslice_attention
(q, k, v)
ldm_patched/ldm/modules/diffusionmodules/model.py:160
↓ 3 callersMethodslice_batch
(batch, num, batch_size)
ldm_patched/contrib/external_rebatch.py:47
↓ 3 callersMethodtransform
(self, image, use_origin_size)
extras/facexlib/detection/retinaface.py:165
↓ 3 callersFunctionupfirdn2d
(input, kernel, up=1, down=1, pad=(0, 0))
ldm_patched/pfn/architecture/face/upfirdn2d.py:140
↓ 3 callersFunctionuse_patched_ops
(operations)
modules/ops.py:6
↓ 3 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/HAT.py:107
↓ 2 callersMethod__detect_faces
(self, inputs)
extras/facexlib/detection/retinaface.py:145
↓ 2 callersMethod__init__
(self, in_dim, out_dim, hidden_dim, use_residual=True, operations=ldm_patched.modules.ops)
ldm_patched/contrib/external_photomaker.py:24
↓ 2 callersMethod__init__
(self, model_config=None)
ldm_patched/modules/model_sampling.py:39
↓ 2 callersMethod__init__
(self, sampler_function, extra_options={}, inpaint_options={})
ldm_patched/modules/samplers.py:529
↓ 2 callersMethod__init__
(self, in_channels, out_channels, mode="down")
ldm_patched/pfn/architecture/face/gfpganv1_clean_arch.py:149
↓ 2 callersMethod__init__
(self)
ldm_patched/ldm/modules/diffusionmodules/upscaling.py:62
↓ 2 callersMethod__init__
(self, ch)
extras/vae_interpose.py:17
↓ 2 callersMethod__init__
(self, cross_attention_dim)
extras/ip_adapter.py:40
↓ 2 callersMethod__repr__
(self)
ldm_patched/pfn/architecture/block.py:85
↓ 2 callersFunction_no_grad_trunc_normal_
(tensor, mean, std, a, b)
ldm_patched/pfn/architecture/timm/weight_init.py:8
↓ 2 callersMethod_set_position
(self, boxes, masks, positive_embeddings)
ldm_patched/modules/gligen.py:249
↓ 2 callersFunction_totensor
(img, bgr2rgb, float32)
extras/facexlib/utils/misc.py:43
↓ 2 callersMethodadd_extension_to_filename
(data, filenames, key)
modules/meta_parser.py:527
↓ 2 callersFunctionadd_ratio
(x)
modules/config.py:767
↓ 2 callersFunctionannotated_filepath
(name)
ldm_patched/utils/path_utils.py:87
↓ 2 callersFunctionapplyZoomAndPan
(elemId)
javascript/zoom.js:56
↓ 2 callersMethodapply_controlnet
(self, conditioning, control_net, image, strength)
ldm_patched/contrib/external.py:756
↓ 2 callersFunctionapply_freeu
(async_task)
modules/async_worker.py:757
↓ 2 callersFunctionapply_inpaint
(async_task, initial_latent, inpaint_head_model_path, inpaint_image, inpaint_mask, inpai
modules/async_worker.py:479
↓ 2 callersMethodapply_model
(self, x, timestep, cond, uncond, cond_scale, model_options={}, seed=None)
ldm_patched/modules/samplers.py:267
↓ 2 callersFunctionapply_upscale
(async_task, uov_input_image, uov_method, switch, current_progress, advance_progress=False)
modules/async_worker.py:573
↓ 2 callersFunctionapply_vary
(async_task, uov_method, denoising_strength, uov_input_image, switch, current_progress, advance_progress=False
modules/async_worker.py:447
↓ 2 callersFunctionassert_model_integrity
()
modules/default_pipeline.py:48
↓ 2 callersFunctionbroadcast_image_to
(tensor, target_batch_size, batched_number)
ldm_patched/modules/controlnet.py:14
↓ 2 callersFunctionbuild_loaded
(module, loader_name)
modules/patch.py:454
↓ 2 callersFunctioncalc_mean_std
Calculate mean and std for adaptive_instance_normalization. Args: feat (Tensor): 4D tensor. eps (float): A small value added to th
ldm_patched/pfn/architecture/face/codeformer.py:401
↓ 2 callersMethodcalculate_input
(self, sigma, noise)
ldm_patched/modules/model_sampling.py:7
↓ 2 callersMethodcalculate_mask
(self, H, W)
ldm_patched/pfn/architecture/DAT.py:394
↓ 2 callersMethodcalculate_mask
(self, x_size)
ldm_patched/pfn/architecture/SwinIR.py:290
↓ 2 callersMethodcalculate_mask
(self, x_size)
ldm_patched/pfn/architecture/Swin2SR.py:332
↓ 2 callersFunctioncalculate_sigmas
(sampler, model, scheduler, steps, denoise)
modules/default_pipeline.py:307
↓ 2 callersMethodcalculate_sigmas
(self, steps)
ldm_patched/modules/samplers.py:669
↓ 2 callersFunctioncalculate_sigmas_all
(sampler, model, scheduler, steps)
modules/default_pipeline.py:290
↓ 2 callersFunctioncalculate_sigmas_scheduler
(model, scheduler_name, steps)
ldm_patched/modules/samplers.py:624
↓ 2 callersMethodcalculate_weight
(self, patches, weight, key)
ldm_patched/modules/model_patcher.py:215
↓ 2 callersFunctioncallback
(step, x0, x, total_steps)
modules/core.py:296
↓ 2 callersFunctioncamera_embeddings
(elevation, azimuth)
ldm_patched/contrib/external_stable3d.py:7
↓ 2 callersFunctioncheckpoint
Evaluate a function without caching intermediate activations, allowing for reduced memory at the expense of extra compute in the backward pas
ldm_patched/ldm/modules/diffusionmodules/util.py:175
↓ 2 callersFunctioncheckpoint_wrapper
(x)
extras/BLIP/models/vit.py:22
↓ 2 callersMethodclip_layer
(self, layer_idx)
ldm_patched/modules/sd1_clip.py:106
↓ 2 callersFunctionclip_separate_after_preparation
(cond, target_model=None, target_clip=None)
modules/sample_hijack.py:68
↓ 2 callersFunctionclip_separate_inner
(c, p, target_model=None, target_clip=None)
modules/sample_hijack.py:23
↓ 2 callersFunctioncommon_ksampler
(model, seed, steps, cfg, sampler_name, scheduler, positive, negative, latent, denoise=1.0, disable_noise=Fals
ldm_patched/contrib/external.py:1313
↓ 2 callersFunctioncomposite
(destination, source, x, y, mask = None, multiplier = 8, resize_source = False)
ldm_patched/contrib/external_mask.py:10
↓ 2 callersFunctionconcat_all_gather
Performs all_gather operation on the provided tensors. *** Warning ***: torch.distributed.all_gather has no gradient.
extras/BLIP/models/blip_pretrain.py:256
↓ 2 callersMethodcontrol_merge
(self, control_input, control_output, control_prev, output_dtype)
ldm_patched/modules/controlnet.py:86
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
extras/facexlib/parsing/resnet.py:5
↓ 2 callersFunctionconvert_cond
(cond)
ldm_patched/modules/sample.py:43
↓ 2 callersMethoddata_prediction_fn
Return the data prediction model (with thresholding).
ldm_patched/unipc/uni_pc.py:399
↓ 2 callersFunctionddim_scheduler
(model, steps)
ldm_patched/modules/samplers.py:295
↓ 2 callersMethoddecode_tiled_
(self, samples, tile_x=64, tile_y=64, overlap = 16)
ldm_patched/modules/sd.py:203
← previousnext →201–300 of 2,411, ranked by callers