MCPcopy Create free account

hub / github.com/lllyasviel/Fooocus / functions

Functions2,411 in github.com/lllyasviel/Fooocus

↓ 6 callersFunctionsequential
(*args)
ldm_patched/pfn/architecture/block.py:125
↓ 5 callersMethod__init__
( self, nf, kernel_size=3, gc=32, stride=1, bias: bool = True,
ldm_patched/pfn/architecture/block.py:292
↓ 5 callersMethod__init__
(self, dim_in, dim_out, dtype=None, device=None, operations=ops)
ldm_patched/ldm/modules/attention.py:56
↓ 5 callersMethod__init__
(self, channels, use_conv, dims=2, out_channels=None, padding=1, dtype=None, device=None, operations=ops)
ldm_patched/ldm/modules/diffusionmodules/openaimodel.py:70
↓ 5 callersMethod__init__
(self, in_channel, out_channel)
extras/facexlib/detection/retinaface_net.py:38
↓ 5 callersMethod__init__
(self, num_class)
extras/facexlib/parsing/bisenet.py:112
↓ 5 callersMethodattention
(self, x: torch.Tensor)
ldm_patched/t2ia/adapter.py:187
↓ 5 callersFunctioncast_bias_weight
(s, input)
ldm_patched/modules/ops.py:4
↓ 5 callersFunctioncleanup_additional_models
cleanup additional models that were loaded
ldm_patched/modules/sample.py:70
↓ 5 callersFunctionconv_bn
(inp, oup, stride=1, leaky=0)
extras/facexlib/detection/retinaface_net.py:6
↓ 5 callersFunctiondefault
(val, d)
ldm_patched/ldm/modules/attention.py:37
↓ 5 callersMethodget_key_patches
(self)
ldm_patched/modules/sd.py:147
↓ 5 callersMethodget_sd
(self)
ldm_patched/modules/sd.py:279
↓ 5 callersFunctioninstantiate_from_config
(config)
ldm_patched/ldm/util.py:72
↓ 5 callersFunctionload_checkpoint
(model,url_or_filename)
extras/BLIP/models/blip.py:216
↓ 5 callersFunctionmake_attn
(in_channels, attn_type="vanilla", attn_kwargs=None)
ldm_patched/ldm/modules/diffusionmodules/model.py:294
↓ 5 callersFunctionnorm
(norm_type: str, nc: int)
ldm_patched/pfn/architecture/block.py:38
↓ 5 callersMethodpercent_to_sigma
(self, percent)
ldm_patched/modules/model_sampling.py:105
↓ 5 callersFunctionremove_empty_str
(items, default=None)
modules/util.py:152
↓ 5 callersFunctionresample_image
(im, width, height)
modules/util.py:40
↓ 5 callersMethodset_sigmas
(self, sigmas)
ldm_patched/modules/model_sampling.py:77
↓ 5 callersFunctiontformfwd
Function: ---------- apply affine transform 'trans' to uv Parameters: ---------- @trans: 3x3 np.array tr
extras/facexlib/detection/matlab_cp2tform.py:13
↓ 5 callersMethodtimestep
(self, sigma)
ldm_patched/modules/model_sampling.py:92
↓ 5 callersFunctiontimestep_embedding
Create sinusoidal timestep embeddings. :param timesteps: a 1-D Tensor of N indices, one per batch element. These may be
ldm_patched/ldm/modules/diffusionmodules/util.py:227
↓ 5 callersFunctiontoggleOverlap
(forced = "")
javascript/zoom.js:192
↓ 5 callersMethodwrite
(self, *args)
ldm_patched/k_diffusion/utils.py:294
↓ 4 callersMethod__init__
(self, control_model, global_average_pooling=False, device=None, load_device=None, manual_cast_dtype=None)
ldm_patched/modules/controlnet.py:135
↓ 4 callersMethod__init__
( self, in_channels, out_channels, use_act=True, use_bn=True,
ldm_patched/pfn/architecture/SwiftSRGAN.py:28
↓ 4 callersMethod__init__
(self, inplanes, planes, stride=1, downsample=None, use_se=True)
ldm_patched/pfn/architecture/face/arcface_arch.py:71
↓ 4 callersMethod__init__
( self, out_size, num_style_feat=512, channel_multiplier=1, resample_k
ldm_patched/pfn/architecture/face/gfpganv1_arch.py:268
↓ 4 callersMethod__init__
(self, in_channels, num_style_feat, upsample=True)
ldm_patched/pfn/architecture/face/stylegan2_clean_arch.py:201
↓ 4 callersMethod__init__
(self, esa_channels, n_feats, conv=nn.Conv2d)
ldm_patched/pfn/architecture/OmniSR/esa.py:35
↓ 4 callersMethod__init__
(self, **kwargs)
ldm_patched/ldm/models/autoencoder.py:218
↓ 4 callersMethod__init__
(self, in_size=128, out_size=128, min_feat_size=32,
extras/facexlib/parsing/parsenet.py:142
↓ 4 callersMethod_format_image
Helper method to format an image based on self.type
modules/gradio_hijack.py:235
↓ 4 callersMethod_make_layer
(self, block, planes, num_blocks, stride=1)
ldm_patched/pfn/architecture/face/arcface_arch.py:226
↓ 4 callersFunction_ntuple
(n)
ldm_patched/pfn/architecture/timm/helpers.py:9
↓ 4 callersFunctionact
(act_type: str, inplace=True, neg_slope=0.2, n_prelu=1)
ldm_patched/pfn/architecture/block.py:20
↓ 4 callersFunctionappend_zero
(x)
ldm_patched/k_diffusion/sampling.py:12
↓ 4 callersFunctionapply_empty_x_to_equal_area
(conds, uncond, name, uncond_fill_func)
ldm_patched/modules/samplers.py:450
↓ 4 callersFunctionapply_wildcards
(wildcard_text, rng, i, read_wildcards_in_order)
modules/util.py:468
↓ 4 callersFunctioncalculate_start_end_timesteps
(model, conds)
ldm_patched/modules/samplers.py:419
↓ 4 callersMethodclip_layer
(self, layer_idx)
ldm_patched/modules/sd.py:115
↓ 4 callersFunctionconv3x3
A simple wrapper for 3x3 convolution with padding. Args: inplanes (int): Channel number of inputs. outplanes (int): Channel numbe
ldm_patched/pfn/architecture/face/arcface_arch.py:4
↓ 4 callersFunctioncosine_distance
(image_embeds, text_embeds)
extras/safety_checker/models/safety_checker.py:26
↓ 4 callersFunctioncreate_cond_with_same_area_if_none
(conds, c)
ldm_patched/modules/samplers.py:387
↓ 4 callersFunctioncreate_layer_basic
(in_chan, out_chan, bnum, stride=1)
extras/facexlib/parsing/resnet.py:41
↓ 4 callersMethodencode_image
(self, image)
ldm_patched/modules/clip_vision.py:50
↓ 4 callersFunctionexecuteCallbacks
(queue, arg)
javascript/script.js:81
↓ 4 callersFunctionexists
(val)
ldm_patched/ldm/modules/attention.py:29
↓ 4 callersFunctionfirst_file
(path, filenames)
ldm_patched/modules/diffusers_load.py:5
↓ 4 callersMethodforward
(self, *args, **kwargs)
ldm_patched/modules/ops.py:23
↓ 4 callersMethodforward_features
(self, x)
ldm_patched/pfn/architecture/SwinIR.py:1147
↓ 4 callersMethodgenerate
(self, image, sample=False, num_beams=3, max_length=30, min_length=10, top_p=0.9, repetition_penalty=1.0)
extras/BLIP/models/blip.py:128
↓ 4 callersFunctionget_input_directory
()
ldm_patched/utils/path_utils.py:69
↓ 4 callersFunctionget_location
(val, length)
extras/facexlib/utils/face_restoration_helper.py:14
↓ 4 callersMethodhas_restricted_features
(cls, x)
modules/flags.py:179
↓ 4 callersFunctionis_device_cpu
(device)
ldm_patched/modules/model_management.py:692
↓ 4 callersFunctionis_installed
(package)
modules/launch_util.py:26
↓ 4 callersMethodload_model
(self)
ldm_patched/modules/sd.py:143
↓ 4 callersMethodmake_zero_conv
(self, channels, operations=None, dtype=None, device=None)
ldm_patched/controlnet/cldm.py:282
↓ 4 callersMethodmodel_unload
(self)
ldm_patched/modules/model_management.py:329
↓ 4 callersFunctionnoise_pred_fn
(x, t_continuous, cond=None)
ldm_patched/unipc/uni_pc.py:293
↓ 4 callersFunctionnonlinearity
(x)
ldm_patched/ldm/modules/diffusionmodules/model.py:38
↓ 4 callersFunctionnormal_scheduler
(model, steps, sgm=False, floor=False)
ldm_patched/modules/samplers.py:307
↓ 4 callersFunctionpartialclass
(cls, *args, **kwargs)
ldm_patched/ldm/modules/temporal_ae.py:18
↓ 4 callersMethodpatch
(self, inpaint_head_model_path, inpaint_latent, inpaint_latent_mask, model)
modules/inpaint_worker.py:194
↓ 4 callersMethodprocess_latent_in
(self, latent)
ldm_patched/modules/model_base.py:175
↓ 4 callersFunctionresize_image
Resizes an image with the specified resize_mode, width, and height. Args: resize_mode: The mode to use when resizing the image.
modules/util.py:46
↓ 4 callersFunctionresolve_areas_and_cond_masks
(conditions, h, w, device)
ldm_patched/modules/samplers.py:347
↓ 4 callersFunctionsha256_from_cache
(filepath)
modules/hash_cache.py:13
↓ 4 callersMethodsort
(a, b)
ldm_patched/k_diffusion/sampling.py:88
↓ 3 callersMethod__init__
(self, embedding_directory=None)
ldm_patched/modules/sd2_clip.py:19
↓ 3 callersMethod__init__
(self, device="cpu", max_length=77, freeze=True, layer="penultimate", layer_idx=None, dtype=None)
ldm_patched/modules/sdxl_clip.py:6
↓ 3 callersMethod__init__
(self, inv_gamma=1., power=1., min_value=0., max_value=1., start_at=0, last_epoch=0)
ldm_patched/k_diffusion/utils.py:104
↓ 3 callersMethod__init__
(self, input_dim, output_dim, head_dim, window_size, type)
ldm_patched/pfn/architecture/SCUNet.py:22
↓ 3 callersMethod__init__
(self, channel, reduction=16)
ldm_patched/pfn/architecture/OmniSR/ChannelAttention.py:7
↓ 3 callersMethod__init__
(self, in_channels, out_channels, video_kernel_size=3, *args, **kwargs)
ldm_patched/ldm/modules/temporal_ae.py:93
↓ 3 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)
extras/BLIP/models/vit.py:29
↓ 3 callersFunction_bilateral_blur
( input: Tensor, guidance: Tensor | None, kernel_size: tuple[int, int] | int, sigma_color: flo
modules/anisotropic.py:75
↓ 3 callersMethod_copy_with
(self, cond)
ldm_patched/modules/conds.py:11
↓ 3 callersFunction_unpack_2d_ks
(kernel_size: tuple[int, int] | int)
modules/anisotropic.py:15
↓ 3 callersMethodadd_object_patch
(self, name, obj)
ldm_patched/modules/model_patcher.py:115
↓ 3 callersFunctionall_gallery_buttons
()
javascript/imageviewer.js:40
↓ 3 callersMethodbox_filter
(self, x, r)
ldm_patched/pfn/architecture/OmniSR/esa.py:208
↓ 3 callersFunctioncalc_cond_uncond_batch
(model, cond, uncond, x_in, timestep, model_options)
ldm_patched/modules/samplers.py:129
↓ 3 callersFunctioncalculate_transformer_depth
(prefix, state_dict_keys, state_dict)
ldm_patched/modules/model_detection.py:17
↓ 3 callersMethodcleanup
(self)
ldm_patched/modules/controlnet.py:193
↓ 3 callersFunctionconv_bn1X1
(inp, oup, stride, leaky=0)
extras/facexlib/detection/retinaface_net.py:19
↓ 3 callersFunctionconv_bn_no_relu
(inp, oup, stride)
extras/facexlib/detection/retinaface_net.py:12
↓ 3 callersMethodcopy_to
(self, c)
ldm_patched/modules/controlnet.py:75
↓ 3 callersMethoddetect_faces
( self, image, conf_threshold=0.8, nms_threshold=0.4, use_origin_size=
extras/facexlib/detection/retinaface.py:192
↓ 3 callersMethoddpm_solver_2_step
(self, x, t, t_next, r1=1 / 2, eps_cache=None)
ldm_patched/k_diffusion/sampling.py:350
↓ 3 callersFunctiondynamic_slice
( x: Tensor, starts: List[int], sizes: List[int], )
ldm_patched/ldm/modules/sub_quadratic_attention.py:29
↓ 3 callersFunctionfindNonreflectiveSimilarity
(uv, xy, options=None)
extras/facexlib/detection/matlab_cp2tform.py:60
↓ 3 callersMethodforward
(self, input, timesteps=None, skip_video=False)
ldm_patched/ldm/modules/temporal_ae.py:107
↓ 3 callersFunctionfree_memory
(memory_required, device, keep_loaded=[])
ldm_patched/modules/model_management.py:357
↓ 3 callersFunctionfused_leaky_relu
(input, bias, negative_slope=0.2, scale=2**0.5)
ldm_patched/pfn/architecture/face/fused_act.py:80
↓ 3 callersFunctiongenerate_mask_from_image
(image: np.ndarray, mask_model: str = 'sam', extras=None, sam_options: SAMOptions
extras/inpaint_mask.py:46
↓ 3 callersFunctionget_files_from_folder
(folder_path, extensions=None, name_filter=None)
modules/extra_utils.py:12
← previousnext →101–200 of 2,411, ranked by callers