MCPcopy Create free account

hub / github.com/FuxiCV/MeInGame / functions

Functions166 in github.com/FuxiCV/MeInGame

↓ 26 callersMethodimsave
(self, path, image, debug=False)
models.py:577
↓ 17 callersFunctioncheck
(array_like)
lib/meshio.py:48
↓ 10 callersMethodload
(self)
models.py:530
↓ 9 callersMethodto_tensor
(self, array, dtype=torch.float32)
uv_inpainting.py:408
↓ 8 callersMethodcompute_gram
(self, x)
lib/loss.py:83
↓ 7 callersFunctionresize
(image, im_size)
lib/dataset.py:248
↓ 7 callersMethodto_tensor
(self, data, im_size=None)
lib/dataset.py:226
↓ 6 callersMethodload_mask
(self, path, erode=0)
models.py:581
↓ 6 callersMethodload_mask
(self, path)
lib/dataset.py:240
↓ 6 callersMethodsave
(self, filename, group=False, mtllib=False, uv_name=None)
lib/meshio.py:38
↓ 5 callersMethod__init__
(self, im_in_chn, uv_in_chn, config, init_weights=True)
networks.py:44
↓ 4 callersMethod__init__
(self)
lib/loss.py:160
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1)
lib/face_segment.py:195
↓ 4 callersFunctionload_neck_idx
(neck_file)
lib/rbf.py:121
↓ 4 callersMethodprocess_uvmap
(self, uvmap, rand_uvmap=None, dark_brow=False)
lib/dataset.py:128
↓ 3 callersMethodcrop_image
(self, image, im_size=None)
lib/image_cropper.py:146
↓ 3 callersMethodinference
(self, inputs, all_seg)
lib/face_segment.py:45
↓ 3 callersMethodinit_weights
initialize network's weights init_type: normal | xavier | kaiming | orthogonal https://github.com/junyanz/pytorch-CycleGAN-and-pix2pix/bl
networks.py:13
↓ 3 callersMethodload_pth
(self, path)
models.py:525
↓ 3 callersMethodprocess_image
(self, image, mask=True)
lib/dataset.py:209
↓ 3 callersMethodsample
(self, images, uvmaps, vertices, coeffs)
uv_inpainting.py:221
↓ 3 callersMethodto_device
(self, *args)
uv_inpainting.py:405
↓ 3 callersMethodto_tensor
(self, array, dtype=torch.float32)
lib/uv_creator.py:189
↓ 2 callersMethod__init__
(self, block, layers, num_classes)
lib/face_segment.py:174
↓ 2 callersMethodbackward
(self, gen_loss=None, im_dis_loss=None, uv_dis_loss=None)
models.py:511
↓ 2 callersMethodcalculate_gradient_penalty
Calculates the gradient penalty loss for WGAN GP
models.py:489
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
lib/face_segment.py:97
↓ 2 callersMethodcreate_iterator
(self, batch_size)
lib/dataset.py:231
↓ 2 callersFunctioncreate_log
(inputs, info)
uv_inpainting.py:449
↓ 2 callersMethodcreate_uv_torch
(self, shift_vert, input_image, uv_size, vert_idxs=None, bary_weight=None, param_dir=Non
lib/uv_creator.py:92
↓ 2 callersFunctiongaussian_blur
r"""Function that blurs a tensor using a Gaussian filter. See :class:`~kornia.filters.GaussianBlur` for details.
lib/gaussian.py:141
↓ 2 callersFunctionget_gaussian_kernel
r"""Function that returns Gaussian filter coefficients. Args: kernel_size (int): filter size. It should be odd and positive. sigm
lib/gaussian.py:17
↓ 2 callersMethodget_landmarks_from_image
Predict the landmarks for each face present in the image. This function predicts a set of 68 2D or 3D images, one for each image present.
lib/face_align.py:148
↓ 2 callersFunctionget_primary_value
(inputs, doubleSiamaSquare=1)
lib/rbf.py:111
↓ 2 callersMethodget_uv_idx
(self, prefix, uv_coord, triangles)
lib/uv_creator.py:64
↓ 2 callersMethodimsave
(self, path, image, h_flip=False, v_flip=False)
uv_inpainting.py:413
↓ 2 callersMethodload_item_numpy
(self, index)
lib/dataset.py:77
↓ 2 callersMethodnormalize
(self, input_vertice)
lib/rbf.py:99
↓ 2 callersMethodpredict
deploy for nsh
uv_inpainting.py:357
↓ 2 callersMethodprocess
(self, images_alpha, uvmaps_alpha, uvmap_gts, vertices, coeffs, uv_gt=True)
models.py:194
↓ 2 callersFunctionprocess_uv
(uv_coords, img_size, need_reverse=True)
lib/uv_creator.py:195
↓ 2 callersMethodrendering
(self, light_params, coeffs, vertices, gen_uvmaps, face_model)
models.py:431
↓ 2 callersMethodtransfer_shape_torch
(self, src_vert)
lib/rbf.py:83
↓ 1 callersFunction_get_padding
(ksize, stride, dilation)
networks.py:213
↓ 1 callersFunction_parse_faces_fallback
Use a slow but more flexible looping method to process face lines as a fallback option to faster vectorized methods.
lib/meshio.py:394
↓ 1 callersFunction_parse_faces_vectorized
Parse loaded homogeneous (tri/quad) face data in a vectorized manner.
lib/meshio.py:347
↓ 1 callersFunction_parse_vertices
(text)
lib/meshio.py:195
↓ 1 callersFunction_preprocess_faces
(text, split_object=False)
lib/meshio.py:268
↓ 1 callersFunctioncenter_crop
(image, img_size)
uv_inpainting.py:436
↓ 1 callersMethodcompute_lm_trans
(self, lm)
lib/image_cropper.py:41
↓ 1 callersMethodcompute_zero_padding
Computes zero padding tuple.
lib/gaussian.py:115
↓ 1 callersMethodcreate_nsh_uv_np
(self, nsh_shift_vert, input_image, segments, visible=False)
lib/uv_creator.py:153
↓ 1 callersMethodcreate_nsh_uv_torch
(self, nsh_shift_vert, input_image, uv_size)
lib/uv_creator.py:84
↓ 1 callersMethodforward
(self, x)
lib/loss.py:236
↓ 1 callersFunctiongauss_fcn
(x)
lib/gaussian.py:10
↓ 1 callersFunctiongaussian
(window_size, sigma)
lib/gaussian.py:8
↓ 1 callersFunctionget_args
()
main.py:13
↓ 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
lib/gaussian.py:44
↓ 1 callersMethodget_landmarks
(self, image, need_bbox=False)
lib/image_cropper.py:97
↓ 1 callersFunctionget_point_weight
(point, tri_points)
lib/uv_creator.py:232
↓ 1 callersFunctionget_rule_mask
(image)
lib/dataset.py:264
↓ 1 callersMethodinfer_bfm
(self)
create_dataset.py:45
↓ 1 callersMethodinfer_bfm
(self)
lib/deep3d.py:46
↓ 1 callersMethodinit_A
(self)
lib/rbf.py:51
↓ 1 callersMethodinit_renderer
(self)
models.py:172
↓ 1 callersMethodinit_test
(self)
uv_inpainting.py:237
↓ 1 callersFunctionisPointInTri
(point, tri_points)
lib/uv_creator.py:204
↓ 1 callersMethodload_BFM09
(self)
utils.py:52
↓ 1 callersMethodload_BFM09
(self)
lib/deep3d.py:128
↓ 1 callersMethodload_BFM17
(self)
utils.py:66
↓ 1 callersMethodload_face_mesh
(self)
lib/uv_creator.py:39
↓ 1 callersMethodload_lm3d
(self)
lib/image_cropper.py:27
↓ 1 callersMethodload_uvmasks
(self)
models.py:136
↓ 1 callersFunctionmain
()
create_dataset.py:90
↓ 1 callersFunctionmain
()
main.py:82
↓ 1 callersMethodpredict
(self, images, neutral=False)
create_dataset.py:78
↓ 1 callersMethodpreprocess
(self, image, face_model)
uv_inpainting.py:282
↓ 1 callersMethodprocess_image
(self, img, t, s, im_size)
lib/image_cropper.py:63
↓ 1 callersFunctionrasterize_triangles
(vertices, triangles, h, w)
lib/uv_creator.py:263
↓ 1 callersFunctionread_obj
Parse raw OBJ text into vertices, vertex normals, vertex colors, and vertex textures.
lib/meshio.py:140
↓ 1 callersFunctionread_obj_with_group
(filename, swapyz=False)
lib/meshio.py:56
↓ 1 callersFunctionresnet50
Constructs a ResNet-50 model. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet
lib/face_segment.py:232
↓ 1 callersMethodrotate_vert
(self, vertices, angles, trans)
models.py:476
↓ 1 callersMethodsegment
(self, inputs, batch_size=4, all_seg=False)
lib/face_segment.py:66
↓ 1 callersMethodsegment_torch
(self, images)
lib/face_segment.py:86
↓ 1 callersMethodtest_sample
(self, it=None)
uv_inpainting.py:188
↓ 1 callersMethodtrain
(self)
uv_inpainting.py:85
↓ 1 callersMethodtransfer_shape
(self, src_vert, normalize=False)
lib/rbf.py:64
↓ 1 callersFunctionuv_to_color
Get the color in a texture image. Parameters ------------- uv : (n, 2) float UV coordinates on texture image image : PIL.Image Tex
lib/meshio.py:445
↓ 1 callersMethodval_sample
(self, it=None)
uv_inpainting.py:145
↓ 1 callersFunctionwrite_obj
Save 3D face model with texture represented by colors. Args: obj_name: str vertices: shape = (nver, 3) triangles: shape =
lib/meshio.py:663
↓ 1 callersFunctionwrite_obj_with_group
Save 3D face model with texture represented by colors. Args: obj_name: str vertices: shape = (nver, 3) triangles: shape =
lib/meshio.py:762
Method__call__
(self, outputs, is_real, is_disc=None)
lib/loss.py:36
Method__call__
(self, x, y)
lib/loss.py:63
Method__call__
(self, x, y)
lib/loss.py:91
Method__call__
(self, x, y)
lib/loss.py:122
Method__getitem__
(self, index)
lib/dataset.py:68
Method__init__
if game_lm is not None, the result (mesh obj and UV texture map) will be convert from nsh to the game
uv_inpainting.py:33
Method__init__
(self, root_dir, path)
utils.py:37
Method__init__
(self, sess, graph, img_size=224, batch_size=1)
create_dataset.py:22
next →1–100 of 166, ranked by callers