Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FuxiCV/MeInGame
/ functions
Functions
166 in github.com/FuxiCV/MeInGame
⨍
Functions
166
◇
Types & classes
31
↓ 26 callers
Method
imsave
(self, path, image, debug=False)
models.py:577
↓ 17 callers
Function
check
(array_like)
lib/meshio.py:48
↓ 10 callers
Method
load
(self)
models.py:530
↓ 9 callers
Method
to_tensor
(self, array, dtype=torch.float32)
uv_inpainting.py:408
↓ 8 callers
Method
compute_gram
(self, x)
lib/loss.py:83
↓ 7 callers
Function
resize
(image, im_size)
lib/dataset.py:248
↓ 7 callers
Method
to_tensor
(self, data, im_size=None)
lib/dataset.py:226
↓ 6 callers
Method
load_mask
(self, path, erode=0)
models.py:581
↓ 6 callers
Method
load_mask
(self, path)
lib/dataset.py:240
↓ 6 callers
Method
save
(self, filename, group=False, mtllib=False, uv_name=None)
lib/meshio.py:38
↓ 5 callers
Method
__init__
(self, im_in_chn, uv_in_chn, config, init_weights=True)
networks.py:44
↓ 4 callers
Method
__init__
(self)
lib/loss.py:160
↓ 4 callers
Method
_make_layer
(self, block, planes, blocks, stride=1)
lib/face_segment.py:195
↓ 4 callers
Function
load_neck_idx
(neck_file)
lib/rbf.py:121
↓ 4 callers
Method
process_uvmap
(self, uvmap, rand_uvmap=None, dark_brow=False)
lib/dataset.py:128
↓ 3 callers
Method
crop_image
(self, image, im_size=None)
lib/image_cropper.py:146
↓ 3 callers
Method
inference
(self, inputs, all_seg)
lib/face_segment.py:45
↓ 3 callers
Method
init_weights
initialize network's weights init_type: normal | xavier | kaiming | orthogonal https://github.com/junyanz/pytorch-CycleGAN-and-pix2pix/bl
networks.py:13
↓ 3 callers
Method
load_pth
(self, path)
models.py:525
↓ 3 callers
Method
process_image
(self, image, mask=True)
lib/dataset.py:209
↓ 3 callers
Method
sample
(self, images, uvmaps, vertices, coeffs)
uv_inpainting.py:221
↓ 3 callers
Method
to_device
(self, *args)
uv_inpainting.py:405
↓ 3 callers
Method
to_tensor
(self, array, dtype=torch.float32)
lib/uv_creator.py:189
↓ 2 callers
Method
__init__
(self, block, layers, num_classes)
lib/face_segment.py:174
↓ 2 callers
Method
backward
(self, gen_loss=None, im_dis_loss=None, uv_dis_loss=None)
models.py:511
↓ 2 callers
Method
calculate_gradient_penalty
Calculates the gradient penalty loss for WGAN GP
models.py:489
↓ 2 callers
Function
conv3x3
3x3 convolution with padding
lib/face_segment.py:97
↓ 2 callers
Method
create_iterator
(self, batch_size)
lib/dataset.py:231
↓ 2 callers
Function
create_log
(inputs, info)
uv_inpainting.py:449
↓ 2 callers
Method
create_uv_torch
(self, shift_vert, input_image, uv_size, vert_idxs=None, bary_weight=None, param_dir=Non
lib/uv_creator.py:92
↓ 2 callers
Function
gaussian_blur
r"""Function that blurs a tensor using a Gaussian filter. See :class:`~kornia.filters.GaussianBlur` for details.
lib/gaussian.py:141
↓ 2 callers
Function
get_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 callers
Method
get_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 callers
Function
get_primary_value
(inputs, doubleSiamaSquare=1)
lib/rbf.py:111
↓ 2 callers
Method
get_uv_idx
(self, prefix, uv_coord, triangles)
lib/uv_creator.py:64
↓ 2 callers
Method
imsave
(self, path, image, h_flip=False, v_flip=False)
uv_inpainting.py:413
↓ 2 callers
Method
load_item_numpy
(self, index)
lib/dataset.py:77
↓ 2 callers
Method
normalize
(self, input_vertice)
lib/rbf.py:99
↓ 2 callers
Method
predict
deploy for nsh
uv_inpainting.py:357
↓ 2 callers
Method
process
(self, images_alpha, uvmaps_alpha, uvmap_gts, vertices, coeffs, uv_gt=True)
models.py:194
↓ 2 callers
Function
process_uv
(uv_coords, img_size, need_reverse=True)
lib/uv_creator.py:195
↓ 2 callers
Method
rendering
(self, light_params, coeffs, vertices, gen_uvmaps, face_model)
models.py:431
↓ 2 callers
Method
transfer_shape_torch
(self, src_vert)
lib/rbf.py:83
↓ 1 callers
Function
_get_padding
(ksize, stride, dilation)
networks.py:213
↓ 1 callers
Function
_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 callers
Function
_parse_faces_vectorized
Parse loaded homogeneous (tri/quad) face data in a vectorized manner.
lib/meshio.py:347
↓ 1 callers
Function
_parse_vertices
(text)
lib/meshio.py:195
↓ 1 callers
Function
_preprocess_faces
(text, split_object=False)
lib/meshio.py:268
↓ 1 callers
Function
center_crop
(image, img_size)
uv_inpainting.py:436
↓ 1 callers
Method
compute_lm_trans
(self, lm)
lib/image_cropper.py:41
↓ 1 callers
Method
compute_zero_padding
Computes zero padding tuple.
lib/gaussian.py:115
↓ 1 callers
Method
create_nsh_uv_np
(self, nsh_shift_vert, input_image, segments, visible=False)
lib/uv_creator.py:153
↓ 1 callers
Method
create_nsh_uv_torch
(self, nsh_shift_vert, input_image, uv_size)
lib/uv_creator.py:84
↓ 1 callers
Method
forward
(self, x)
lib/loss.py:236
↓ 1 callers
Function
gauss_fcn
(x)
lib/gaussian.py:10
↓ 1 callers
Function
gaussian
(window_size, sigma)
lib/gaussian.py:8
↓ 1 callers
Function
get_args
()
main.py:13
↓ 1 callers
Function
get_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 callers
Method
get_landmarks
(self, image, need_bbox=False)
lib/image_cropper.py:97
↓ 1 callers
Function
get_point_weight
(point, tri_points)
lib/uv_creator.py:232
↓ 1 callers
Function
get_rule_mask
(image)
lib/dataset.py:264
↓ 1 callers
Method
infer_bfm
(self)
create_dataset.py:45
↓ 1 callers
Method
infer_bfm
(self)
lib/deep3d.py:46
↓ 1 callers
Method
init_A
(self)
lib/rbf.py:51
↓ 1 callers
Method
init_renderer
(self)
models.py:172
↓ 1 callers
Method
init_test
(self)
uv_inpainting.py:237
↓ 1 callers
Function
isPointInTri
(point, tri_points)
lib/uv_creator.py:204
↓ 1 callers
Method
load_BFM09
(self)
utils.py:52
↓ 1 callers
Method
load_BFM09
(self)
lib/deep3d.py:128
↓ 1 callers
Method
load_BFM17
(self)
utils.py:66
↓ 1 callers
Method
load_face_mesh
(self)
lib/uv_creator.py:39
↓ 1 callers
Method
load_lm3d
(self)
lib/image_cropper.py:27
↓ 1 callers
Method
load_uvmasks
(self)
models.py:136
↓ 1 callers
Function
main
()
create_dataset.py:90
↓ 1 callers
Function
main
()
main.py:82
↓ 1 callers
Method
predict
(self, images, neutral=False)
create_dataset.py:78
↓ 1 callers
Method
preprocess
(self, image, face_model)
uv_inpainting.py:282
↓ 1 callers
Method
process_image
(self, img, t, s, im_size)
lib/image_cropper.py:63
↓ 1 callers
Function
rasterize_triangles
(vertices, triangles, h, w)
lib/uv_creator.py:263
↓ 1 callers
Function
read_obj
Parse raw OBJ text into vertices, vertex normals, vertex colors, and vertex textures.
lib/meshio.py:140
↓ 1 callers
Function
read_obj_with_group
(filename, swapyz=False)
lib/meshio.py:56
↓ 1 callers
Function
resnet50
Constructs a ResNet-50 model. Args: pretrained (bool): If True, returns a model pre-trained on ImageNet
lib/face_segment.py:232
↓ 1 callers
Method
rotate_vert
(self, vertices, angles, trans)
models.py:476
↓ 1 callers
Method
segment
(self, inputs, batch_size=4, all_seg=False)
lib/face_segment.py:66
↓ 1 callers
Method
segment_torch
(self, images)
lib/face_segment.py:86
↓ 1 callers
Method
test_sample
(self, it=None)
uv_inpainting.py:188
↓ 1 callers
Method
train
(self)
uv_inpainting.py:85
↓ 1 callers
Method
transfer_shape
(self, src_vert, normalize=False)
lib/rbf.py:64
↓ 1 callers
Function
uv_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 callers
Method
val_sample
(self, it=None)
uv_inpainting.py:145
↓ 1 callers
Function
write_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 callers
Function
write_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