MCPcopy Create free account

hub / github.com/OpenTalker/StyleHEAT / functions

Functions1,100 in github.com/OpenTalker/StyleHEAT

↓ 107 callersMethodto
(self, device)
third_part/Deep3DFaceRecon_pytorch/models/bfm.py:79
↓ 78 callersMethodsplit
(self, indices)
third_part/Deep3DFaceRecon_pytorch/models/arcface_torch/eval/verification.py:47
↓ 73 callersMethodload
(self, path_dic)
models/hfgi/editing.py:37
↓ 40 callersMethodget
(self, rimg, landmark)
third_part/Deep3DFaceRecon_pytorch/models/arcface_torch/eval_ijbc.py:75
↓ 30 callersMethodwrite
r"""Record the value
utils/meters.py:124
↓ 20 callersMethodsave
(self,file='index')
third_part/PerceptualSimilarity/util/html.py:47
↓ 19 callersFunctionformat_for_lmdb
(*args)
data/audio_dataset.py:14
↓ 18 callersMethodeval
(self, val_dataset)
trainers/base_trainer.py:392
↓ 18 callersMethodeval
Make models eval mode
third_part/Deep3DFaceRecon_pytorch/models/base_model.py:148
↓ 17 callersMethodtransform
(self, img)
third_part/decalib/utils/lossfunc.py:658
↓ 16 callersMethod__init__
(self, input_nc, norm_layer=nn.BatchNorm2d, nonlinearity=nn.LeakyReLU(), use_spect=False)
models/styleheat/base_function.py:360
↓ 15 callersMethod__init__
(self, kernel, pad, upsample_factor=1)
models/stylegan2/model.py:73
↓ 14 callersFunctionspectral_norm
use spectral normal layer to stable the training process
models/styleheat/base_function.py:152
↓ 13 callersMethodsave_image
r"""Compute visualization images and save them to the disk. Args: path (str): Location of the file. data (dict): Data
trainers/base_trainer.py:412
↓ 12 callersFunctionget_block
(in_channel, depth, num_units, stride=2)
models/e4e/helpers.py:26
↓ 11 callersMethodsave
save the current content to the HMTL file
third_part/Deep3DFaceRecon_pytorch/util/html.py:68
↓ 10 callersMethodbackward
Calculate losses, gradients, and update network weights; called in every training iteration
third_part/Deep3DFaceRecon_pytorch/models/template_model.py:88
↓ 10 callersFunctionconv1x1
1x1 convolution
third_part/Deep3DFaceRecon_pytorch/models/networks.py:152
↓ 9 callersFunction_resnet
( arch: str, block: Type[Union[BasicBlock, Bottleneck]], layers: List[int], pretrained: bool,
third_part/Deep3DFaceRecon_pytorch/models/networks.py:378
↓ 9 callersMethoddecode
(self, codedict, rendering=True, iddict=None, vis_lmk=True, return_vis=True, use_detail=True,
third_part/decalib/deca.py:160
↓ 8 callersMethodclose
Flush, close possible files, and remove stdout/stderr mirroring.
dnnlib/util.py:100
↓ 8 callersMethodencode
(self, x)
models/hfgi/hfgi.py:75
↓ 8 callersMethodforward
(self, in0, in1)
third_part/PerceptualSimilarity/models/networks_basic.py:234
↓ 7 callersMethoddecode
(self, wx, ix, res, output_size=256)
models/hfgi/hfgi.py:85
↓ 7 callersMethodencode
(self, images, use_detail=True)
third_part/decalib/deca.py:139
↓ 7 callersFunctionformat_for_lmdb
(*args)
data/video_dataset.py:14
↓ 7 callersFunctionto_np
(array, dtype=np.float32)
third_part/decalib/models/FLAME.py:27
↓ 7 callersFunctionto_tensor
(array, dtype=torch.float32)
third_part/decalib/models/FLAME.py:24
↓ 7 callersMethodtrain
Make models train mode
third_part/Deep3DFaceRecon_pytorch/models/base_model.py:141
↓ 6 callersMethod__init__
(self, in_channels, out_channels, bilinear=True)
third_part/decalib/models/resnet.py:228
↓ 6 callersMethodforward
(self, x: torch.Tensor, y: torch.Tensor)
loss/lpips.py:144
↓ 6 callersMethodtransform_semantic
(self, semantic, frame_index)
data/audio_dataset.py:336
↓ 5 callersMethod__init__
(self)
loss/lpips.py:101
↓ 5 callersMethod__init__
(self, embedding_size)
third_part/Deep3DFaceRecon_pytorch/models/arcface_torch/backbones/mobilefacenet.py:76
↓ 5 callersMethod__init__
(self, pnet_type='vgg', pnet_rand=False, use_gpu=True)
third_part/PerceptualSimilarity/models/networks_basic.py:23
↓ 5 callersMethod_assign_criteria
(self, name, criterion, weight)
trainers/video_styleheat_trainer.py:84
↓ 5 callersFunction_iresnet
(arch, block, layers, pretrained, progress, **kwargs)
third_part/Deep3DFaceRecon_pytorch/models/arcface_torch/backbones/iresnet.py:157
↓ 5 callersMethodadd_SHlight
sh_coeff: [bz, 9, 3]
third_part/decalib/utils/renderer.py:293
↓ 5 callersFunctionformat_for_lmdb
(*args)
data/vox_dataset.py:14
↓ 5 callersFunctionget_landmark
:param images: PIL list :return: numpy list
utils/video_preprocess/extract_landmark.py:79
↓ 5 callersFunctionget_model
(name, **kwargs)
third_part/Deep3DFaceRecon_pytorch/models/arcface_torch/backbones/__init__.py:5
↓ 5 callersFunctionget_rank
r"""Get rank of the thread.
utils/distributed.py:15
↓ 5 callersMethodworld2uv
warp vertices from world space to uv space vertices: [bz, V, 3] uv_vertices: [bz, 3, h, w]
third_part/decalib/utils/renderer.py:442
↓ 4 callersMethod__init__
(self, coeff_nc, descriptor_nc, layer)
models/styleheat/calibration_net.py:13
↓ 4 callersMethod__init__
( self, block: Type[Union[BasicBlock, Bottleneck]], layers: List[int], num_cla
third_part/Deep3DFaceRecon_pytorch/models/networks.py:266
↓ 4 callersMethod__init__
Constructor
third_part/decalib/utils/lossfunc.py:466
↓ 4 callersMethod_get_save_path
r"""Get the image save path. Args: subdir (str): Sub-directory under the main directory for saving the outputs.
trainers/base_trainer.py:453
↓ 4 callersMethod_make_layer
(self, block: Type[Union[BasicBlock, Bottleneck]], planes: int, blocks: int, stride: int =
third_part/Deep3DFaceRecon_pytorch/models/networks.py:331
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1, dilate=False)
third_part/Deep3DFaceRecon_pytorch/models/arcface_torch/backbones/iresnet.py:114
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1, dilate=False)
third_part/Deep3DFaceRecon_pytorch/models/arcface_torch/backbones/iresnet2060.py:119
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1)
third_part/decalib/models/frnet.py:112
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1)
third_part/decalib/models/resnet.py:47
↓ 4 callersFunctionaccumulate
(model1, model2, decay=0.999)
utils/trainer.py:14
↓ 4 callersMethodadd_images
(self, ims, txts, links, width=400)
third_part/PerceptualSimilarity/util/html.py:35
↓ 4 callersMethodbbox2point
bbox from detector and landmarks are different
third_part/decalib/datasets/datasets.py:86
↓ 4 callersMethodcrop
(self, img_np_list)
utils/video_preprocess/crop_videos.py:147
↓ 4 callersMethodimage_transform
(self, images, lm)
utils/video_preprocess/extract_3dmm.py:41
↓ 4 callersMethodmodel_dict
(self)
third_part/decalib/deca.py:316
↓ 4 callersFunctionpil_to_cv2
(pil_image)
utils/video_util.py:44
↓ 4 callersMethodrender_shape
-- rendering shape with detail normal map
third_part/decalib/utils/renderer.py:337
↓ 4 callersMethodrun
(self)
third_part/Deep3DFaceRecon_pytorch/models/arcface_torch/dataset.py:22
↓ 4 callersMethodtransform
Return: face_shape -- torch.tensor, size (B, N, 3) pts @ rot + trans Parameters: face_shape -- t
third_part/Deep3DFaceRecon_pytorch/models/bfm.py:229
↓ 4 callersMethodtransform_audio
(self, audio_numpy, frame_index, syncnet_mel_step_size)
data/audio_dataset.py:359
↓ 4 callersFunctionzoom_to_res
(img,res=256,order=0,axis=0)
third_part/PerceptualSimilarity/util/visualizer.py:11
↓ 3 callersMethod__init__
(self, coeff_nc, descriptor_nc, layer)
models/styleheat/warper.py:81
↓ 3 callersMethod__init__
(self, local_rank, **kwargs)
third_part/Deep3DFaceRecon_pytorch/models/arcface_torch/dataset.py:43
↓ 3 callersMethod__init__
(self, requires_grad=False, pretrained=True)
third_part/PerceptualSimilarity/models/pretrained_networks.py:98
↓ 3 callersMethodadd_header
Insert a header to the HTML file Parameters: text (str) -- the header text
third_part/Deep3DFaceRecon_pytorch/util/html.py:39
↓ 3 callersMethodadd_images
add images to the HTML file Parameters: ims (str list) -- a list of image paths txts (str list) -- a list of image
third_part/Deep3DFaceRecon_pytorch/util/html.py:48
↓ 3 callersFunctionbatch_kp_2d_l1_loss
Computes the l1 loss between the ground truth keypoints and the predicted keypoints Inputs: kp_gt : N x K x 3 kp_pred: N x K x 2
third_part/decalib/utils/lossfunc.py:129
↓ 3 callersFunctionbatch_rodrigues
Calculates the rotation matrices for a batch of rotation vectors Parameters ---------- rot_vecs: torch.tensor Nx3
third_part/decalib/models/lbs.py:274
↓ 3 callersFunctioncalculate_accuracy
(threshold, dist, actual_issame)
third_part/Deep3DFaceRecon_pytorch/models/arcface_torch/eval/verification.py:109
↓ 3 callersFunctionconv3x3
3x3 convolution with padding
third_part/Deep3DFaceRecon_pytorch/models/networks.py:146
↓ 3 callersFunctioncopy_parameter_from_resnet
(model, resnet_dict)
third_part/decalib/models/resnet.py:156
↓ 3 callersFunctioncreate_dataloader
(opt, is_inference)
data/__init__.py:28
↓ 3 callersMethodcrop
(self, image, kpt)
third_part/decalib/datasets/vox.py:129
↓ 3 callersMethoddata_preprocess
(self, video_path=None, image_path=None)
data/inference_dataset.py:91
↓ 3 callersMethodforward
Function computes the distance between image patches in0 and in1 INPUTS in0, in1 - torch.Tensor object of shape Nx3xXxY - image p
third_part/PerceptualSimilarity/models/dist_model.py:112
↓ 3 callersMethodforward_pair
(self,in1,in2,retPerLayer=False)
third_part/PerceptualSimilarity/models/dist_model.py:106
↓ 3 callersMethodget
(self, device)
third_part/Deep3DFaceRecon_pytorch/models/arcface_torch/utils/utils_amp.py:24
↓ 3 callersMethodget_3dmm
:param images: PIL list :return:
utils/video_preprocess/extract_3dmm.py:64
↓ 3 callersFunctionget_image_list
(flist)
utils/lpips.py:11
↓ 3 callersMethodget_landmarks
Return: face_lms -- torch.tensor, size (B, 68, 2) Parameters: face_proj -- torch.tensor, size
third_part/Deep3DFaceRecon_pytorch/models/bfm.py:242
↓ 3 callersFunctionget_obj_from_module
Traverses the object name and returns the last (rightmost) python object.
dnnlib/util.py:277
↓ 3 callersFunctionget_world_size
r"""Get world size. How many GPUs are available in this job.
utils/distributed.py:24
↓ 3 callersMethodinference
(self, data)
trainers/video_styleheat_trainer.py:181
↓ 3 callersMethodinference
(self, data)
trainers/video_warper_trainer.py:115
↓ 3 callersMethodinverse
(self, x)
models/hfgi/hfgi.py:94
↓ 3 callersFunctionmake_kernel
(k)
models/stylegan2/model.py:19
↓ 3 callersMethodmrf_loss
(self, gen, tar)
third_part/decalib/utils/lossfunc.py:590
↓ 3 callersFunctionplot_verts
Draw 68 key points Args: image: the input image kpt: (68, 3).
third_part/decalib/utils/util.py:609
↓ 3 callersFunctionrot_mat_to_euler
(rot_mats)
third_part/decalib/models/lbs.py:26
↓ 3 callersMethodrun
image: 0-255, uint8, rgb, [h, w, 3] return: detected box list
third_part/decalib/datasets/detectors.py:24
↓ 3 callersMethodsave_checkpoint
r"""Save network weights, optimizer parameters, scheduler parameters to a checkpoint.
trainers/base_trainer.py:202
↓ 3 callersMethodset_requires_grad
(self, state: bool)
loss/lpips.py:58
↓ 3 callersMethodtest
r"""Compute results images for a batch of input data and save the results in the specified folder. Args: data_loader (tor
trainers/base_trainer.py:531
↓ 3 callersFunctionto_cuda
r"""Move all tensors inside data to gpu. Args: data (dict, list, or tensor): Input data.
utils/misc.py:70
↓ 3 callersFunctiontransform_points
(points, tform, points_scale=None, out_scale=None)
third_part/decalib/utils/tensor_cropper.py:118
↓ 3 callersFunctionupfirdn2d
(input, kernel, up=1, down=1, pad=(0, 0))
models/stylegan2/op/upfirdn2d.py:142
↓ 3 callersFunctionvertices2landmarks
Calculates landmarks by barycentric interpolation Parameters ---------- vertices: torch.tensor BxVx3, dtype = torch.float32
third_part/decalib/models/lbs.py:101
next →1–100 of 1,100, ranked by callers