MCPcopy Create free account

hub / github.com/fudan-generative-vision/hallo2 / types & classes

Types & classes163 in github.com/fudan-generative-vision/hallo2

↓ 17 callersClassConv
facelib/detection/yolov5face/models/common.py:42
↓ 11 callersClassInflatedConv3d
InflatedConv3d is a class that inherits from torch.nn.Conv2d and overrides the forward method. This class is used to perform 3D convolut
hallo/models/resnet.py:30
↓ 8 callersClassReferenceAttentionControl
This class is used to control the reference attention mechanism in a neural network model. It is responsible for managing the guidance and fu
hallo/models/mutual_self_attention.py:39
↓ 7 callersClassFaceWarpException
facelib/detection/align_trans.py:13
↓ 7 callersClassResBlock
basicsr/archs/vqgan_arch.py:142
↓ 6 callersClassConvBNReLU
facelib/parsing/bisenet.py:8
↓ 6 callersClassConvLayer
facelib/parsing/parsenet.py:74
↓ 6 callersClassResnetBlock3D
The ResnetBlock3D class defines a 3D residual block, a common building block in ResNet architectures for both image and video modeling tasks
hallo/models/resnet.py:255
↓ 6 callersClassTransformer3DModel
Transformer3DModel is a PyTorch model that extends `ModelMixin` and `ConfigMixin` to create a 3D transformer model. It implements the forward
hallo/models/transformer_3d.py:38
↓ 5 callersClassRegistry
The registry that provides name -> object mapping, to support third-party users' custom modules. To create a registry (e.g. a backbone r
basicsr/utils/registry.py:4
↓ 4 callersClassAttnBlock
basicsr/archs/vqgan_arch.py:168
↓ 4 callersClassAudioProcessor
AudioProcessor is a class that handles the processing of audio files. It takes care of preprocessing the audio files, extracting features
hallo/datasets/audio_processor.py:22
↓ 4 callersClassFaceLocator
The FaceLocator class is a neural network model designed to process and extract facial features from an input tensor. It consists of a series
hallo/models/face_locator.py:34
↓ 3 callersClassBiSeNetOutput
facelib/parsing/bisenet.py:21
↓ 3 callersClassImageProjModel
ImageProjModel is a class that projects image embeddings into a different dimensional space. It inherits from ModelMixin, providing additiona
hallo/models/image_proj.py:23
↓ 3 callersClassInflatedGroupNorm
InflatedGroupNorm is a custom class that inherits from torch.nn.GroupNorm. It is used to apply group normalization to 3D tensors. Args:
hallo/models/resnet.py:69
↓ 3 callersClassResidualBlock
Residual block recommended in: http://torch.ch/blog/2016/02/04/resnets.html
facelib/parsing/parsenet.py:113
↓ 3 callersClassResidualDenseBlock
Residual Dense Block. Used in RRDB block in ESRGAN. Args: num_feat (int): Channel number of intermediate features. num_grow_
basicsr/archs/rrdbnet_arch.py:9
↓ 3 callersClassSSH
facelib/detection/retinaface/retinaface_net.py:36
↓ 3 callersClassTransformer2DModel
A 2D Transformer model for image-like data. Parameters: num_attention_heads (`int`, *optional*, defaults to 16): The number of heads
hallo/models/transformer_2d.py:66
↓ 3 callersClassVideoReader
basicsr/utils/video_util.py:29
↓ 2 callersClassAttentionRefinementModule
facelib/parsing/bisenet.py:34
↓ 2 callersClassAudioProjModel
Audio Projection Model This class defines an audio projection model that takes audio embeddings as input and produces context tokens as outpu
hallo/models/audio_proj.py:40
↓ 2 callersClassBasicBlock
facelib/parsing/resnet.py:10
↓ 2 callersClassBottleneck
facelib/detection/yolov5face/models/common.py:74
↓ 2 callersClassDetections
facelib/detection/yolov5face/models/common.py:275
↓ 2 callersClassDownsample3D
The Downsample3D class is a PyTorch module for downsampling a 3D tensor, which is used to reduce the spatial resolution of feature maps, com
hallo/models/resnet.py:188
↓ 2 callersClassFaceAnimatePipeline
FaceAnimatePipeline is a custom DiffusionPipeline for animating faces. It inherits from the DiffusionPipeline class and is used to anima
hallo/animate/face_animate.py:58
↓ 2 callersClassFaceMaskDataset
FaceMaskDataset is a custom dataset for face mask images. Args: img_size (int): The size of the input images. drop_ratio
hallo/datasets/mask_image.py:21
↓ 2 callersClassImageProcessor
ImageProcessor is a class responsible for processing images, particularly for face-related tasks. It takes in an image and performs various o
hallo/datasets/image_processor.py:25
↓ 2 callersClassRetinaFace
facelib/detection/retinaface/retinaface.py:75
↓ 2 callersClassUpsample3D
Upsample3D is a PyTorch module that upsamples a 3D tensor. Args: channels (int): The number of channels in the input tensor.
hallo/models/resnet.py:104
↓ 2 callersClassYoloDetector
facelib/detection/yolov5face/face_detector.py:27
↓ 1 callersClassAudioTemporalBasicTransformerBlock
A PyTorch module designed to handle audio data within a transformer framework, including temporal attention mechanisms. Attributes:
hallo/models/attention.py:621
↓ 1 callersClassAutoShape
facelib/detection/yolov5face/models/common.py:217
↓ 1 callersClassBasicTransformerBlock
r""" A basic Transformer block. Parameters: dim (`int`): The number of channels in the input and output. num_attention_heads
hallo/models/attention.py:79
↓ 1 callersClassBboxHead
facelib/detection/retinaface/retinaface_net.py:152
↓ 1 callersClassBiSeNet
facelib/parsing/bisenet.py:110
↓ 1 callersClassCPUPrefetcher
CPU prefetcher. Args: loader: Dataloader.
basicsr/data/prefetch_dataloader.py:63
↓ 1 callersClassCUDAPrefetcher
CUDA prefetcher. Ref: https://github.com/NVIDIA/apex/issues/304# It may consums more GPU memory. Args: loader: Dataloader.
basicsr/data/prefetch_dataloader.py:84
↓ 1 callersClassClassHead
facelib/detection/retinaface/retinaface_net.py:138
↓ 1 callersClassContextPath
facelib/parsing/bisenet.py:53
↓ 1 callersClassCrossAttnDownBlock2D
CrossAttnDownBlock2D is a class that represents a 2D cross-attention downsampling block. This block is used in the UNet model and consis
hallo/models/unet_2d_blocks.py:595
↓ 1 callersClassCrossAttnDownBlock3D
A 3D downsampling block with cross attention for the U-Net architecture. Parameters: - (same as above, refer to the constructor for deta
hallo/models/unet_3d_blocks.py:497
↓ 1 callersClassCrossAttnUpBlock2D
CrossAttnUpBlock2D is a class that represents a cross-attention UpBlock in a 2D UNet architecture. This block is responsible for upsampl
hallo/models/unet_2d_blocks.py:950
↓ 1 callersClassCrossAttnUpBlock3D
Standard 3D downsampling block for the U-Net architecture. This block performs downsampling operations in the U-Net using residual blocks and
hallo/models/unet_3d_blocks.py:940
↓ 1 callersClassDownBlock2D
DownBlock2D is a class that represents a 2D downsampling block in a neural network. It takes the following parameters: - in_channels (in
hallo/models/unet_2d_blocks.py:812
↓ 1 callersClassDownBlock3D
A 3D downsampling block for the U-Net architecture. This block performs downsampling operations using residual blocks and an optional motion
hallo/models/unet_3d_blocks.py:783
↓ 1 callersClassDownsample
basicsr/archs/vqgan_arch.py:118
↓ 1 callersClassEncoder
basicsr/archs/vqgan_arch.py:230
↓ 1 callersClassEnlargedSampler
Sampler that restricts data loading to a subset of the dataset. Modified from torch.utils.data.distributed.DistributedSampler Support enlargi
basicsr/data/data_sampler.py:6
↓ 1 callersClassFPN
facelib/detection/retinaface/retinaface_net.py:66
↓ 1 callersClassFaceAnimatePipelineOutput
FaceAnimatePipelineOutput is a custom class that inherits from BaseOutput and represents the output of the FaceAnimatePipeline. Attribut
hallo/animate/face_animate.py:46
↓ 1 callersClassFaceRestoreHelper
Helper for the face restoration pipeline (base class).
facelib/utils/face_restoration_helper.py:55
↓ 1 callersClassFeatureFusionModule
facelib/parsing/bisenet.py:87
↓ 1 callersClassFileClient
A general file client to access files in different backend. The client loads a file or text in a specified backend from its path and return i
basicsr/utils/file_client.py:132
↓ 1 callersClassFuse_sft_block
basicsr/archs/codeformer_arch.py:166
↓ 1 callersClassGatedSelfAttentionDense
A gated self-attention dense layer that combines visual features and object features. Parameters: query_dim (`int`): The number of c
hallo/models/attention.py:29
↓ 1 callersClassGenerator
basicsr/archs/vqgan_arch.py:277
↓ 1 callersClassGumbelQuantizer
basicsr/archs/vqgan_arch.py:88
↓ 1 callersClassImageProcessorForDataProcessing
ImageProcessor is a class responsible for processing images, particularly for face-related tasks. It takes in an image and performs various o
hallo/datasets/image_processor.py:215
↓ 1 callersClassLandmarkHead
facelib/detection/retinaface/retinaface_net.py:165
↓ 1 callersClassMessageLogger
Message logger for printing. Args: opt (dict): Config. It contains the following keys: name (str): Exp name. logge
basicsr/utils/logger.py:10
↓ 1 callersClassMish
The Mish class implements the Mish activation function, a smooth, non-monotonic function that can be used in neural networks as an alternati
hallo/models/resnet.py:415
↓ 1 callersClassMobileNetV1
facelib/detection/retinaface/retinaface_net.py:100
↓ 1 callersClassModel
facelib/detection/yolov5face/models/yolo.py:95
↓ 1 callersClassNMS
facelib/detection/yolov5face/models/common.py:207
↓ 1 callersClassNet
The Net class combines all the necessary modules for the inference process. Args: reference_unet (UNet2DConditionModel): The UNe
scripts/inference_long.py:60
↓ 1 callersClassNet
The Net class defines a neural network model that combines a reference UNet2DConditionModel, a denoising UNet3DConditionModel, a face locato
scripts/train_stage1.py:68
↓ 1 callersClassNet
The Net class defines a neural network model that combines a reference UNet2DConditionModel, a denoising UNet3DConditionModel, a face locator
scripts/train_stage2_long.py:78
↓ 1 callersClassNormLayer
Normalization Layers. Args: channels: input channels, for batch norm and instance norm. input_size: input shape without batch siz
facelib/parsing/parsenet.py:8
↓ 1 callersClassParseNet
facelib/parsing/parsenet.py:140
↓ 1 callersClassPositionalEncoding
Positional Encoding module for transformers. Args: - d_model (int): Model dimension. - dropout (float): Dropout rate. - max_len
hallo/models/motion_module.py:426
↓ 1 callersClassPrefetchDataLoader
Prefetch version of dataloader. Ref: https://github.com/IgorSusmelj/pytorch-styleguide/issues/5# TODO: Need to test on single gpu an
basicsr/data/prefetch_dataloader.py:40
↓ 1 callersClassPrefetchGenerator
A general prefetch generator. Ref: https://stackoverflow.com/questions/7323664/python-generator-pre-fetch Args: generator: Pytho
basicsr/data/prefetch_dataloader.py:7
↓ 1 callersClassPriorBox
facelib/detection/retinaface/retinaface_utils.py:8
↓ 1 callersClassRRDBNet
Networks consisting of Residual in Residual Dense Block, which is used in ESRGAN. ESRGAN: Enhanced Super-Resolution Generative Adversarial Ne
basicsr/archs/rrdbnet_arch.py:67
↓ 1 callersClassRealESRGANer
A helper class for upsampling images with RealESRGAN. Args: scale (int): Upsampling scale factor used in the networks. It is usually 2 or
basicsr/utils/realesrgan_utils.py:14
↓ 1 callersClassReluLayer
Relu Layer. Args: relu type: type of relu layer, candidates are - ReLU - LeakyReLU: default relu slope 0.2
facelib/parsing/parsenet.py:42
↓ 1 callersClassResNet18
facelib/parsing/resnet.py:48
↓ 1 callersClassSEBlock
The squeeze-and-excitation block (SEBlock) used in the IRBlock. Args: channel (int): Channel number of inputs. reduction (int): C
basicsr/archs/arcface_arch.py:149
↓ 1 callersClassStaticPipeline
StaticPipelineOutput is a class that represents the output of the static pipeline. It contains the images generated by the pipeline as a unio
hallo/animate/face_animate_static.py:76
↓ 1 callersClassStaticPipelineOutput
StaticPipelineOutput is a class that represents the output of the static pipeline. It contains the images generated by the pipeline as a unio
hallo/animate/face_animate_static.py:65
↓ 1 callersClassTalkingVideoDataset
A dataset class for processing talking video data. Args: img_size (tuple, optional): The size of the output images. Defaults to (512
hallo/datasets/talk_video.py:83
↓ 1 callersClassTemporalBasicTransformerBlock
A PyTorch module that extends the BasicTransformerBlock to include temporal attention mechanisms. This class is particularly useful for video
hallo/models/attention.py:410
↓ 1 callersClassTemporalTransformer3DModel
A Temporal Transformer 3D Model class. Args: - in_channels (int): The number of input channels. - num_attention_heads (int): Number
hallo/models/motion_module.py:200
↓ 1 callersClassTemporalTransformerBlock
A Temporal Transformer Block class. Args: - dim (int): Dimension of the block. - num_attention_heads (int): Number of attention head
hallo/models/motion_module.py:319
↓ 1 callersClassTransformer2DModelOutput
The output of [`Transformer2DModel`]. Args: sample (`torch.FloatTensor` of shape `(batch_size, num_channels, height, width)`
hallo/models/transformer_2d.py:51
↓ 1 callersClassTransformer3DModelOutput
The output of the [`Transformer3DModel`]. Attributes: sample (`torch.FloatTensor`): The output tensor from the transform
hallo/models/transformer_3d.py:26
↓ 1 callersClassTransformerSALayer
basicsr/archs/codeformer_arch.py:103
↓ 1 callersClassUNet2DConditionOutput
The output of [`UNet2DConditionModel`]. Args: sample (`torch.FloatTensor` of shape `(batch_size, num_channels, height, width)`):
hallo/models/unet_2d_condition.py:80
↓ 1 callersClassUNet3DConditionOutput
Data class that serves as the output of the UNet3DConditionModel. Attributes: sample (`torch.FloatTensor`): A tensor rep
hallo/models/unet_3d.py:47
↓ 1 callersClassUNetMidBlock2D
A 2D UNet mid-block [`UNetMidBlock2D`] with multiple residual blocks and optional attention blocks. Args: in_channels (`int`): The n
hallo/models/unet_2d_blocks.py:261
↓ 1 callersClassUNetMidBlock2DCrossAttn
UNetMidBlock2DCrossAttn is a class that represents a mid-block 2D UNet with cross-attention. This block is responsible for processing th
hallo/models/unet_2d_blocks.py:407
↓ 1 callersClassUNetMidBlock3DCrossAttn
A 3D UNet middle block with cross attention mechanism. This block is part of the U-Net architecture and is used for feature extraction in the
hallo/models/unet_3d_blocks.py:247
↓ 1 callersClassUpBlock2D
UpBlock2D is a class that represents a 2D upsampling block in a neural network. This block is used for upsampling the input tensor by a
hallo/models/unet_2d_blocks.py:1186
↓ 1 callersClassUpBlock3D
3D upsampling block with cross attention for the U-Net architecture. This block performs upsampling operations and incorporates cross attenti
hallo/models/unet_3d_blocks.py:1238
↓ 1 callersClassUpsample
basicsr/archs/vqgan_arch.py:130
↓ 1 callersClassVGGFeatureExtractor
VGG network for feature extraction. In this implementation, we allow users to choose whether use normalization in the input feature and the t
basicsr/archs/vgg_arch.py:55
↓ 1 callersClassVanillaTemporalModule
A Vanilla Temporal Module class. Args: - in_channels (int): The number of input channels for the motion module. - num_attention_head
hallo/models/motion_module.py:126
next →1–100 of 163, ranked by callers