MCPcopy Create free account

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

Functions408 in github.com/cvlab-kaist/ControlFace

↓ 40 callersMethodencode
(self, images, use_detail=True)
decalib/deca.py:138
↓ 24 callersFunctiontorch_dfs
(model: torch.nn.Module)
src/models/mutual_self_attention_point.py:26
↓ 16 callersMethoddecode
(self, codedict, rendering=True, iddict=None, vis_lmk=True, return_vis=True, use_detail=True,
decalib/deca.py:159
↓ 15 callersMethodtransform
(self, img)
decalib/utils/lossfunc.py:658
↓ 7 callersFunctionto_np
(array, dtype=np.float32)
decalib/models/FLAME.py:27
↓ 7 callersFunctionto_tensor
(array, dtype=torch.float32)
decalib/models/FLAME.py:24
↓ 6 callersMethod__init__
( self, path, path_arc=None, )
src/training_utils.py:24
↓ 6 callersMethod__init__
( self, in_channels: int, prev_output_channel: int, out_channels: int,
src/models/unet_2d_blocks.py:933
↓ 6 callersMethod__init__
(self, in_channels, out_channels, bilinear=True)
decalib/models/resnet.py:228
↓ 4 callersMethod__init__
(self, d_model, dropout=0.0, max_len=24)
src/models/motion_module.py:263
↓ 4 callersMethod__init__
Constructor
decalib/utils/lossfunc.py:466
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1)
decalib/models/frnet.py:112
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1)
decalib/models/resnet.py:47
↓ 4 callersMethodadd_SHlight
sh_coeff: [bz, 9, 3]
decalib/utils/renderer.py:307
↓ 4 callersMethodbbox2point
bbox from detector and landmarks are different
decalib/datasets/datasets.py:83
↓ 4 callersMethodmodel_dict
(self)
decalib/deca.py:294
↓ 4 callersMethodrun
image: 0-255, uint8, rgb, [h, w, 3] return: detected box list
decalib/datasets/detectors.py:24
↓ 4 callersMethodworld2uv
warp vertices from world space to uv space vertices: [bz, V, 3] uv_vertices: [bz, 3, h, w]
decalib/utils/renderer.py:462
↓ 3 callersFunctionbatch_kp_2d_l1_loss
Computes the l1 loss between the ground truth keypoints and the predicted keypoints Inputs: kp_gt : N x K x 3 kp_pred: N x K x 2
decalib/utils/lossfunc.py:129
↓ 3 callersFunctionbatch_rodrigues
Calculates the rotation matrices for a batch of rotation vectors Parameters ---------- rot_vecs: torch.tensor Nx3
decalib/models/lbs.py:274
↓ 3 callersFunctioncopy_parameter_from_resnet
(model, resnet_dict)
decalib/models/resnet.py:156
↓ 3 callersMethodmrf_loss
(self, gen, tar)
decalib/utils/lossfunc.py:590
↓ 3 callersFunctionplot_verts
Draw 68 key points Args: image: the input image kpt: (68, 3).
decalib/utils/util.py:609
↓ 3 callersFunctionrot_mat_to_euler
(rot_mats)
decalib/models/lbs.py:26
↓ 3 callersFunctiontransform_points
(points, tform, points_scale=None, out_scale=None)
decalib/utils/tensor_cropper.py:118
↓ 3 callersMethodupdate
(self, writer, dtype=torch.float16)
src/models/mutual_self_attention_point.py:285
↓ 3 callersFunctionvertices2landmarks
Calculates landmarks by barycentric interpolation Parameters ---------- vertices: torch.tensor BxVx3, dtype = torch.float32
decalib/models/lbs.py:101
↓ 2 callersMethod__init__
(self, in_channel, out_channel, kernel_size, s
src/models/pointemb.py:26
↓ 2 callersMethod__init__
( self, channels, use_conv=False, use_conv_transpose=False, out_channe
src/models/resnet.py:32
↓ 2 callersMethod__init__
(self, image_size, obj_filename, uv_size=256, rasterizer_type='pytorch3d')
decalib/utils/renderer.py:174
↓ 2 callersMethod__init__
(self, block, layers, num_classes=1000, include_top=True)
decalib/models/frnet.py:87
↓ 2 callersMethodadd_directionlight
normals: [bz, nv, 3] lights: [bz, nlight, 6] returns: shading: [bz, nv, 3]
decalib/utils/renderer.py:342
↓ 2 callersMethodaugmentation
(self, images, transform, state=None)
src/training_utils.py:456
↓ 2 callersMethodclear
(self)
src/models/mutual_self_attention_point.py:323
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
decalib/models/frnet.py:10
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
decalib/models/resnet.py:120
↓ 2 callersFunctioneuler_to_quaternion
(r)
decalib/utils/rotation_converter.py:67
↓ 2 callersFunctioneye_dis
(landmarks)
decalib/utils/lossfunc.py:157
↓ 2 callersMethodforward
(self, hidden_states)
src/models/resnet.py:251
↓ 2 callersFunctionget_gaussian_kernel
r"""Function that returns Gaussian filter coefficients. Args: kernel_size (int): filter size. It should be odd and positive. sigm
decalib/utils/util.py:304
↓ 2 callersFunctionlip_dis
(landmarks)
decalib/utils/lossfunc.py:176
↓ 2 callersFunctionload_obj
Ref: https://github.com/facebookresearch/pytorch3d/blob/25c065e9dafa90163e7cec873dbb324a637c68b7/pytorch3d/io/obj_io.py Load a mesh from a file-l
decalib/utils/util.py:158
↓ 2 callersMethodmrf_loss
(self, gen, tar)
decalib/utils/lossfunc.py:409
↓ 2 callersFunctionordered_halving
(val)
src/pipelines/context.py:7
↓ 2 callersFunctionquaternion_to_angle_axis
Convert quaternion vector to angle axis of rotation. TODO: CORRECT Adapted from ceres C++ library: ceres-solver/include/ceres/rotation.h Arg
decalib/utils/rotation_converter.py:250
↓ 2 callersFunctionquaternion_to_rotation_matrix
Convert quaternion coefficients to rotation matrix. Args: quat: size = [B, 4] 4 <===>(w, x, y, z) Returns: Rotation matrix cor
decalib/utils/rotation_converter.py:228
↓ 2 callersMethodreg_features
(self, x)
decalib/utils/lossfunc.py:647
↓ 2 callersMethodrender_shape
-- rendering shape with detail normal map
decalib/utils/renderer.py:357
↓ 2 callersFunctionvideo2sequence
(video_path)
decalib/datasets/train_datasets.py:393
↓ 2 callersFunctionzero_module
(module)
src/models/motion_module.py:15
↓ 1 callersMethod__init__
( self, dim: int, num_attention_heads: int, attention_head_dim: int, d
src/models/attention.py:47
↓ 1 callersMethod__init__
(self, config)
decalib/models/FLAME.py:43
↓ 1 callersFunction_compute_binary_kernel
r"""Creates a binary kernel to extract the patches. If the window size is HxW will create a (H*W)xHxW kernel.
decalib/utils/util.py:380
↓ 1 callersMethod_cos_metric
(self, x1, x2)
decalib/utils/lossfunc.py:664
↓ 1 callersMethod_create_model
(self, model_cfg)
decalib/deca.py:69
↓ 1 callersMethod_find_dynamic_lmk_idx_and_bcoords
Selects the face contour depending on the reletive position of the head Input: vertices: N X num_of_vertices
decalib/models/FLAME.py:93
↓ 1 callersFunction_get_params
(key)
decalib/utils/util.py:508
↓ 1 callersMethod_setup_renderer
(self, model_cfg)
decalib/deca.py:52
↓ 1 callersMethodadd_pointlight
vertices: [bz, nv, 3] lights: [bz, nlight, 6] returns: shading: [bz, nv, 3]
decalib/utils/renderer.py:322
↓ 1 callersFunctionangle_axis_to_quaternion
Convert an angle axis to a quaternion. Adapted from ceres C++ library: ceres-solver/include/ceres/rotation.h Args: angle_axis (torch
decalib/utils/rotation_converter.py:178
↓ 1 callersFunctionaugment_bbox
(center, bbox_size, scale=[1.0, 1.0], trans_scale=0.)
decalib/utils/tensor_cropper.py:30
↓ 1 callersFunctionbatch_axis2matrix
(theta)
decalib/utils/rotation_converter.py:318
↓ 1 callersFunctionbatch_euler2axis
(r)
decalib/utils/rotation_converter.py:300
↓ 1 callersFunctionbatch_matrix2euler
(rot_mats)
decalib/utils/rotation_converter.py:306
↓ 1 callersFunctionbatch_rigid_transform
Applies a batch of rigid transformations to the joints Parameters ---------- rot_mats : torch.tensor BxNx3x3 Tensor of rotat
decalib/models/lbs.py:321
↓ 1 callersFunctionbatch_rodrigues
same as batch_matrix2axis Calculates the rotation matrices for a batch of rotation vectors Parameters ---------- rot_vec
decalib/utils/rotation_converter.py:342
↓ 1 callersFunctionblend_shapes
Calculates the per vertex displacement due to the blend shapes Parameters ---------- betas : torch.tensor Bx(num_betas) Blend s
decalib/models/lbs.py:250
↓ 1 callersMethodcompute_relative_distances
(self, cdist)
decalib/utils/lossfunc.py:397
↓ 1 callersMethodcompute_relative_distances
(self, cdist)
decalib/utils/lossfunc.py:578
↓ 1 callersMethodconfigure_optimizers
(self)
decalib/trainer.py:75
↓ 1 callersMethodconfigure_optimizers
(self)
decalib/utils/trainer.py:72
↓ 1 callersFunctioncreate_inter_data
(deca,dataset,mode)
sample.py:23
↓ 1 callersMethodcrop
(self, image, kpt)
decalib/datasets/vox.py:129
↓ 1 callersMethodcrop
(self, image, kpt)
decalib/datasets/train_datasets.py:168
↓ 1 callersMethodcrop
(self, image, kpt)
decalib/datasets/train_datasets.py:261
↓ 1 callersMethodcrop
(self, image, kpt)
decalib/datasets/train_datasets.py:353
↓ 1 callersMethodcrop
(self, image, kpt)
decalib/datasets/ethnicity.py:90
↓ 1 callersMethodcrop
(self, image, kpt)
decalib/datasets/vggface.py:85
↓ 1 callersMethodcrop
(self, image, kpt)
decalib/datasets/vggface.py:194
↓ 1 callersFunctioncrop_tensor
for batch image Args: image (torch.Tensor): the reference tensor of shape BXHxWXC. center: [bz, 2] bboxsize: [bz, 1]
decalib/utils/tensor_cropper.py:38
↓ 1 callersMethoddecode_latents
(self, latents)
src/pipelines/pipeline_point.py:135
↓ 1 callersMethoddecompose_code
Convert a flattened parameter vector to a dictionary of parameters code_dict.keys() = ['shape', 'tex', 'exp', 'pose', 'cam', 'light']
decalib/deca.py:101
↓ 1 callersMethoddisplacement2normal
Convert displacement map into detail normal map
decalib/deca.py:115
↓ 1 callersMethodevaluate
NOW validation
decalib/trainer.py:312
↓ 1 callersMethodevaluate
NOW validation
decalib/utils/trainer.py:208
↓ 1 callersMethodexp_norm_relative_dist
(self, relative_dist)
decalib/utils/lossfunc.py:403
↓ 1 callersMethodexp_norm_relative_dist
(self, relative_dist)
decalib/utils/lossfunc.py:584
↓ 1 callersFunctiongauss_fcn
(x)
decalib/utils/util.py:298
↓ 1 callersFunctiongaussian
(window_size, sigma)
decalib/utils/util.py:297
↓ 1 callersFunctionget_cfg_defaults
Get a yacs CfgNode object with default values for my_project.
decalib/utils/config.py:116
↓ 1 callersFunctionget_down_block
( down_block_type: str, num_layers: int, in_channels: int, out_channels: int, temb_channel
src/models/unet_2d_blocks.py:20
↓ 1 callersFunctionget_gaussian_kernel2d
r"""Function that returns Gaussian filter matrix coefficients. Args: kernel_size (Tuple[int, int]): filter sizes in the x and y direction
decalib/utils/util.py:332
↓ 1 callersFunctionget_laplacian_kernel2d
r"""Function that returns Gaussian filter matrix coefficients. Args: kernel_size (int): filter size should be odd. Returns:
decalib/utils/lossfunc.py:287
↓ 1 callersFunctionget_laplacian_kernel2d
r"""Function that returns Gaussian filter matrix coefficients. Args: kernel_size (int): filter size should be odd. Returns:
decalib/utils/util.py:400
↓ 1 callersFunctionget_up_block
( up_block_type: str, num_layers: int, in_channels: int, out_channels: int, prev_output_ch
src/models/unet_2d_blocks.py:102
↓ 1 callersFunctioninfer
(pipe, deca, args,)
sample.py:157
↓ 1 callersFunctionlbs
Performs Linear Blend Skinning with the given shape and pose parameters Parameters ---------- betas : torch.tensor BxNB
decalib/models/lbs.py:140
↓ 1 callersMethodload_checkpoint
(self)
decalib/trainer.py:87
↓ 1 callersMethodload_checkpoint
(self)
decalib/utils/trainer.py:78
↓ 1 callersMethodload_mask
(self, maskpath, h, w)
decalib/datasets/vox.py:153
next →1–100 of 408, ranked by callers