Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/fudan-generative-vision/hallo2
/ types & classes
Types & classes
163 in github.com/fudan-generative-vision/hallo2
⨍
Functions
805
◇
Types & classes
163
↓ 17 callers
Class
Conv
facelib/detection/yolov5face/models/common.py:42
↓ 11 callers
Class
InflatedConv3d
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 callers
Class
ReferenceAttentionControl
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 callers
Class
FaceWarpException
facelib/detection/align_trans.py:13
↓ 7 callers
Class
ResBlock
basicsr/archs/vqgan_arch.py:142
↓ 6 callers
Class
ConvBNReLU
facelib/parsing/bisenet.py:8
↓ 6 callers
Class
ConvLayer
facelib/parsing/parsenet.py:74
↓ 6 callers
Class
ResnetBlock3D
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 callers
Class
Transformer3DModel
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 callers
Class
Registry
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 callers
Class
AttnBlock
basicsr/archs/vqgan_arch.py:168
↓ 4 callers
Class
AudioProcessor
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 callers
Class
FaceLocator
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 callers
Class
BiSeNetOutput
facelib/parsing/bisenet.py:21
↓ 3 callers
Class
ImageProjModel
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 callers
Class
InflatedGroupNorm
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 callers
Class
ResidualBlock
Residual block recommended in: http://torch.ch/blog/2016/02/04/resnets.html
facelib/parsing/parsenet.py:113
↓ 3 callers
Class
ResidualDenseBlock
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 callers
Class
SSH
facelib/detection/retinaface/retinaface_net.py:36
↓ 3 callers
Class
Transformer2DModel
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 callers
Class
VideoReader
basicsr/utils/video_util.py:29
↓ 2 callers
Class
AttentionRefinementModule
facelib/parsing/bisenet.py:34
↓ 2 callers
Class
AudioProjModel
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 callers
Class
BasicBlock
facelib/parsing/resnet.py:10
↓ 2 callers
Class
Bottleneck
facelib/detection/yolov5face/models/common.py:74
↓ 2 callers
Class
Detections
facelib/detection/yolov5face/models/common.py:275
↓ 2 callers
Class
Downsample3D
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 callers
Class
FaceAnimatePipeline
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 callers
Class
FaceMaskDataset
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 callers
Class
ImageProcessor
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 callers
Class
RetinaFace
facelib/detection/retinaface/retinaface.py:75
↓ 2 callers
Class
Upsample3D
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 callers
Class
YoloDetector
facelib/detection/yolov5face/face_detector.py:27
↓ 1 callers
Class
AudioTemporalBasicTransformerBlock
A PyTorch module designed to handle audio data within a transformer framework, including temporal attention mechanisms. Attributes:
hallo/models/attention.py:621
↓ 1 callers
Class
AutoShape
facelib/detection/yolov5face/models/common.py:217
↓ 1 callers
Class
BasicTransformerBlock
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 callers
Class
BboxHead
facelib/detection/retinaface/retinaface_net.py:152
↓ 1 callers
Class
BiSeNet
facelib/parsing/bisenet.py:110
↓ 1 callers
Class
CPUPrefetcher
CPU prefetcher. Args: loader: Dataloader.
basicsr/data/prefetch_dataloader.py:63
↓ 1 callers
Class
CUDAPrefetcher
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 callers
Class
ClassHead
facelib/detection/retinaface/retinaface_net.py:138
↓ 1 callers
Class
ContextPath
facelib/parsing/bisenet.py:53
↓ 1 callers
Class
CrossAttnDownBlock2D
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 callers
Class
CrossAttnDownBlock3D
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 callers
Class
CrossAttnUpBlock2D
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 callers
Class
CrossAttnUpBlock3D
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 callers
Class
DownBlock2D
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 callers
Class
DownBlock3D
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 callers
Class
Downsample
basicsr/archs/vqgan_arch.py:118
↓ 1 callers
Class
Encoder
basicsr/archs/vqgan_arch.py:230
↓ 1 callers
Class
EnlargedSampler
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 callers
Class
FPN
facelib/detection/retinaface/retinaface_net.py:66
↓ 1 callers
Class
FaceAnimatePipelineOutput
FaceAnimatePipelineOutput is a custom class that inherits from BaseOutput and represents the output of the FaceAnimatePipeline. Attribut
hallo/animate/face_animate.py:46
↓ 1 callers
Class
FaceRestoreHelper
Helper for the face restoration pipeline (base class).
facelib/utils/face_restoration_helper.py:55
↓ 1 callers
Class
FeatureFusionModule
facelib/parsing/bisenet.py:87
↓ 1 callers
Class
FileClient
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 callers
Class
Fuse_sft_block
basicsr/archs/codeformer_arch.py:166
↓ 1 callers
Class
GatedSelfAttentionDense
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 callers
Class
Generator
basicsr/archs/vqgan_arch.py:277
↓ 1 callers
Class
GumbelQuantizer
basicsr/archs/vqgan_arch.py:88
↓ 1 callers
Class
ImageProcessorForDataProcessing
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 callers
Class
LandmarkHead
facelib/detection/retinaface/retinaface_net.py:165
↓ 1 callers
Class
MessageLogger
Message logger for printing. Args: opt (dict): Config. It contains the following keys: name (str): Exp name. logge
basicsr/utils/logger.py:10
↓ 1 callers
Class
Mish
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 callers
Class
MobileNetV1
facelib/detection/retinaface/retinaface_net.py:100
↓ 1 callers
Class
Model
facelib/detection/yolov5face/models/yolo.py:95
↓ 1 callers
Class
NMS
facelib/detection/yolov5face/models/common.py:207
↓ 1 callers
Class
Net
The Net class combines all the necessary modules for the inference process. Args: reference_unet (UNet2DConditionModel): The UNe
scripts/inference_long.py:60
↓ 1 callers
Class
Net
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 callers
Class
Net
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 callers
Class
NormLayer
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 callers
Class
ParseNet
facelib/parsing/parsenet.py:140
↓ 1 callers
Class
PositionalEncoding
Positional Encoding module for transformers. Args: - d_model (int): Model dimension. - dropout (float): Dropout rate. - max_len
hallo/models/motion_module.py:426
↓ 1 callers
Class
PrefetchDataLoader
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 callers
Class
PrefetchGenerator
A general prefetch generator. Ref: https://stackoverflow.com/questions/7323664/python-generator-pre-fetch Args: generator: Pytho
basicsr/data/prefetch_dataloader.py:7
↓ 1 callers
Class
PriorBox
facelib/detection/retinaface/retinaface_utils.py:8
↓ 1 callers
Class
RRDBNet
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 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 or
basicsr/utils/realesrgan_utils.py:14
↓ 1 callers
Class
ReluLayer
Relu Layer. Args: relu type: type of relu layer, candidates are - ReLU - LeakyReLU: default relu slope 0.2
facelib/parsing/parsenet.py:42
↓ 1 callers
Class
ResNet18
facelib/parsing/resnet.py:48
↓ 1 callers
Class
SEBlock
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 callers
Class
StaticPipeline
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 callers
Class
StaticPipelineOutput
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 callers
Class
TalkingVideoDataset
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 callers
Class
TemporalBasicTransformerBlock
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 callers
Class
TemporalTransformer3DModel
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 callers
Class
TemporalTransformerBlock
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 callers
Class
Transformer2DModelOutput
The output of [`Transformer2DModel`]. Args: sample (`torch.FloatTensor` of shape `(batch_size, num_channels, height, width)`
hallo/models/transformer_2d.py:51
↓ 1 callers
Class
Transformer3DModelOutput
The output of the [`Transformer3DModel`]. Attributes: sample (`torch.FloatTensor`): The output tensor from the transform
hallo/models/transformer_3d.py:26
↓ 1 callers
Class
TransformerSALayer
basicsr/archs/codeformer_arch.py:103
↓ 1 callers
Class
UNet2DConditionOutput
The output of [`UNet2DConditionModel`]. Args: sample (`torch.FloatTensor` of shape `(batch_size, num_channels, height, width)`):
hallo/models/unet_2d_condition.py:80
↓ 1 callers
Class
UNet3DConditionOutput
Data class that serves as the output of the UNet3DConditionModel. Attributes: sample (`torch.FloatTensor`): A tensor rep
hallo/models/unet_3d.py:47
↓ 1 callers
Class
UNetMidBlock2D
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 callers
Class
UNetMidBlock2DCrossAttn
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 callers
Class
UNetMidBlock3DCrossAttn
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 callers
Class
UpBlock2D
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 callers
Class
UpBlock3D
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 callers
Class
Upsample
basicsr/archs/vqgan_arch.py:130
↓ 1 callers
Class
VGGFeatureExtractor
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 callers
Class
VanillaTemporalModule
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