MCPcopy Create free account

hub / github.com/TimoBolkart/TF_FLAME / functions

Functions33 in github.com/TimoBolkart/TF_FLAME

↓ 4 callersFunctionundo_chumpy
(x)
tf_smpl/batch_smpl.py:17
↓ 3 callersFunctionget_num
(string)
utils/landmarks.py:77
↓ 2 callersFunctionbatch_rodrigues
Theta is N x 3
tf_smpl/batch_lbs.py:42
↓ 2 callersFunctioncompute_texture_map
Given an image and a mesh aligned with the image (under scale-orthographic projection), project the image onto the mesh and return a texture
utils/project_on_mesh.py:4
↓ 2 callersFunctioncreate_lmk_spheres
(lmks, radius, color=[255.0, 0.0, 0.0])
utils/landmarks.py:33
↓ 2 callersFunctionload_embedding
funciton: load landmark embedding, in terms of face indices and barycentric coordinates for corresponding landmarks note: the included example is
utils/landmarks.py:39
↓ 2 callersFunctionmake_A
(R, t, name='')
tf_smpl/batch_lbs.py:116
↓ 2 callersFunctionsample_FLAME
Sample the FLAME model to demonstrate how to vary the model parameters.FLAME has parameters to - model identity-dependent shape variation
sample_FLAME.py:41
↓ 2 callersFunctionstr2bool
(val)
sample_FLAME.py:31
↓ 2 callersFunctiontf_get_model_lmks
Get a differentiable landmark embedding in the FLAME surface
utils/landmarks.py:48
↓ 1 callersFunctionbatch_global_rigid_transformation
Computes absolute joint locations given pose. rotate_base: if True, rotates the global rotation by 90 deg in x axis. if False, this is t
tf_smpl/batch_lbs.py:85
↓ 1 callersFunctionbatch_skew
vec is N x 3, batch_size is int returns N x 3 x 3. Skew_sym version of each matrix.
tf_smpl/batch_lbs.py:15
↓ 1 callersFunctionbuild_texture_from_image
(source_img_fname, target_mesh_fname, target_scale_fname, texture_mapping, out_path)
build_texture_from_image.py:29
↓ 1 callersFunctionfit_3D_mesh
Fit FLAME to 3D mesh in correspondence to the FLAME mesh (i.e. same number of vertices, same mesh topology) :param target_3d_mesh_fname: t
fit_3D_mesh.py:29
↓ 1 callersFunctionfit_lmk2d
Fit FLAME to 2D landmarks :param target_2d_lmks target 2D landmarks provided as (num_lmks x 3) matrix :param model_fname sav
fit_2D_landmarks.py:44
↓ 1 callersFunctionfit_lmk3d
Fit FLAME to 3D landmarks :param target_3d_lmks: target 3D landmarks provided as (num_lmks x 3) matrix :param model_fname: s
fit_3D_landmarks.py:30
↓ 1 callersFunctionget_point
(str_array)
utils/landmarks.py:82
↓ 1 callersFunctionload_binary_pickle
(filepath)
utils/landmarks.py:25
↓ 1 callersFunctionmain
(args)
sample_texture.py:114
↓ 1 callersFunctionmain
(args)
sample_FLAME.py:94
↓ 1 callersFunctionrender_mesh
(mesh, height, width)
utils/render_mesh.py:5
↓ 1 callersFunctionrun_2d_lmk_fitting
(model_fname, flame_lmk_path, texture_mapping, target_img_path, target_lmk_path, out_path, visualize)
fit_2D_landmarks.py:145
↓ 1 callersFunctionrun_3d_lmk_fitting
()
fit_3D_landmarks.py:90
↓ 1 callersFunctionrun_corresponding_mesh_fitting
()
fit_3D_mesh.py:90
↓ 1 callersFunctionsample_texture
Sample the FLAME model to demonstrate how to vary the model parameters.FLAME has parameters to - model identity-dependent shape variation
sample_texture.py:32
↓ 1 callersFunctionstr2bool
(val)
fit_2D_landmarks.py:34
↓ 1 callersFunctiontf_project_points
weak perspective camera
utils/landmarks.py:53
Method__call__
Obtain SMPL with shape (beta) & pose (theta) inputs. Theta includes the global rotation. Args: beta: N x num_betas
tf_smpl/batch_smpl.py:69
Method__init__
pkl_path is the path to a SMPL model
tf_smpl/batch_smpl.py:22
Functionbatch_lrotmin
NOTE: not used bc I want to reuse R and this is simple. Output of this is used to compute joint-to-pose blend shape mapping. Equation 9 in SM
tf_smpl/batch_lbs.py:61
Functionload_picked_points
Load a picked points file (.pp) containing 3D points exported from MeshLab. Returns a Numpy array of size Nx3
utils/landmarks.py:69
Functionon_step
(verts, scale, faces, target_img, target_lmks, opt_lmks, lmk_dist=0.0, shape_reg=0.0, exp_reg=0.0, neck_pose_r
fit_2D_landmarks.py:94
Functionvisualize_landmarks
(img, lmks)
utils/landmarks.py:60