Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/lllyasviel/Fooocus
/ types & classes
Types & classes
628 in github.com/lllyasviel/Fooocus
⨍
Functions
2,411
◇
Types & classes
628
↓ 20 callers
Class
Block
ldm_patched/taesd/taesd.py:19
↓ 14 callers
Class
ConvLayer
Conv Layer used in StyleGAN2 Discriminator. Args: in_channels (int): Channel number of the input. out_channels (int): Channel num
ldm_patched/pfn/architecture/face/stylegan2_arch.py:761
↓ 11 callers
Class
EqualConv2d
Equalized Linear as StyleGAN2. Args: in_channels (int): Channel number of the input. out_channels (int): Channel number of the ou
ldm_patched/pfn/architecture/face/stylegan2_arch.py:699
↓ 11 callers
Class
TimestepEmbedSequential
A sequential module that passes timestep embeddings to the children that support it as an extra input.
ldm_patched/ldm/modules/diffusionmodules/openaimodel.py:52
↓ 9 callers
Class
ModelPatcher
ldm_patched/modules/model_patcher.py:8
↓ 9 callers
Class
ResBlock
ldm_patched/pfn/architecture/face/codeformer.py:546
↓ 9 callers
Class
ResnetBlock
ldm_patched/pfn/architecture/face/restoreformer_arch.py:162
↓ 7 callers
Class
BertModel
The model can behave as an encoder (with only self-attention) as well as a decoder, in which case a layer of cross-attention is added between
extras/BLIP/models/med.py:571
↓ 7 callers
Class
ConvTransBlock
ldm_patched/pfn/architecture/SCUNet.py:203
↓ 7 callers
Class
FaceWarpException
extras/facexlib/detection/align_trans.py:13
↓ 7 callers
Class
ResBlock
A residual block that can optionally change the number of channels. :param channels: the number of input channels. :param emb_channels: t
ldm_patched/ldm/modules/diffusionmodules/openaimodel.py:126
↓ 7 callers
Class
ResnetBlock
ldm_patched/ldm/modules/diffusionmodules/model.py:98
↓ 6 callers
Class
BrownianTreeNoiseSampler
A noise sampler backed by a torchsde.BrownianTree. Args: x (Tensor): The tensor whose shape, device and dtype to use to generate
ldm_patched/k_diffusion/sampling.py:101
↓ 6 callers
Class
ConvBNReLU
extras/facexlib/parsing/bisenet.py:8
↓ 6 callers
Class
ConvLayer
extras/facexlib/parsing/parsenet.py:74
↓ 6 callers
Class
Conv_PreNormResidual
ldm_patched/pfn/architecture/OmniSR/OSA.py:49
↓ 6 callers
Class
DropPath
Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks). From: https://github.com/huggingface/pytorch-image-model
ldm_patched/pfn/architecture/HAT.py:31
↓ 6 callers
Class
MultiHeadAttnBlock
ldm_patched/pfn/architecture/face/restoreformer_arch.py:222
↓ 6 callers
Class
ScaledLeakyReLU
Scaled LeakyReLU. Args: negative_slope (float): Negative slope. Default: 0.2.
ldm_patched/pfn/architecture/face/stylegan2_arch.py:683
↓ 5 callers
Class
CLIP
ldm_patched/modules/sd.py:85
↓ 5 callers
Class
CrossAttention
ldm_patched/ldm/modules/attention.py:366
↓ 5 callers
Class
FusedLeakyReLU
ldm_patched/pfn/architecture/face/fused_act.py:68
↓ 4 callers
Class
AttnBlock
ldm_patched/pfn/architecture/face/codeformer.py:165
↓ 4 callers
Class
ConvBlock
ldm_patched/pfn/architecture/SwiftSRGAN.py:27
↓ 4 callers
Class
Downsample
A downsampling layer with an optional convolution. :param channels: channels in the inputs and outputs. :param use_conv: a bool determini
ldm_patched/ldm/modules/diffusionmodules/openaimodel.py:97
↓ 4 callers
Class
EqualLinear
Equalized Linear as StyleGAN2. Args: in_channels (int): Size of each sample. out_channels (int): Size of each output sample.
ldm_patched/pfn/architecture/face/stylegan2_arch.py:139
↓ 4 callers
Class
FFC_BN_ACT
ldm_patched/pfn/architecture/LaMa.py:391
↓ 4 callers
Class
Gated_Conv_FeedForward
ldm_patched/pfn/architecture/OmniSR/OSA.py:91
↓ 4 callers
Class
LayerNorm
Subclass torch's LayerNorm to handle fp16.
ldm_patched/t2ia/adapter.py:159
↓ 4 callers
Class
Timestep
ldm_patched/ldm/modules/diffusionmodules/openaimodel.py:347
↓ 3 callers
Class
BasicTransformerBlock
ldm_patched/ldm/modules/attention.py:398
↓ 3 callers
Class
BertSelfAttention
extras/BLIP/models/nlvr_encoder.py:87
↓ 3 callers
Class
BiSeNetOutput
extras/facexlib/parsing/bisenet.py:21
↓ 3 callers
Class
CLIPEmbeddingNoiseAugmentation
ldm_patched/ldm/modules/encoders/noise_aug_modules.py:5
↓ 3 callers
Class
ConvLayer
Conv Layer used in StyleGAN2 Discriminator. Args: in_channels (int): Channel number of the input. out_channels (int): Channel numb
ldm_patched/pfn/architecture/face/stylegan2_bilinear_arch.py:613
↓ 3 callers
Class
FeedForward
ldm_patched/modules/gligen.py:32
↓ 3 callers
Class
LearnableSpatialTransformWrapper
ldm_patched/pfn/architecture/LaMa.py:18
↓ 3 callers
Class
PatchEmbed
r"""Image to Patch Embedding Args: img_size (int): Image size. Default: 224. patch_size (int): Patch token size. Default: 4.
ldm_patched/pfn/architecture/HAT.py:747
↓ 3 callers
Class
ResidualBlock
Residual block recommended in: http://torch.ch/blog/2016/02/04/resnets.html
extras/facexlib/parsing/parsenet.py:113
↓ 3 callers
Class
ResidualDenseBlock_5C
Residual Dense Block style: 5 convs The core module of paper: (Residual Dense Network for Image Super-Resolution, CVPR 18) Modified o
ldm_patched/pfn/architecture/block.py:356
↓ 3 callers
Class
ResnetBlock
ldm_patched/t2ia/adapter.py:67
↓ 3 callers
Class
SAMOptions
extras/inpaint_mask.py:13
↓ 3 callers
Class
SSH
extras/facexlib/detection/retinaface_net.py:36
↓ 3 callers
Class
SeperableConv2d
ldm_patched/pfn/architecture/SwiftSRGAN.py:7
↓ 3 callers
Class
SpatialTransformer
Transformer block for image-like data. First, project the input (aka embedding) and reshape to b, t, d. Then apply standard transform
ldm_patched/ldm/modules/attention.py:557
↓ 3 callers
Class
StyleConv
Style conv. Args: in_channels (int): Channel number of the input. out_channels (int): Channel number of the output. kerne
ldm_patched/pfn/architecture/face/stylegan2_arch.py:333
↓ 3 callers
Class
StyleConv
Style conv. Args: in_channels (int): Channel number of the input. out_channels (int): Channel number of the output. kernel
ldm_patched/pfn/architecture/face/stylegan2_bilinear_arch.py:193
↓ 3 callers
Class
StyleConv
Style conv used in StyleGAN2. Args: in_channels (int): Channel number of the input. out_channels (int): Channel number of the outp
ldm_patched/pfn/architecture/face/stylegan2_clean_arch.py:145
↓ 3 callers
Class
UpFirDnSmooth
Upsample, FIR filter, and downsample (smooth version). Args: resample_kernel (list[int]): A list indicating the 1D resample kernel
ldm_patched/pfn/architecture/face/stylegan2_arch.py:98
↓ 3 callers
Class
Upsample
Upsample module. Args: scale (int): Scale factor. Supported scales: 2^n and 3. num_feat (int): Channel number of intermediate fea
ldm_patched/pfn/architecture/Swin2SR.py:783
↓ 3 callers
Class
Upsample
An upsampling layer with an optional convolution. :param channels: channels in the inputs and outputs. :param use_conv: a bool determinin
ldm_patched/ldm/modules/diffusionmodules/openaimodel.py:61
↓ 2 callers
Class
AlphaBlender
ldm_patched/ldm/modules/diffusionmodules/util.py:20
↓ 2 callers
Class
Attention
ldm_patched/pfn/architecture/OmniSR/OSA.py:197
↓ 2 callers
Class
AttentionRefinementModule
extras/facexlib/parsing/bisenet.py:34
↓ 2 callers
Class
AttnChunk
ldm_patched/ldm/modules/sub_quadratic_attention.py:37
↓ 2 callers
Class
AutoencoderKL
ldm_patched/ldm/models/autoencoder.py:217
↓ 2 callers
Class
BasicBlock
extras/facexlib/parsing/resnet.py:10
↓ 2 callers
Class
BatchedBrownianTree
A wrapper around torchsde.BrownianTree that enables batches of entropy.
ldm_patched/k_diffusion/sampling.py:64
↓ 2 callers
Class
BertAttention
extras/BLIP/models/nlvr_encoder.py:251
↓ 2 callers
Class
BertAttention
extras/BLIP/models/med.py:242
↓ 2 callers
Class
BertLMHeadModel
extras/BLIP/models/med.py:811
↓ 2 callers
Class
CLIPEncoder
ldm_patched/modules/clip_model.py:54
↓ 2 callers
Class
ControlLora
ldm_patched/modules/controlnet.py:258
↓ 2 callers
Class
ControlNet
ldm_patched/modules/controlnet.py:134
↓ 2 callers
Class
ConvUpLayer
Convolutional upsampling layer. It uses bilinear upsampler + Conv. Args: in_channels (int): Channel number of the input. out_chann
ldm_patched/pfn/architecture/face/gfpganv1_arch.py:155
↓ 2 callers
Class
DPMSolver
DPM-Solver. See https://arxiv.org/abs/2206.00927.
ldm_patched/k_diffusion/sampling.py:318
↓ 2 callers
Class
Downsample
A downsampling layer with an optional convolution. :param channels: channels in the inputs and outputs. :param use_conv: a bool determini
ldm_patched/t2ia/adapter.py:33
↓ 2 callers
Class
Downsample
ldm_patched/ldm/modules/diffusionmodules/model.py:76
↓ 2 callers
Class
EmptyClass
ldm_patched/modules/sd.py:306
↓ 2 callers
Class
EqualLinear
Equalized Linear as StyleGAN2. Args: in_channels (int): Size of each sample. out_channels (int): Size of each output sample.
ldm_patched/pfn/architecture/face/stylegan2_bilinear_arch.py:24
↓ 2 callers
Class
FFCResnetBlock
ldm_patched/pfn/architecture/LaMa.py:444
↓ 2 callers
Class
FeedForward
ldm_patched/ldm/modules/attention.py:65
↓ 2 callers
Class
FooocusExpansion
extras/expansion.py:37
↓ 2 callers
Class
LayerNorm2d
ldm_patched/pfn/architecture/OmniSR/layernorm.py:48
↓ 2 callers
Class
MLP
ldm_patched/contrib/external_photomaker.py:23
↓ 2 callers
Class
MetadataScheme
modules/flags.py:110
↓ 2 callers
Class
Mlp
ldm_patched/pfn/architecture/HAT.py:81
↓ 2 callers
Class
ModelSamplingAdvanced
ldm_patched/contrib/external_model_advanced.py:97
↓ 2 callers
Class
ModulatedConv2d
Modulated Conv2d used in StyleGAN2. There is no bias in ModulatedConv2d. Args: in_channels (int): Channel number of the input.
ldm_patched/pfn/architecture/face/stylegan2_arch.py:199
↓ 2 callers
Class
ModulatedConv2d
Modulated Conv2d used in StyleGAN2. There is no bias in ModulatedConv2d. Args: in_channels (int): Channel number of the input.
ldm_patched/pfn/architecture/face/stylegan2_bilinear_arch.py:83
↓ 2 callers
Class
ModulatedConv2d
Modulated Conv2d used in StyleGAN2. There is no bias in ModulatedConv2d. Args: in_channels (int): Channel number of the input.
ldm_patched/pfn/architecture/face/stylegan2_clean_arch.py:53
↓ 2 callers
Class
PatchEmbed
r"""Image to Patch Embedding Args: img_size (int): Image size. Default: 224. patch_size (int): Patch token size. Default: 4.
ldm_patched/pfn/architecture/SwinIR.py:653
↓ 2 callers
Class
PatchEmbed
r"""Image to Patch Embedding Args: img_size (int): Image size. Default: 224. patch_size (int): Patch token size. Default: 4.
ldm_patched/pfn/architecture/Swin2SR.py:587
↓ 2 callers
Class
PatchUnEmbed
r"""Image to Patch Unembedding Args: img_size (int): Image size. Default: 224. patch_size (int): Patch token size. Default: 4.
ldm_patched/pfn/architecture/SwinIR.py:701
↓ 2 callers
Class
PatchUnEmbed
r"""Image to Patch Unembedding Args: img_size (int): Image size. Default: 224. patch_size (int): Patch token size. Default: 4.
ldm_patched/pfn/architecture/Swin2SR.py:747
↓ 2 callers
Class
PatchUnEmbed
r"""Image to Patch Unembedding Args: img_size (int): Image size. Default: 224. patch_size (int): Patch token size. Default: 4.
ldm_patched/pfn/architecture/HAT.py:787
↓ 2 callers
Class
Performance
modules/flags.py:159
↓ 2 callers
Class
PreNormResidual
ldm_patched/pfn/architecture/OmniSR/OSA.py:39
↓ 2 callers
Class
RSTB
Residual Swin Transformer Block (RSTB). Args: dim (int): Number of input channels. input_resolution (tuple[int]): Input resolutio
ldm_patched/pfn/architecture/Swin2SR.py:638
↓ 2 callers
Class
ResBlock
Residual block with bilinear upsampling/downsampling. Args: in_channels (int): Channel number of the input. out_channels (int): Ch
ldm_patched/pfn/architecture/face/gfpganv1_clean_arch.py:141
↓ 2 callers
Class
ResUpBlock
Residual block with upsampling. Args: in_channels (int): Channel number of the input. out_channels (int): Channel number of the ou
ldm_patched/pfn/architecture/face/gfpganv1_arch.py:223
↓ 2 callers
Class
RetinaFace
extras/facexlib/detection/retinaface.py:71
↓ 2 callers
Class
T2IAdapter
ldm_patched/modules/controlnet.py:425
↓ 2 callers
Class
ToRGB
To RGB from features. Args: in_channels (int): Channel number of input. num_style_feat (int): Channel number of style features.
ldm_patched/pfn/architecture/face/stylegan2_arch.py:384
↓ 2 callers
Class
ToRGB
To RGB from features. Args: in_channels (int): Channel number of input. num_style_feat (int): Channel number of style features.
ldm_patched/pfn/architecture/face/stylegan2_bilinear_arch.py:241
↓ 2 callers
Class
ToRGB
To RGB (image space) from features. Args: in_channels (int): Channel number of input. num_style_feat (int): Channel number of styl
ldm_patched/pfn/architecture/face/stylegan2_clean_arch.py:193
↓ 2 callers
Class
Upsample
ldm_patched/pfn/architecture/face/restoreformer_arch.py:126
↓ 2 callers
Class
Upsample
ldm_patched/ldm/modules/diffusionmodules/model.py:47
↓ 2 callers
Class
VAE
ldm_patched/modules/sd.py:150
↓ 2 callers
Class
VisionTransformer
Vision Transformer A PyTorch impl of : `An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale` - https://arxiv.org/
extras/BLIP/models/vit.py:116
next →
1–100 of 628, ranked by callers