MCPcopy Create free account

hub / github.com/cvlab-kaist/ControlFace / functions

Functions408 in github.com/cvlab-kaist/ControlFace

Method__init__
data class for loading AFLW2000 dataset make sure each image has corresponding mat file, which provides cropping infromation
decalib/datasets/aflw2000.py:14
Method__init__
(self)
decalib/datasets/detectors.py:20
Method__init__
https://github.com/timesler/facenet-pytorch/blob/master/examples/infer.ipynb
decalib/datasets/detectors.py:40
Method__init__
testpath: folder, imagepath_list, image path, video path
decalib/datasets/datasets.py:49
Method__init__
(self, K, image_size, scale, trans_scale = 0, dataname='vox2', n_train=100000, isTemporal=False, isEval=False,
decalib/datasets/train_datasets.py:52
Method__init__
# 53877 faces K must be less than 6
decalib/datasets/train_datasets.py:207
Method__init__
# 53877 faces K must be less than 6
decalib/datasets/train_datasets.py:300
Method__init__
testpath: folder, imagepath_list, image path, video path
decalib/datasets/train_datasets.py:412
Method__init__
testpath: folder, imagepath_list, image path, video path
decalib/datasets/train_datasets.py:495
Method__init__
(self, ring_elements=6, crop_size=224, scale=1.6)
decalib/datasets/now.py:13
Method__init__
K must be less than 6
decalib/datasets/ethnicity.py:13
Method__init__
K must be less than 6
decalib/datasets/vggface.py:13
Method__init__
K must be less than 6
decalib/datasets/vggface.py:125
Method__init__
(self, outsize, last_op=None)
decalib/models/encoders.py:23
Method__init__
(self, latent_dim=100, out_channels=1, out_scale=0.01, sample_mode = 'bilinear')
decalib/models/decoders.py:20
Method__init__
(self, inplanes, planes, stride=1, downsample=None)
decalib/models/frnet.py:18
Method__init__
(self, inplanes, planes, stride=1, downsample=None)
decalib/models/frnet.py:50
Method__init__
(self, **kwargs)
decalib/models/FLAME.py:33
Method__init__
(self, config)
decalib/models/FLAME.py:225
Method__init__
(self, block, layers, num_classes=1000)
decalib/models/resnet.py:24
Method__init__
(self, inplanes, planes, stride=1, downsample=None)
decalib/models/resnet.py:85
Method__init__
(self, inplanes, planes, stride=1, downsample=None)
decalib/models/resnet.py:128
Method__init__
(self, in_channels, out_channels)
decalib/models/resnet.py:196
Method__init__
(self, in_channels, out_channels)
decalib/models/resnet.py:214
Method__init__
(self, in_channels, out_channels)
decalib/models/resnet.py:255
Method__len__
(self)
src/training_utils.py:72
Method__len__
(self)
src/training_utils.py:202
Method__len__
(self)
src/training_utils.py:300
Method__len__
(self)
src/training_utils.py:375
Method__len__
(self)
src/training_utils.py:454
Method__len__
(self)
src/training_utils.py:549
Method__len__
(self)
src/training_utils.py:687
Method__len__
(self)
decalib/datasets/vox.py:71
Method__len__
(self)
decalib/datasets/aflw2000.py:34
Method__len__
(self)
decalib/datasets/datasets.py:80
Method__len__
(self)
decalib/datasets/train_datasets.py:110
Method__len__
(self)
decalib/datasets/train_datasets.py:220
Method__len__
(self)
decalib/datasets/train_datasets.py:313
Method__len__
(self)
decalib/datasets/train_datasets.py:441
Method__len__
(self)
decalib/datasets/train_datasets.py:525
Method__len__
(self)
decalib/datasets/now.py:28
Method__len__
(self)
decalib/datasets/ethnicity.py:34
Method__len__
(self)
decalib/datasets/vggface.py:36
Method__len__
(self)
decalib/datasets/vggface.py:146
Method_execution_device
(self)
src/pipelines/pipeline_point.py:123
Method_set_gradient_checkpointing
(self, module, value=False)
src/models/transformer_2d.py:209
Method_set_gradient_checkpointing
(self, module, value=False)
src/models/unet_2d_condition.py:832
Method_vertices2landmarks
Calculates landmarks by barycentric interpolation Input: vertices: torch.tensor NxVx3, dtype = torch.float32
decalib/models/FLAME.py:137
Functionalbedo_constancy_loss
for similarity of neighbors ref: Self-supervised Multi-level Face Model Learning for Monocular Reconstruction at over 250 Hz Towards
decalib/utils/lossfunc.py:71
Functionalbedo_ring_loss
computes ring loss for ring_outputs before FLAME decoder Inputs: ring_outputs = a list containing N streams of
decalib/utils/lossfunc.py:86
Functionalbedo_same_loss
computes ring loss for ring_outputs before FLAME decoder Inputs: ring_outputs = a list containing N streams of
decalib/utils/lossfunc.py:110
Functionangle2matrix
get rotation matrix from three rotation angles(degree). right-handed. Args: angles: [batch_size, 3] tensor containing X, Y, and Z angles.
decalib/utils/util.py:447
Methodattn_processors
r""" Returns: `dict` of attention processors: A dictionary containing all attention processors used in the model with
src/models/unet_2d_condition.py:671
Functionbatch_axis2euler
(theta)
decalib/utils/rotation_converter.py:325
Functionbatch_euler2matrix
(r)
decalib/utils/rotation_converter.py:303
Functionbatch_matrix2axis
(rot_mats)
decalib/utils/rotation_converter.py:315
Functionbatch_orth_proj
X is N x num_pquaternion_to_angle_axisoints x 3
decalib/utils/rotation_converter.py:332
Functionbatch_orth_proj
orthgraphic projection X: 3d vertices, [bz, n_point, 3] camera: scale and translation, [bz, 3], [scale, tx, ty]
decalib/utils/util.py:283
Functionbinary_erosion
(tensor, kernel_size=5)
decalib/utils/util.py:478
Functionbuild_dataloader
(config, is_train=True)
decalib/datasets/train_datasets.py:14
Functionbuild_train
(config, is_train=True)
decalib/datasets/build_datasets.py:18
Functionbuild_val
(config, is_train=True)
decalib/datasets/build_datasets.py:36
Functioncheck_mkdir
(path)
decalib/utils/util.py:527
Functioncheck_mkdirlist
(pathlist)
decalib/utils/util.py:532
Functioncopy_state_dict
(cur_state_dict, pre_state_dict, prefix='', load_name=None)
decalib/utils/util.py:507
Methodcreate_custom_forward
(module, return_dict=None)
src/models/transformer_2d.py:333
Methodcreate_custom_forward
(module, return_dict=None)
src/models/unet_2d_blocks.py:460
Methodcreate_custom_forward
(module, return_dict=None)
src/models/unet_2d_blocks.py:609
Methodcreate_custom_forward
(module)
src/models/unet_2d_blocks.py:728
Methodcreate_custom_forward
(module, return_dict=None)
src/models/unet_2d_blocks.py:886
Methodcreate_custom_forward
(module)
src/models/unet_2d_blocks.py:1020
Methodcrop
(self, image, points, points_scale=None)
decalib/utils/tensor_cropper.py:91
Methodcustom_forward
(*inputs)
src/models/transformer_2d.py:334
Methodcustom_forward
(*inputs)
src/models/unet_2d_blocks.py:461
Methodcustom_forward
(*inputs)
src/models/unet_2d_blocks.py:610
Methodcustom_forward
(*inputs)
src/models/unet_2d_blocks.py:729
Methodcustom_forward
(*inputs)
src/models/unet_2d_blocks.py:887
Methodcustom_forward
(*inputs)
src/models/unet_2d_blocks.py:1021
Functiondeg2rad
Function that converts angles from degrees to radians. See :class:`~torchgeometry.DegToRad` for details. Args: tensor (Tensor): Tens
decalib/utils/rotation_converter.py:44
Functiondelete_additional_ckpt
(base_path, num_keep)
src/utils/util.py:35
Functiondict2obj
(d)
decalib/utils/util.py:545
Functiondict_tensor2npy
(tensor_dict)
decalib/utils/util.py:571
Methoddisable_freeu
Disables the FreeU mechanism.
src/models/unet_2d_condition.py:860
Methoddisable_vae_slicing
(self)
src/pipelines/pipeline_point.py:107
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
src/models/unet_2d_condition.py:836
Methodenable_sequential_cpu_offload
(self, gpu_id=0)
src/pipelines/pipeline_point.py:110
Methodenable_vae_slicing
(self)
src/pipelines/pipeline_point.py:104
Methodextra_repr
(self)
src/models/motion_module.py:306
Functioneyed_loss
(predicted_landmarks, landmarks_gt, weight=1.)
decalib/utils/lossfunc.py:165
Functionface_vertices
:param vertices: [batch size, number of vertices, 3] :param faces: [batch size, number of faces, 3] :return: [batch size, number of face
decalib/utils/util.py:229
Functionfind_dynamic_lmk_idx_and_bcoords
Compute the faces, barycentric coordinates for the dynamic landmarks To do so, we first compute the rotation of the neck around the y-axis
decalib/models/lbs.py:34
Methodfit
(self)
decalib/trainer.py:377
Methodfit
(self)
decalib/utils/trainer.py:262
Functionflip_image
purpose: flip a image given by src_image and the 2d keypoints flip_mode: 0: horizontal flip >0:
decalib/utils/util.py:488
Methodfn_recursive_add_processors
( name: str, module: torch.nn.Module, processors: Dict[str, AttentionProce
src/models/unet_2d_condition.py:680
Methodfn_recursive_attn_processor
(name: str, module: torch.nn.Module, processor)
src/models/unet_2d_condition.py:725
Methodfn_recursive_retrieve_sliceable_dims
(module: torch.nn.Module)
src/models/unet_2d_condition.py:777
Methodfn_recursive_set_attention_slice
( module: torch.nn.Module, slice_size: List[int] )
src/models/unet_2d_condition.py:819
Methodforward
(self, x)
src/models/pointemb.py:51
Methodforward
(self, x)
src/models/pointemb.py:63
← previousnext →201–300 of 408, ranked by callers