MCPcopy Create free account

hub / github.com/Songluchuan/TDMM-LM_data / functions

Functions434 in github.com/Songluchuan/TDMM-LM_data

Functionload_filtered_state_dict
(model, snapshot)
tools/spectre_inverse/6DRepNet/sixdrepnet/train.py:67
Functionload_filtered_state_dict
(model, snapshot)
tools/spectre_inverse/6DRepNet/sixdrepnet/test.py:59
Functionload_local_mask
(image_size=256, mode='bbx')
tools/spectre_inverse/src/utils/util.py:674
Functionload_probabilities_per_FLAME_triangle
FLAME_masks_triangles.npy contains for each face area the indices of the triangles that belong to that area. Using that, we can assign a prob
tools/smirk_inverse/src/utils/masking.py:11
Functionload_state_dict
Set parameters converted from Caffe models authors of VGGFace2 provide. See https://www.robots.ox.ac.uk/~vgg/data/vgg_face2/. Arguments:
tools/smirk_inverse/src/losses/resnet.py:164
Functionload_templates
()
tools/smirk_inverse/src/utils/utils.py:5
Functionmasking
(img, mask, extra_points, wr=15, rendered_mask=None, extra_noise=True, random_mask=0.01)
tools/smirk_inverse/src/utils/masking.py:71
Functionmedian_blur
(x, kernel_size=(3,3))
tools/spectre_inverse/src/utils/util.py:390
Functionmesh_based_mask_uniform_faces
This function samples points from the FLAME mesh based on the face probabilities and the mask ratio.
tools/smirk_inverse/src/utils/masking.py:132
Functionplot_pose_cube
(img, yaw, pitch, roll, tdx=None, tdy=None, size=150.)
tools/spectre_inverse/6DRepNet/sixdrepnet/utils.py:12
Functionpoint2ind
(npoints, H)
tools/smirk_inverse/src/utils/masking.py:106
Functionpredict_text_deca
(lipreader, mouth_sequence)
tools/spectre_inverse/utils/lipread_utils.py:95
Functionprocess_sample
(args)
tools/smirk_inverse/datasets/preprocess_scripts/apply_mediapipe_to_dataset.py:103
Functionrad2deg
Function that converts angles from radians to degrees. See :class:`~torchgeometry.RadToDeg` for details. Args: tensor (Tensor): Tens
tools/spectre_inverse/src/utils/rotation_converter.py:23
Functionrelative_landmark_loss
(predicted_landmarks, landmarks_gt, weight=1.)
tools/spectre_inverse/src/utils/lossfunc.py:78
Functionremove_module
(state_dict)
tools/spectre_inverse/src/utils/util.py:573
Methodrender_multiface
(self, vertices, transformed_vertices, faces)
tools/smirk_inverse/src/renderer/renderer.py:254
Methodseletec_3d68
(self, vertices)
tools/spectre_inverse/src/models/FLAME.py:169
Methodseletec_3d68
(self, vertices)
tools/smirk_inverse/src/FLAME/FLAME.py:195
Functiontensor2image
(tensor)
tools/spectre_inverse/src/utils/util.py:548
Functiontensor_to_image
Converts a tensor to a numpy image.
tools/smirk_inverse/src/utils/utils.py:29
Functiontensor_vis_landmarks
(images, landmarks, gt_landmarks=None, color = 'g', isScale=True)
tools/spectre_inverse/src/utils/util.py:642
Functiontransfer_pixels
(img, points1, points2, rbound=None)
tools/smirk_inverse/src/utils/masking.py:116
Methodtransform_points
(self, points, tform, points_scale=None, normalize = True)
tools/spectre_inverse/src/utils/tensor_cropper.py:100
Functionunfreeze_module
(module, module_name=None)
tools/smirk_inverse/src/utils/utils.py:54
Functionupdate_cfg
(cfg, cfg_file)
tools/spectre_inverse/config.py:115
Functionupsample_mesh
Credit to Timo upsampling coarse mesh (with displacment map) vertices: vertices of coarse mesh, [nv, 3] normals: vertex normals,
tools/spectre_inverse/src/utils/util.py:27
Functionvertex_normals
:param vertices: [batch size, number of vertices, 3] :param faces: [batch size, number of faces, 3] :return: [batch size, number of verti
tools/spectre_inverse/src/utils/util.py:249
Functionvideo2sequence
(video_path)
tools/spectre_inverse/utils/extract_frames_and_audio.py:9
Functionvideo2sequence
(video_path, videofolder)
tools/spectre_inverse/utils/extract_frames_LRS3.py:41
Functionvisualize_grid
image range should be [0,1] dim: 2 for horizontal. 1 for vertical
tools/spectre_inverse/src/utils/util.py:695
Functionweighted_landmark_loss
(predicted_landmarks, landmarks_gt, weight=1.)
tools/spectre_inverse/src/utils/lossfunc.py:39
Methodworld2uv
warp vertices from world space to uv space vertices: [bz, V, 3] uv_vertices: [bz, 3, h, w]
tools/spectre_inverse/src/utils/renderer.py:351
Functionwrite_obj
Save 3D face model with texture. Ref: https://github.com/patrikhuber/eos/blob/bd00155ebae4b1a13b08bf5a991694d682abbada/include/eos/core/Mesh.hpp
tools/spectre_inverse/src/utils/util.py:64
← previous401–434 of 434, ranked by callers