MCPcopy Create free account

hub / github.com/XiaokunSun/SemanticHuman / functions

Functions79 in github.com/XiaokunSun/SemanticHuman

↓ 29 callersMethodload
(self)
shape_data.py:49
↓ 10 callersMethoddecode
(self,z)
models.py:139
↓ 10 callersFunctionsave_obj
obj_path: str save_path v: array [N_v, 3] f: array [N_f, 3] partcolor_list: list [N_color] vert_part_index: array [N_v] skl_l
utils_SH.py:163
↓ 6 callersFunctioncalc_euclidean_dist_matrix
(x)
utils_distance.py:366
↓ 6 callersFunctionskl2kps
(skl, skl_mode)
utils_SH.py:71
↓ 5 callersFunctionkps2skl
(kps_tmp, skl_mode)
utils_SH.py:26
↓ 4 callersMethodsave_meshes
(self, filename, meshes, mesh_indices)
shape_data.py:86
↓ 3 callersFunctionLBO_slim
Input: V: B x N x 3 F: B x F x 3 Outputs: C: B x F x 3 list of cotangents corresponding angles for triangles, colum
utils_distance.py:165
↓ 3 callersFunctioncompute_score
(points, faces, target)
train_funcs.py:30
↓ 3 callersMethodencode
(self, x, VAE_flag)
models.py:115
↓ 3 callersFunctionget_target
(vertice, face, size, device)
train_funcs.py:22
↓ 3 callersMethodkps_encode
(self, kps)
models.py:233
↓ 2 callersMethod__init__
(self, in_c, spiral_size,out_c,activation='elu',bias=True,device=None)
models.py:11
↓ 2 callersFunctionangle_skl
(v, kps, partname_list, vert_part_index_dict, skl_list)
utils_SH.py:442
↓ 2 callersMethodbackward
(ctx, grad_output, grad_output2)
utils_distance.py:300
↓ 2 callersFunctioncal_girth
(verts, factor_list, edge_point_index_list)
obj2npy.py:61
↓ 2 callersFunctioncal_length
(verts, J_regressor, skl_list)
obj2npy.py:71
↓ 2 callersFunctioncal_volloss
(rec_v, GT_v, faces, vert_part_index, face_part_index, vert_part_index_dict, part_index_in_allpart)
train_funcs.py:56
↓ 2 callersFunctioncollapse_cost
(Qv, r, c, v)
mesh_sampling.py:128
↓ 2 callersFunctiongenerate_spirals
(step_sizes, M, Adj, Trigs, reference_points, dilation=None, random=False, meshpackage = 'mpi-mesh', counter_c
utils_spiral.py:45
↓ 2 callersFunctionget_adj_trigs
(A, F, reference_mesh, meshpackage = 'mpi-mesh')
utils_spiral.py:9
↓ 2 callersFunctionsetup_deformation_transfer
(source, target, use_normals=False)
mesh_sampling.py:47
↓ 2 callersFunctiontest_autoencoder_dataloader_nonormal
(device, model, dataloader_test, shapedata, J_regressor, mm_constant = 1000, unnormal_flag = False)
test_funcs.py:61
↓ 2 callersFunctionupdate_cfg
(cfg_file)
configure/cfgs.py:121
↓ 1 callersFunctionVF_adjacency_matrix
Input: V: N x 3 F: F x 3 Outputs: C: V x F adjacency matrix
utils_distance.py:15
↓ 1 callersFunction_geodesics_in_heat
(grad, div, W, A, t=1e-1)
utils_distance.py:84
↓ 1 callersFunction_get_sparse_transform
(faces, num_original_verts)
mesh_sampling.py:214
↓ 1 callersFunction_grad_div
(V,T)
utils_distance.py:36
↓ 1 callersFunctioncal_length
kps: tensor [N_kps, 3] skl_list: list [N_part] return length: tensor [N_part]
utils_SH.py:86
↓ 1 callersMethoddecode
(self,z,z_part_kps,dummy)
models.py:265
↓ 1 callersFunctiondfs
(index)
utils_SH.py:430
↓ 1 callersFunctiondistance
(v,w)
utils_spiral.py:101
↓ 1 callersFunctiondiv
(f)
utils_distance.py:68
↓ 1 callersMethodencode
(self, x, kps, VAE_flag = None)
models.py:238
↓ 1 callersFunctionget_spirals
(mesh, adj, trig, reference_points, n_steps=1, padding='zero', counter_clockwise = True, random = False)
utils_spiral.py:130
↓ 1 callersFunctiongrad
(f)
utils_distance.py:56
↓ 1 callersFunctioninit_model
config_path: str return: model
utils_SH.py:225
↓ 1 callersFunctioninit_regul
(source_vertices, source_faces)
train_funcs.py:12
↓ 1 callersFunctionlogical_or3
(x, y, z)
mesh_sampling.py:202
↓ 1 callersFunctionqslim_decimator_transformer
(mesh, factor=None, n_verts_desired=None)
mesh_sampling.py:98
↓ 1 callersMethodreset
(self)
utils_distance.py:397
↓ 1 callersFunctionsingle_source_shortest_path
(V,E,source,dist=None,prev=None)
utils_spiral.py:104
↓ 1 callersFunctiontest_autoencoder_dataloader
(device, model, dataloader_test, shapedata, J_regressor, mm_constant = 1000, unnormal_flag = False)
test_funcs.py:17
↓ 1 callersFunctiontrain_autoencoder_dataloader
(dataloader_train, dataloader_val, device, model, optim, loss_fn,
train_funcs.py:474
↓ 1 callersFunctiontrain_autoencoder_dataloader_nonormal
(dataloader_train, dataloader_val, device, model, optim, loss_fn,
train_funcs.py:73
↓ 1 callersFunctionvertex_quadrics
Computes a quadric for each vertex in the Mesh. Returns: v_quadrics: an (N x 4 x 4) array, where N is # vertices.
mesh_sampling.py:20
FunctionEdge_loss
(input, rec, edge_verts_index)
train_funcs.py:41
FunctionLBO
(V, F)
utils_distance.py:246
Method__getitem__
(self, idx)
autoencoder_dataset.py:26
Method__init__
(self, root_dir, points_dataset, shapedata, normalization = 'No', dummy_node = True, measure_flag = False, ang
autoencoder_dataset.py:11
Method__init__
(self, nVal, train_file, test_file, reference_mesh_file, normalization = 'No', meshpackage = 'mpi-mesh', mean_
shape_data.py:22
Method__init__
(self)
utils_distance.py:394
Method__init__
(self, filters_enc, filters_dec, latent_size, sizes, spiral_sizes, spirals, D, U, device, VAE_flag = False, ac
models.py:56
Method__init__
(self, kps_index_list, vert_part_index_dict, filters_enc, filters_dec, latent_size, part_kps_latent_size, size
models.py:167
Method__len__
(self)
autoencoder_dataset.py:23
Functioncal_girth
face_point: tensor [3] face_normal: tensor [3] points: tensor [N, 2, 3] return girth: tensor [1], X: tensor [N_x, 3], order: list [N_
utils_SH.py:100
Functioncalc_volume
(V,T)
utils_distance.py:157
Functiondistance_BH
(V,T)
utils_distance.py:138
Functiondistance_GIH
(V, T, t=1e-1)
utils_distance.py:121
Functionedit_skl
kps: tensor [N_num, N_kps, 3] kps_index: int edit_length: float return: new_kps tensor [N_num, N_kps, 3]
utils_SH.py:412
Functioneuc_dist
(tx, rec, vert_part_index_dict, partname_list, angle_w, w_mode, w_threshold, print_flag = False)
utils_SH.py:480
Methodforward
(ctx, input_matrix, K, N)
utils_distance.py:289
Methodforward
(self,x,spiral_adj)
models.py:34
Methodforward
(self,x)
models.py:157
Methodforward
(self,x,kps)
models.py:306
Functiongenerate_transform_matrices
(mesh, factors)
mesh_sampling.py:229
Functiongenerate_transform_matrices_given_downsamples
(mesh, downsample_directory, num_downsamples=4)
mesh_sampling.py:267
Methodkps2skl
(self, kps_tmp)
models.py:284
Functionmeasure_body_quick
v: tensor [N_v, 3] kps: tensor [N_kps, 3] skl_list: list [N_part] factor_list: list [N_part] edge_point_index_list: list [N_part]
utils_SH.py:144
Functionnormal
(input, mean, std)
train_funcs.py:50
Functionnormal
(input, mean, std)
test_funcs.py:13
Functionnormals
(V,T)
utils_distance.py:254
Methodsave_meshes_withkps
(self, filename, meshes, mesh_indices, kps_flag = False, skl_list = None, J_regressor = None)
shape_data.py:117
Functionsave_skl
(obj_path, kps_tmp, skl_list)
utils_SH.py:197
Functionunnormal
(input, mean, std)
train_funcs.py:46
Functionunnormal
(input, mean, std)
test_funcs.py:9
Methodupdate
(self, val, n=1)
utils_distance.py:403
Functionweights_init
(m)
utils_distance.py:384
Functionwrite_txt
(txt_path, str)
utils_SH.py:507