MCPcopy Create free account

hub / github.com/lllyasviel/Fooocus / functions

Functions2,411 in github.com/lllyasviel/Fooocus

↓ 2 callersFunctiondefault_init_weights
Initialize network weights. Args: module_list (list[nn.Module] | nn.Module): Modules to be initialized. scale (float): Scale initi
ldm_patched/pfn/architecture/face/stylegan2_clean_arch.py:13
↓ 2 callersMethoddpm_solver_1_step
(self, x, t, t_next, eps_cache=None)
ldm_patched/k_diffusion/sampling.py:343
↓ 2 callersMethoddpm_solver_3_step
(self, x, t, t_next, r1=1 / 3, r2=2 / 3, eps_cache=None)
ldm_patched/k_diffusion/sampling.py:360
↓ 2 callersFunctionelem
(comp)
javascript/localization.js:95
↓ 2 callersFunctionembedder
(number_list)
modules/patch.py:280
↓ 2 callersMethodencode_tiled_
(self, pixel_samples, tile_x=512, tile_y=512, overlap = 64)
ldm_patched/modules/sd.py:217
↓ 2 callersFunctionenhance_upscale
(all_steps, async_task, base_progress, callback, controlnet_canny_path, controlnet_cpds_path,
modules/async_worker.py:1031
↓ 2 callersFunctionerode_or_dilate
(x, k)
modules/util.py:31
↓ 2 callersFunctionextract_into_tensor
(a, t, x_shape)
ldm_patched/ldm/modules/diffusionmodules/util.py:169
↓ 2 callersMethodforward_features
(self, x)
ldm_patched/pfn/architecture/DAT.py:1151
↓ 2 callersMethodfreeze
(self)
ldm_patched/modules/sd1_clip.py:100
↓ 2 callersFunctiongaussian_kernel
(kernel_size: int, sigma: float, device=None)
ldm_patched/contrib/external_post_processing.py:68
↓ 2 callersFunctiongenerate_bilinear_data
(length_old, length_new, device)
ldm_patched/modules/utils.py:330
↓ 2 callersFunctiongenerate_temp_filename
(folder='./outputs/', extension='png')
modules/util.py:168
↓ 2 callersFunctionget_additional_models
loads additional models in positive and negative conditioning
ldm_patched/modules/sample.py:55
↓ 2 callersFunctionget_area_and_mult
(conds, x_in, timestep_in)
ldm_patched/modules/samplers.py:8
↓ 2 callersFunctionget_config_path
(key, default_value)
modules/config.py:16
↓ 2 callersMethodget_control
(self, x_noisy, t, cond, batched_number)
ldm_patched/modules/controlnet.py:144
↓ 2 callersFunctionget_enabled_loras
(loras: list, remove_none=True)
modules/util.py:384
↓ 2 callersFunctionget_exif
(metadata: str | None, metadata_scheme: str)
modules/meta_parser.py:641
↓ 2 callersFunctionget_gaussian_kernel1d
( kernel_size: int, sigma: float | Tensor, force_even: bool = False, *, device: Device | N
modules/anisotropic.py:43
↓ 2 callersFunctionget_image_shape_ceil
(im)
modules/util.py:108
↓ 2 callersFunctionget_largest_face
(det_faces, h, w)
extras/facexlib/utils/face_restoration_helper.py:12
↓ 2 callersMethodget_model
(self, state_dict, prefix="", device=None)
ldm_patched/modules/supported_models.py:172
↓ 2 callersFunctionget_model_input_time
Convert the continuous-time `t_continuous` (in [epsilon, T]) to the model input time. For discrete-time DPMs, we convert `t_continuou
ldm_patched/unipc/uni_pc.py:282
↓ 2 callersFunctionget_obj_from_str
(string, reload=False)
ldm_patched/ldm/util.py:82
↓ 2 callersFunctionget_output_directory
()
ldm_patched/utils/path_utils.py:61
↓ 2 callersFunctionget_reference_facial_points
Function: ---------- get reference 5 key points according to crop settings: 0. Set default crop_size: if default_
extras/facexlib/detection/align_trans.py:19
↓ 2 callersMethodget_sigmas
(self, sigmas)
ldm_patched/contrib/external_custom_sampler.py:163
↓ 2 callersFunctionget_sigmas_karras
Constructs the noise schedule of Karras et al. (2022).
ldm_patched/k_diffusion/sampling.py:16
↓ 2 callersFunctionget_similarity_transform
Function: ---------- Find Similarity Transform Matrix 'trans': u = src_pts[:, 0] v = src_pts[:, 1]
extras/facexlib/detection/matlab_cp2tform.py:130
↓ 2 callersFunctionget_temp_directory
()
ldm_patched/utils/path_utils.py:65
↓ 2 callersMethodget_time_steps
Compute the intermediate time steps for sampling.
ldm_patched/unipc/uni_pc.py:425
↓ 2 callersFunctionimwrite
Write image to file. Args: img (ndarray): Image array to be written. file_path (str): Image file path. params (None or li
extras/facexlib/utils/misc.py:11
↓ 2 callersMethodinference_memory_requirements
(self, dtype)
ldm_patched/modules/controlnet.py:81
↓ 2 callersMethodinit
(self)
extras/censor.py:24
↓ 2 callersFunctioninit_detection_model
(model_name, half=False, device='cuda', model_rootpath=None)
extras/facexlib/detection/__init__.py:8
↓ 2 callersMethodinpaint_model
(self)
ldm_patched/modules/supported_models_base.py:37
↓ 2 callersFunctioninterpolate_fn
A piecewise linear function y = f(x), using xp and yp as keypoints. We implement f(x) in a differentiable way (i.e. applicable for autograd).
ldm_patched/unipc/uni_pc.py:781
↓ 2 callersMethodinverse_transform
(self, y_padded_rotated, orig_x)
ldm_patched/pfn/architecture/LaMa.py:49
↓ 2 callersFunctionis_device_mps
(device)
ldm_patched/modules/model_management.py:698
↓ 2 callersFunctionis_url
(url_or_filename)
extras/BLIP/models/blip.py:212
↓ 2 callersFunctionksampler
(sampler_name, extra_options={}, inpaint_options={})
ldm_patched/modules/samplers.py:561
↓ 2 callersMethodlist
(cls)
modules/flags.py:167
↓ 2 callersMethodload_clip
(self, clip_name)
ldm_patched/contrib/external.py:845
↓ 2 callersFunctionload_clipvision_from_sd
(sd, prefix="", convert_keys=False)
ldm_patched/modules/clip_vision.py:87
↓ 2 callersFunctionload_custom_node
(module_path, ignore=set())
ldm_patched/contrib/external.py:1859
↓ 2 callersFunctionload_embed
(embedding_name, embedding_directory, embedding_size, embed_key=None)
ldm_patched/modules/sd1_clip.py:284
↓ 2 callersFunctionload_file_from_url
Ref:https://github.com/1adrianb/face-alignment/blob/master/face_alignment/utils.py
extras/facexlib/utils/misc.py:59
↓ 2 callersMethodload_lora
(self, model, clip, lora_name, strength_model, strength_clip)
ldm_patched/contrib/external.py:612
↓ 2 callersFunctionload_model_weights
(model, sd)
ldm_patched/modules/sd.py:25
↓ 2 callersMethodload_sd
(self, sd)
ldm_patched/modules/sdxl_clip.py:15
↓ 2 callersMethodlora_filename
(self)
modules/flags.py:190
↓ 2 callersFunctionmakedirs_with_log
(path)
modules/extra_utils.py:5
↓ 2 callersFunctionmatch_lora
(lora, to_load)
modules/lora.py:1
↓ 2 callersFunctionminimum_inference_memory
()
ldm_patched/modules/model_management.py:344
↓ 2 callersFunctionmodalImageSwitch
(offset)
javascript/imageviewer.js:59
↓ 2 callersFunctionmodalZoomSet
(modalImage, enable)
javascript/imageviewer.js:154
↓ 2 callersFunctionmodel_config_from_unet_config
(unet_config)
ldm_patched/modules/model_detection.py:154
↓ 2 callersMethodmodel_memory_required
(self, device)
ldm_patched/modules/model_management.py:285
↓ 2 callersMethodmodel_size
(self)
ldm_patched/modules/model_patcher.py:27
↓ 2 callersMethodmodel_type
(self, state_dict, prefix="")
ldm_patched/modules/supported_models_base.py:34
↓ 2 callersFunctionmodule_size
(module)
ldm_patched/modules/model_management.py:268
↓ 2 callersMethodmultistep_uni_pc_update
(self, x, model_prev_list, t_prev_list, t, order, **kwargs)
ldm_patched/unipc/uni_pc.py:479
↓ 2 callersMethodnoise_prediction_fn
Return the noise prediction model.
ldm_patched/unipc/uni_pc.py:390
↓ 2 callersFunctionnorm255
(x, low=4, high=96)
extras/preprocessors.py:43
↓ 2 callersFunctionnorm_cdf
(x)
ldm_patched/pfn/architecture/timm/weight_init.py:11
↓ 2 callersFunctionobjects_concatable
(obj1, obj2)
ldm_patched/modules/samplers.py:93
↓ 2 callersMethodop
(self, samples1, samples2)
ldm_patched/contrib/external_latent.py:22
↓ 2 callersFunctionpatch_discrete
(unet, scheduler_name)
modules/async_worker.py:767
↓ 2 callersFunctionpatch_edm
(unet, scheduler_name)
modules/async_worker.py:770
↓ 2 callersMethodpatch_model
(self, device_to=None, patch_weights=True)
ldm_patched/modules/model_patcher.py:177
↓ 2 callersFunctionpatch_samplers
(async_task)
modules/async_worker.py:773
↓ 2 callersFunctionperform_upscale
(img)
modules/upscaler.py:13
↓ 2 callersFunctionpre_run_control
(model, conds)
ldm_patched/modules/samplers.py:439
↓ 2 callersMethodpredict_torch
Predict masks for the given input prompts, using the currently set image. Input prompts are batched torch tensors and are expected to
extras/sam/predictor.py:181
↓ 2 callersFunctionprepare_enhance_prompt
(prompt: str, fallback_prompt: str)
modules/async_worker.py:954
↓ 2 callersFunctionprepare_sampling
(model, noise_shape, positive, negative, noise_mask)
ldm_patched/modules/sample.py:76
↓ 2 callersFunctionprepare_upscale
(async_task, goals, uov_input_image, uov_method, performance, steps, current_progress,
modules/async_worker.py:935
↓ 2 callersFunctionprocessTextNode
(node)
javascript/localization.js:40
↓ 2 callersFunctionprocess_enhance
(all_steps, async_task, callback, controlnet_canny_path, controlnet_cpds_path, current
modules/async_worker.py:965
↓ 2 callersFunctionprocess_prompt
(async_task, prompt, negative_prompt, base_model_additional_loras, image_number, disable_seed_increment, use_e
modules/async_worker.py:641
↓ 2 callersFunctionprocess_task
(all_steps, async_task, callback, controlnet_canny_path, controlnet_cpds_path, current_task_id,
modules/async_worker.py:280
↓ 2 callersFunctionpy_cpu_nms
Pure Python NMS baseline.
extras/facexlib/detection/retinaface_utils.py:39
↓ 2 callersMethodq_sample
(self, x_start, t, noise=None, seed=None)
ldm_patched/ldm/modules/diffusionmodules/upscaling.py:44
↓ 2 callersFunctionrandom_divisor
(value: int, min_value: int, /, max_options: int = 1)
ldm_patched/contrib/external_hypertile.py:10
↓ 2 callersFunctionrefresh_base_model
(name, vae_name=None)
modules/default_pipeline.py:62
↓ 2 callersFunctionrefresh_grid
()
javascript/viewer.js:3
↓ 2 callersMethodrefresh_loras
(self, loras)
modules/core.py:62
↓ 2 callersFunctionregulate_abcd
(x, a, b, c, d)
modules/inpaint_worker.py:64
↓ 2 callersMethodreset_clip_layer
(self)
ldm_patched/modules/sd1_clip.py:113
↓ 2 callersMethodreset_image
Resets the currently set image.
extras/sam/predictor.py:281
↓ 2 callersFunctionresized
()
javascript/viewer.js:22
↓ 2 callersFunctionround_to_64
(x)
modules/patch.py:256
↓ 2 callersFunctionrun
(command, desc=None, errdesc=None, custom_env=None, live: bool = default_command_live)
modules/launch_util.py:35
↓ 2 callersMethodsample
(self, model_wrap, sigmas, extra_args, callback, noise, latent_image=None, denoise_mask=None, disable_pbar=Fal
ldm_patched/modules/samplers.py:517
↓ 2 callersFunctionsave_cache_to_file
(filename=None, hash_value=None)
modules/hash_cache.py:42
↓ 2 callersMethodscale
(self, x)
ldm_patched/ldm/modules/encoders/noise_aug_modules.py:16
↓ 2 callersFunctionsdxl_pooled
(args, noise_augmentor)
ldm_patched/modules/model_base.py:258
↓ 2 callersFunctionselectCurrentParenthesisBlock
(OPEN, CLOSE)
javascript/edit-attention.js:20
← previousnext →301–400 of 2,411, ranked by callers