MCPcopy Create free account

hub / github.com/fudan-generative-vision/hallo2 / functions

Functions805 in github.com/fudan-generative-vision/hallo2

Method__init__
(self, in_channels: int, out_channels: int, act_fn: str)
hallo/models/unet_2d_blocks.py:231
Method__init__
( self, in_channels: int, temb_channels: int, dropout: float = 0.0, nu
hallo/models/unet_2d_blocks.py:292
Method__init__
( self, in_channels: int, temb_channels: int, dropout: float = 0.0, nu
hallo/models/unet_2d_blocks.py:428
Method__init__
( self, in_channels: int, out_channels: int, temb_channels: int, dropo
hallo/models/unet_2d_blocks.py:627
Method__init__
( self, in_channels: int, out_channels: int, temb_channels: int, dropo
hallo/models/unet_2d_blocks.py:842
Method__init__
( self, in_channels: int, out_channels: int, prev_output_channel: int,
hallo/models/unet_2d_blocks.py:987
Method__init__
( self, in_channels: int, temb_channels: int, dropout: float = 0.0, nu
hallo/models/unet_3d_blocks.py:283
Method__init__
( self, in_channels: int, out_channels: int, temb_channels: int, dropo
hallo/models/unet_3d_blocks.py:509
Method__init__
( self, in_channels: int, out_channels: int, temb_channels: int, dropo
hallo/models/unet_3d_blocks.py:812
Method__init__
( self, in_channels: int, out_channels: int, prev_output_channel: int,
hallo/models/unet_3d_blocks.py:969
Method__init__
( self, conditioning_embedding_channels: int, conditioning_channels: int = 3,
hallo/models/face_locator.py:60
Method__init__
Downsamples the given input in the 3D space. Args: channels: The number of input channels. use_conv: Whether
hallo/models/resnet.py:204
Method__init__
( self, *, in_channels, out_channels=None, conv_shortcut=False,
hallo/models/resnet.py:279
Method__init__
( self, in_channels, num_attention_heads=8, num_transformer_block=2, a
hallo/models/motion_module.py:142
Method__init__
( self, in_channels, num_attention_heads, attention_head_dim, num_laye
hallo/models/motion_module.py:220
Method__init__
( self, dim, num_attention_heads, attention_head_dim, attention_block_
hallo/models/motion_module.py:337
Method__init__
( self, *args, attention_mode=None, cross_frame_attention_mode=None, t
hallo/models/motion_module.py:473
Method__iter__
(self)
basicsr/utils/realesrgan_utils.py:281
Method__iter__
(self)
basicsr/utils/registry.py:71
Method__iter__
(self)
basicsr/data/data_sampler.py:29
Method__iter__
(self)
basicsr/data/prefetch_dataloader.py:59
Method__len__
(self)
facelib/detection/yolov5face/models/common.py:290
Method__len__
(self)
basicsr/utils/video_util.py:63
Method__len__
(self)
basicsr/data/data_sampler.py:44
Method__len__
(self)
basicsr/data/vfhq_dataset.py:295
Method__len__
(self)
hallo/datasets/mask_image.py:143
Method__len__
(self)
hallo/datasets/talk_video.py:315
Method__next__
(self)
basicsr/utils/realesrgan_utils.py:275
Method__next__
(self)
basicsr/data/prefetch_dataloader.py:30
Method__str__
(self)
facelib/detection/matlab_cp2tform.py:9
Method__str__
(self)
facelib/detection/align_trans.py:15
Method_augmentation
(self, images, transform, state=None)
hallo/datasets/image_processor.py:332
Method_execution_device
(self)
hallo/animate/face_animate.py:124
Method_execution_device
(self)
hallo/animate/face_animate_static.py:157
Method_init_weights
(self, module)
basicsr/archs/codeformer_arch.py:244
Method_print_biases
(self)
facelib/detection/yolov5face/models/yolo.py:143
Method_set_gradient_checkpointing
(self, module, value=False)
hallo/models/transformer_3d.py:143
Method_set_gradient_checkpointing
(self, module, value=False)
hallo/models/transformer_2d.py:241
Method_set_gradient_checkpointing
(self, module, value=False)
hallo/models/unet_3d.py:466
Method_set_gradient_checkpointing
(self, module, value=False)
hallo/models/unet_2d_condition.py:866
Method_wgan_loss
wgan loss. Args: input (Tensor): Input tensor. target (bool): Target label. Returns: Tensor: wga
basicsr/losses/losses.py:318
Method_wgan_softplus_loss
wgan loss with soft plus. softplus is a smooth approximation to the ReLU function. In StyleGAN2, it is called: Logistic l
basicsr/losses/losses.py:330
Methodalign_multi
(self, img, conf_threshold=0.8, limit=None)
facelib/detection/retinaface/retinaface.py:259
Methodattn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
hallo/models/unet_3d.py:365
Methodattn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
hallo/models/unet_2d_condition.py:703
Methodautoshape
(self)
facelib/detection/yolov5face/models/yolo.py:174
Methodautoshape
(self)
facelib/detection/yolov5face/models/common.py:228
Methodbackward
(ctx, gradgrad_input, gradgrad_bias)
basicsr/ops/fused_act/fused_act.py:46
Methodbackward
(ctx, grad_output)
basicsr/ops/fused_act/fused_act.py:67
Methodbackward
(ctx, grad_output)
basicsr/ops/dcn/deform_conv.py:69
Methodbackward
(ctx, grad_output)
basicsr/ops/dcn/deform_conv.py:152
Methodbackward
(ctx, gradgrad_input)
basicsr/ops/upfirdn2d/upfirdn2d.py:67
Methodbatched_detect_faces
Arguments: frames: a list of PIL.Image, or np.array(shape=[n, h, w, c], type=np.uint8, BGR format). c
facelib/detection/retinaface/retinaface.py:310
Functioncalculate_psnr
Calculate PSNR (Peak Signal-to-Noise Ratio). Ref: https://en.wikipedia.org/wiki/Peak_signal-to-noise_ratio Args: img1 (ndarray): Ima
basicsr/metrics/psnr_ssim.py:9
Functioncalculate_ssim
Calculate SSIM (structural similarity). Ref: Image quality assessment: From error visibility to structural similarity The results are th
basicsr/metrics/psnr_ssim.py:84
Functioncenter_size
Convert prior_boxes to (cx, cy, w, h) representation for comparison to center-size form ground truth data. Args: boxes: (tensor) poin
facelib/detection/retinaface/retinaface_utils.py:65
Methodclose
(self)
basicsr/utils/video_util.py:123
Functioncompute_increased_bbox
(bbox, increase_area, preserve_aspect=True)
facelib/utils/face_utils.py:6
Methodcreate_custom_forward
(module, return_dict=None)
hallo/models/transformer_2d.py:367
Methodcreate_custom_forward
(module, return_dict=None)
hallo/models/unet_2d_blocks.py:555
Methodcreate_custom_forward
(module, return_dict=None)
hallo/models/unet_2d_blocks.py:760
Methodcreate_custom_forward
(module)
hallo/models/unet_2d_blocks.py:919
Methodcreate_custom_forward
(module, return_dict=None)
hallo/models/unet_2d_blocks.py:1140
Methodcreate_custom_forward
(module)
hallo/models/unet_2d_blocks.py:1319
Methodcreate_custom_forward
(module, return_dict=None)
hallo/models/unet_3d_blocks.py:683
Methodcreate_custom_forward
(module)
hallo/models/unet_3d_blocks.py:907
Methodcreate_custom_forward
(module, return_dict=None)
hallo/models/unet_3d_blocks.py:1135
Methodcreate_custom_forward
(module)
hallo/models/unet_3d_blocks.py:1378
Functioncrop_border
Crop borders of images. Args: imgs (list[ndarray] | ndarray): Images with shape (h, w, c). crop_border (int): Crop border for eac
basicsr/utils/img_util.py:154
Methodcustom_forward
(*inputs)
hallo/models/transformer_2d.py:368
Methodcustom_forward
(*inputs)
hallo/models/unet_2d_blocks.py:556
Methodcustom_forward
(*inputs)
hallo/models/unet_2d_blocks.py:761
Methodcustom_forward
(*inputs)
hallo/models/unet_2d_blocks.py:920
Methodcustom_forward
(*inputs)
hallo/models/unet_2d_blocks.py:1141
Methodcustom_forward
(*inputs)
hallo/models/unet_2d_blocks.py:1320
Methodcustom_forward
(*inputs)
hallo/models/unet_3d_blocks.py:684
Methodcustom_forward
(*inputs)
hallo/models/unet_3d_blocks.py:908
Methodcustom_forward
(*inputs)
hallo/models/unet_3d_blocks.py:1136
Methodcustom_forward
(*inputs)
hallo/models/unet_3d_blocks.py:1379
Methoddeco
(func_or_class)
basicsr/utils/registry.py:51
Methoddetect_faces
Get bbox coordinates and keypoints of faces on original image. Params: imgs: image or list of images to detect faces on w
facelib/detection/yolov5face/face_detector.py:104
Functiondict_constructor
(loader, node)
basicsr/utils/options.py:24
Functiondict_representer
(dumper, data)
basicsr/utils/options.py:21
Methoddisable_freeu
Disables the FreeU mechanism.
hallo/models/unet_2d_condition.py:894
Methoddisable_vae_slicing
Disable vae slicing. This function disables the vae slicing for the StaticPipeline object. It calls the `disable_slicing()`
hallo/animate/face_animate_static.py:132
Methoddist_validation
(self, dataloader, current_iter, tb_logger, save_img)
basicsr/models/codeformer_temporal_model.py:158
Methoddist_validation
(self, dataloader, current_iter, tb_logger, save_img)
basicsr/models/vqgan_model.py:205
Functiondownload_file_from_google_drive
Download files from google drive. Ref: https://stackoverflow.com/questions/25010369/wget-curl-large-file-from-google-drive # noqa E501 Ar
basicsr/utils/download_util.py:11
Functiondownload_pretrained_models
(file_ids, save_path_root)
facelib/utils/misc.py:14
Functionduf_downsample
Downsamping with Gaussian kernel used in the DUF official code. Args: x (Tensor): Frames to be downsampled, with shape (b, t, c, h, w).
basicsr/data/data_util.py:277
Methodenable_freeu
r"""Enables the FreeU mechanism from https://arxiv.org/abs/2309.11497. The suffixes after the scaling factors represent the stage blocks wher
hallo/models/unet_2d_condition.py:870
Methodenable_sequential_cpu_offload
Offloads selected models to the GPU for increased performance. Args: gpu_id (int, optional): The ID of the GPU to offloa
hallo/animate/face_animate_static.py:143
Methodenable_vae_slicing
Enable VAE slicing. This method enables slicing for the VAE model, which can help improve the performance of decoding latents when w
hallo/animate/face_animate_static.py:124
Methodextra_repr
Returns a string representation of the module with information about the attention mode and whether it is cross-attention. R
hallo/models/motion_module.py:498
Methodfeature_extract
Extracts features from the input values and returns the extracted features. Parameters: input_values (torch.Tensor): The inp
hallo/models/wav2vec.py:112
Methodfeed_data
(self, data)
basicsr/models/base_model.py:24
Functionflow_warp
Warp an image or feature map with optical flow. Args: x (Tensor): Tensor with size (n, c, h, w). flow (Tensor): Tensor with size
basicsr/archs/arch_util.py:117
Methodfn_recursive_add_processors
( name: str, module: torch.nn.Module, processors: Dict[str, AttentionProce
hallo/models/unet_3d.py:374
Methodfn_recursive_add_processors
( name: str, module: torch.nn.Module, processors: Dict[str, AttentionProce
hallo/models/unet_2d_condition.py:712
Methodfn_recursive_attn_processor
(name: str, module: torch.nn.Module, processor)
hallo/models/unet_3d.py:494
← previousnext →501–600 of 805, ranked by callers