Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RichardErkhov/FastFaceSwap
/ types & classes
Types & classes
86 in github.com/RichardErkhov/FastFaceSwap
⨍
Functions
417
◇
Types & classes
86
↓ 14 callers
Class
ConvLayer
Conv Layer used in StyleGAN2 Discriminator. Args: in_channels (int): Channel number of the input. out_channels (int): Channel num
gfpgan/archs/stylegan2_bilinear_arch.py:530
↓ 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
gfpgan/archs/stylegan2_bilinear_arch.py:481
↓ 9 callers
Class
ResnetBlock
gfpgan/archs/restoreformer_arch.py:152
↓ 6 callers
Class
MultiHeadAttnBlock
gfpgan/archs/restoreformer_arch.py:197
↓ 6 callers
Class
ScaledLeakyReLU
Scaled LeakyReLU. Args: negative_slope (float): Negative slope. Default: 0.2.
gfpgan/archs/stylegan2_bilinear_arch.py:465
↓ 4 callers
Class
EqualLinear
Equalized Linear as StyleGAN2. Args: in_channels (int): Size of each sample. out_channels (int): Size of each output sample.
gfpgan/archs/stylegan2_bilinear_arch.py:24
↓ 4 callers
Class
ResBlock
Residual block with bilinear upsampling/downsampling. Args: in_channels (int): Channel number of the input. out_channels (int): C
gfpgan/archs/gfpganv1_clean_arch.py:120
↓ 3 callers
Class
StyleConv
Style conv. Args: in_channels (int): Channel number of the input. out_channels (int): Channel number of the output. kerne
gfpgan/archs/stylegan2_bilinear_arch.py:162
↓ 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 out
gfpgan/archs/stylegan2_clean_arch.py:106
↓ 2 callers
Class
ConvUpLayer
Convolutional upsampling layer. It uses bilinear upsampler + Conv. Args: in_channels (int): Channel number of the input. out_chan
gfpgan/archs/gfpganv1_arch.py:132
↓ 2 callers
Class
FaceRestoreHelperOptimized
plugins/codeformer_face_helper_cv2.py:6
↓ 2 callers
Class
ModulatedConv2d
Modulated Conv2d used in StyleGAN2. There is no bias in ModulatedConv2d. Args: in_channels (int): Channel number of the input.
gfpgan/archs/stylegan2_bilinear_arch.py:72
↓ 2 callers
Class
ModulatedConv2d
Modulated Conv2d used in StyleGAN2. There is no bias in ModulatedConv2d. Args: in_channels (int): Channel number of the input.
gfpgan/archs/stylegan2_clean_arch.py:24
↓ 2 callers
Class
RealESRGANer
A helper class for upsampling images with RealESRGAN. Args: scale (int): Upsampling scale factor used in the networks. It is usually 2
realesrgan/utils.py:14
↓ 2 callers
Class
ResUpBlock
Residual block with upsampling. Args: in_channels (int): Channel number of the input. out_channels (int): Channel number of the o
gfpgan/archs/gfpganv1_arch.py:197
↓ 2 callers
Class
SRVGGNetCompact
A compact VGG-style network structure for super-resolution. It is a compact network structure, which performs upsampling in the last layer and
realesrgan/archs/srvgg_arch.py:7
↓ 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.
gfpgan/archs/stylegan2_bilinear_arch.py:208
↓ 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 sty
gfpgan/archs/stylegan2_clean_arch.py:141
↓ 2 callers
Class
Upsample
gfpgan/archs/restoreformer_arch.py:118
↓ 1 callers
Class
ChainImgProcessor
chain_img_processor/image.py:10
↓ 1 callers
Class
ChainVideoProcessor
chain_img_processor/video.py:28
↓ 1 callers
Class
ConstantInput
Constant input. Args: num_channel (int): Channel number of constant input. size (int): Spatial size of constant input.
gfpgan/archs/stylegan2_bilinear_arch.py:256
↓ 1 callers
Class
ConstantInput
Constant input. Args: num_channel (int): Channel number of constant input. size (int): Spatial size of constant input.
gfpgan/archs/stylegan2_clean_arch.py:177
↓ 1 callers
Class
Downsample
gfpgan/archs/restoreformer_arch.py:133
↓ 1 callers
Class
FFMPEG_VideoWriter
A class for FFMPEG-based video writing. A class to write videos using ffmpeg. ffmpeg will write in a large choice of formats. Parameter
chain_img_processor/ffmpeg_writer.py:24
↓ 1 callers
Class
GFPGANBilinear
The GFPGAN architecture: Unet + StyleGAN2 decoder with SFT. It is the bilinear version and it does not use the complicated UpFirDnSmooth function
gfpgan/archs/gfpgan_bilinear_arch.py:132
↓ 1 callers
Class
GFPGAN_onnxruntime
utils.py:122
↓ 1 callers
Class
GFPGANer
Helper for restoration with GFPGAN. It will detect and crop faces, and then resize the faces to 512x512. GFPGAN is used to restored the resiz
gfpgan/utils.py:16
↓ 1 callers
Class
GFPGANv1
The GFPGAN architecture: Unet + StyleGAN2 decoder with SFT. Ref: GFP-GAN: Towards Real-World Blind Face Restoration with Generative Facial Prior.
gfpgan/archs/gfpganv1_arch.py:221
↓ 1 callers
Class
GFPGANv1Clean
The GFPGAN architecture: Unet + StyleGAN2 decoder with SFT. It is the clean version without custom compiled CUDA extensions used in StyleGAN2.
gfpgan/archs/gfpganv1_clean_arch.py:153
↓ 1 callers
Class
INSwapper
swapperfp16.py:14
↓ 1 callers
Class
INSwapper
beta/swapperfp16.py:12
↓ 1 callers
Class
INSwapper
beta/swapperfp16 - Copy.py:12
↓ 1 callers
Class
ModelRouter
swapperfp16.py:123
↓ 1 callers
Class
ModelRouter
beta/swapperfp16.py:142
↓ 1 callers
Class
ModelRouter
beta/swapperfp16 - Copy.py:121
↓ 1 callers
Class
MultiHeadDecoderTransformer
gfpgan/archs/restoreformer_arch.py:467
↓ 1 callers
Class
MultiHeadEncoder
gfpgan/archs/restoreformer_arch.py:258
↓ 1 callers
Class
NormStyleCode
gfpgan/archs/stylegan2_bilinear_arch.py:10
↓ 1 callers
Class
NormStyleCode
gfpgan/archs/stylegan2_clean_arch.py:10
↓ 1 callers
Class
PickableInferenceSession
swapperfp16.py:110
↓ 1 callers
Class
PickableInferenceSession
beta/swapperfp16.py:129
↓ 1 callers
Class
PickableInferenceSession
beta/swapperfp16 - Copy.py:108
↓ 1 callers
Class
RestoreFormer
gfpgan/archs/restoreformer_arch.py:573
↓ 1 callers
Class
SEBlock
The squeeze-and-excitation block (SEBlock) used in the IRBlock. Args: channel (int): Channel number of inputs. reduction (int): C
gfpgan/archs/arcface_arch.py:149
↓ 1 callers
Class
ScrolledListBox
A standard Tkinter Listbox widget with scrollbars that will automatically show/hide as needed.
beta/better.py:229
↓ 1 callers
Class
StyleGAN2GeneratorBilinearSFT
StyleGAN2 Generator with SFT modulation (Spatial Feature Transform). It is the bilinear version. It does not use the complicated UpFirDnSmooth fu
gfpgan/archs/gfpgan_bilinear_arch.py:12
↓ 1 callers
Class
StyleGAN2GeneratorCSFT
StyleGAN2 Generator with SFT modulation (Spatial Feature Transform). It is the clean version without custom compiled CUDA extensions used in Styl
gfpgan/archs/gfpganv1_clean_arch.py:11
↓ 1 callers
Class
StyleGAN2GeneratorSFT
StyleGAN2 Generator with SFT modulation (Spatial Feature Transform). Args: out_size (int): The spatial size of outputs. num_style
gfpgan/archs/gfpganv1_arch.py:12
↓ 1 callers
Class
ThreadWithReturnValue
utils.py:210
↓ 1 callers
Class
ThreadWithReturnValue
chain_img_processor/video.py:10
↓ 1 callers
Class
ThreadWithReturnValue
beta/utilities.py:155
↓ 1 callers
Class
ThreadWithReturnValue
beta/faceswap_experiment - Copy.py:22
↓ 1 callers
Class
ThreadWithReturnValue
beta/faceswap_experiment.py:22
↓ 1 callers
Class
VectorQuantizer
see https://github.com/MishaLaskin/vqvae/blob/d761a999e2267766400dc646d82d3ac3657771d4/models/quantizer.py __________________________________
gfpgan/archs/restoreformer_arch.py:9
↓ 1 callers
Class
simulate
main.py:77
Class
AutoScroll
Configure the scrollbars for a widget.
beta/better.py:173
Class
BasicBlock
Basic residual block used in the ResNetArcFace architecture. Args: inplanes (int): Channel number of inputs. planes (int): Channe
gfpgan/archs/arcface_arch.py:16
Class
Bottleneck
Bottleneck block used in the ResNetArcFace architecture. Args: inplanes (int): Channel number of inputs. planes (int): Channel nu
gfpgan/archs/arcface_arch.py:103
Class
ChainImgPlugin
chain_img_processor/image.py:158
Class
FFHQDegradationDataset
FFHQ dataset for GFPGAN. It reads high resolution images, and then generate low-quality (LQ) images on-the-fly. Args: opt (dict): Co
gfpgan/data/ffhq_degradation_dataset.py:17
Class
FacialComponentDiscriminator
Facial component (eyes, mouth, noise) discriminator used in GFPGAN.
gfpgan/archs/gfpganv1_arch.py:405
Class
GFPGANModel
The GFPGAN model for Towards real-world blind face restoratin with generative facial prior
gfpgan/models/gfpgan_model.py:18
Class
GFPGAN_onnxruntime
beta/utilities.py:59
Class
IOConsumer
realesrgan/utils.py:296
Class
IRBlock
Improved residual block (IR Block) used in the ResNetArcFace architecture. Args: inplanes (int): Channel number of inputs. planes
gfpgan/archs/arcface_arch.py:56
Class
JaaCore
jaa.py:60
Class
Mish
utils.py:8
Class
Mish
beta/utilities.py:131
Class
MultiHeadDecoder
gfpgan/archs/restoreformer_arch.py:362
Class
PluginBlur
plugins/plugin_blur.py:28
Class
PluginCodeformer
plugins/plugin_codeformer.py:33
Class
PluginGrayscale
plugins/plugin_to_grayscale.py:22
Class
PluginResizeCv2
plugins/plugin_resize_cv2.py:28
Class
PrefetchReader
Prefetch images. Args: img_list (list[str]): A image list of image paths to be read. num_prefetch_queue (int): Number of pref
realesrgan/utils.py:266
Class
RealESRGANDataset
Dataset used for Real-ESRGAN model: Real-ESRGAN: Training Real-World Blind Super-Resolution with Pure Synthetic Data. It loads gt (Ground-
realesrgan/data/realesrgan_dataset.py:17
Class
RealESRGANModel
RealESRGAN Model for Real-ESRGAN: Training Real-World Blind Super-Resolution with Pure Synthetic Data. It mainly performs: 1. randomly syn
realesrgan/models/realesrgan_model.py:15
Class
RealESRGANPairedDataset
Paired image dataset for image restoration. Read LQ (Low Quality, e.g. LR (Low Resolution), blurry, noisy, etc) and GT image pairs. Ther
realesrgan/data/realesrgan_paired_dataset.py:11
Class
RealESRNetModel
RealESRNet Model for Real-ESRGAN: Training Real-World Blind Super-Resolution with Pure Synthetic Data. It is trained without GAN losses. I
realesrgan/models/realesrnet_model.py:14
Class
ResBlock
Residual block used in StyleGAN2 Discriminator. Args: in_channels (int): Channel number of the input. out_channels (int): Channel
gfpgan/archs/stylegan2_bilinear_arch.py:579
Class
ResNetArcFace
ArcFace with ResNet architectures. Ref: ArcFace: Additive Angular Margin Loss for Deep Face Recognition. Args: block (str): Block us
gfpgan/archs/arcface_arch.py:172
Class
StyleGAN2GeneratorBilinear
StyleGAN2 Generator. Args: out_size (int): The spatial size of outputs. num_style_feat (int): Channel number of style features. D
gfpgan/archs/stylegan2_bilinear_arch.py:274
Class
StyleGAN2GeneratorClean
Clean version of StyleGAN2 Generator. Args: out_size (int): The spatial size of outputs. num_style_feat (int): Channel number of
gfpgan/archs/stylegan2_clean_arch.py:195
Class
UNetDiscriminatorSN
Defines a U-Net discriminator with spectral normalization (SN) It is used in Real-ESRGAN: Training Real-World Blind Super-Resolution with Pure
realesrgan/archs/discriminator_arch.py:8
Class
VideoCaptureThread
utils.py:222
Class
VideoCaptureThread
beta/utilities.py:167