MCPcopy Create free account

hub / github.com/OpenTalker/StyleHEAT / functions

Functions1,100 in github.com/OpenTalker/StyleHEAT

↓ 3 callersFunctionweights_init
r"""Initialize weights in the network. Args: init_type (str): The name of the initialization scheme. gain (float): The parameter
utils/init_weight.py:4
↓ 3 callersMethodwrite_metrics
r"""Write metrics to the tensorboard.
trainers/base_trainer.py:435
↓ 2 callersMethod__init__
(self, channels, reduction)
models/e4e/helpers.py:58
↓ 2 callersMethod__init__
(self, latent_avg)
models/e4e/e4e.py:136
↓ 2 callersMethod__init__
(self, image_size, obj_filename, uv_size=256, rasterizer_type='pytorch3d')
third_part/decalib/utils/renderer.py:173
↓ 2 callersMethod__init__
(self, block, layers, num_classes=1000, include_top=True)
third_part/decalib/models/frnet.py:87
↓ 2 callersMethod_assign_criteria
(self, name, criterion, weight)
trainers/video_warper_trainer.py:64
↓ 2 callersFunction_calculate_model_size
r"""Calculate number of parameters in a PyTorch network. Args: model (obj): PyTorch network. Returns: (int): Number of param
utils/trainer.py:149
↓ 2 callersMethod_flush_meters
r"""Flush all meters using the current iteration.
trainers/base_trainer.py:190
↓ 2 callersMethod_print_current_errors
(self)
trainers/base_trainer.py:349
↓ 2 callersFunction_upsample_add
Upsample and add two feature maps. Args: x: (Variable) top feature map to be upsampled. y: (Variable) lateral feature map. Returns
models/e4e/helpers.py:123
↓ 2 callersMethod_write_tensorboard
r"""Write values to tensorboard. By default, we will log the time used per iteration, time used per epoch, generator learning rate, and
trainers/base_trainer.py:121
↓ 2 callersMethod_write_to_meters
r"""Write values to meters.
trainers/base_trainer.py:185
↓ 2 callersMethodadd_directionlight
normals: [bz, nv, 3] lights: [bz, nlight, 6] returns: shading: [bz, nv, 3]
third_part/decalib/utils/renderer.py:322
↓ 2 callersMethodadd_header
(self, str)
third_part/PerceptualSimilarity/util/html.py:27
↓ 2 callersFunctionalign_face_single
:param img: PIL Image :return: PIL Image
utils/video_preprocess/align_face.py:10
↓ 2 callersFunctionapply_imagenet_normalization
r"""Normalize using ImageNet mean and std. Args: input (4D tensor NxCxHxW): The input images, assuming to be [-1, 1]. Returns:
loss/perceptual.py:7
↓ 2 callersFunctioncalculate_val_far
(threshold, dist, actual_issame)
third_part/Deep3DFaceRecon_pytorch/models/arcface_torch/eval/verification.py:165
↓ 2 callersMethodcheck
(self, track='cfat', test_img = None)
third_part/Deep3DFaceRecon_pytorch/models/arcface_torch/onnx_helper.py:22
↓ 2 callersMethodcheckpoint
(self, func, num_seg, x)
third_part/Deep3DFaceRecon_pytorch/models/arcface_torch/backbones/iresnet2060.py:145
↓ 2 callersMethodcompute_gram
(self, x)
loss/perceptual.py:163
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
third_part/Deep3DFaceRecon_pytorch/models/arcface_torch/backbones/iresnet.py:7
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
third_part/Deep3DFaceRecon_pytorch/models/arcface_torch/backbones/iresnet2060.py:10
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
third_part/decalib/models/frnet.py:10
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
third_part/decalib/models/resnet.py:120
↓ 2 callersFunctioncrop
(img, bbox)
third_part/Deep3DFaceRecon_pytorch/util/preprocess.py:85
↓ 2 callersFunctioncv2_to_pil
(open_cv_image)
utils/video_util.py:49
↓ 2 callersMethoddisplacement2normal
Convert displacement map into detail normal map
third_part/decalib/deca.py:116
↓ 2 callersMethodend_of_epoch
r"""Things to do after an epoch. Args: data (dict): Data used for the current iteration. current_epoch (int): Curren
trainers/base_trainer.py:361
↓ 2 callersMethodend_of_iteration
r"""Things to do after an iteration. Args: data (dict): Data used for the current iteration. current_epoch (int): Cur
trainers/base_trainer.py:288
↓ 2 callersFunctioneuler_to_quaternion
(r)
third_part/decalib/utils/rotation_converter.py:67
↓ 2 callersFunctionextract_5p
(lm)
third_part/Deep3DFaceRecon_pytorch/util/preprocess.py:160
↓ 2 callersFunctioneye_dis
(landmarks)
third_part/decalib/utils/lossfunc.py:157
↓ 2 callersFunctionfind_coeffs
(pa, pb)
utils/video_util.py:357
↓ 2 callersFunctionfind_dataset_using_name
(dataset_name)
data/__init__.py:7
↓ 2 callersFunctionfind_model_using_name
Import the module "models/[model_name]_model.py". In the file, the class called DatasetNameModel() will be instantiated. It has to be a subcl
third_part/Deep3DFaceRecon_pytorch/models/__init__.py:25
↓ 2 callersMethodflush
r"""Write the value in the tensorboard. Args: step (int): Epoch or iteration number.
utils/meters.py:129
↓ 2 callersMethodflush
Flush written text to both stdout and a file, if open.
dnnlib/util.py:93
↓ 2 callersMethodforward_db
(self, batch_data)
third_part/Deep3DFaceRecon_pytorch/models/arcface_torch/eval_ijbc.py:104
↓ 2 callersFunctionfused_leaky_relu
(input, bias, negative_slope=0.2, scale=2 ** 0.5)
models/stylegan2/op/fused_act.py:84
↓ 2 callersFunctionget_gaussian_kernel
r"""Function that returns Gaussian filter coefficients. Args: kernel_size (int): filter size. It should be odd and positive. sigm
third_part/decalib/utils/util.py:304
↓ 2 callersMethodget_image_dir
(self)
third_part/PerceptualSimilarity/util/html.py:24
↓ 2 callersFunctionget_module_from_obj_name
Searches for the underlying module behind the name to some python object. Returns the module and the object name (original name with module part r
dnnlib/util.py:236
↓ 2 callersFunctionget_scheduler
Return the scheduler object. Args: opt_opt (obj): Config for the specific optimization module (gen/dis). opt (obj): PyTorch optim
utils/trainer.py:161
↓ 2 callersFunctionim2tensor
(image, imtype=np.uint8, cent=1., factor=255./2.)
third_part/PerceptualSimilarity/util/util.py:142
↓ 2 callersMethodinitialize
INPUTS model - ['net-lin'] for linearly calibrated network ['net'] for off-the-shelf network
third_part/PerceptualSimilarity/models/dist_model.py:29
↓ 2 callersMethodlikelihood
(self, data)
third_part/Deep3DFaceRecon_pytorch/util/skin_mask.py:23
↓ 2 callersFunctionlip_dis
(landmarks)
third_part/decalib/utils/lossfunc.py:176
↓ 2 callersFunctionload_obj
Ref: https://github.com/facebookresearch/pytorch3d/blob/25c065e9dafa90163e7cec873dbb324a637c68b7/pytorch3d/io/obj_io.py Load a mesh from a file-l
third_part/decalib/utils/util.py:158
↓ 2 callersFunctionmkdir
create a single empty directory if it didn't exist Parameters: path (str) -- a single directory path
third_part/Deep3DFaceRecon_pytorch/util/util.py:145
↓ 2 callersFunctionmkdir
(path)
third_part/PerceptualSimilarity/util/util.py:250
↓ 2 callersMethodmrf_loss
(self, gen, tar)
third_part/decalib/utils/lossfunc.py:409
↓ 2 callersMethodnext
(self)
third_part/Deep3DFaceRecon_pytorch/models/arcface_torch/dataset.py:28
↓ 2 callersFunctionnormalize_blob
(in_feat,eps=1e-10)
third_part/PerceptualSimilarity/util/util.py:61
↓ 2 callersFunctionnormalize_tensor
(in_feat,eps=1e-10)
third_part/PerceptualSimilarity/util/util.py:72
↓ 2 callersFunctionnp2tensor
(np_obj)
third_part/PerceptualSimilarity/util/util.py:93
↓ 2 callersMethodoptimize_parameters
(self, data, if_optimize=True)
trainers/video_warper_trainer.py:68
↓ 2 callersMethodpreload
(self)
third_part/Deep3DFaceRecon_pytorch/models/arcface_torch/dataset.py:54
↓ 2 callersFunctionquaternion_to_angle_axis
Convert quaternion vector to angle axis of rotation. TODO: CORRECT Adapted from ceres C++ library: ceres-solver/include/ceres/rotation.h Arg
third_part/decalib/utils/rotation_converter.py:250
↓ 2 callersFunctionquaternion_to_rotation_matrix
Convert quaternion coefficients to rotation matrix. Args: quat: size = [B, 4] 4 <===>(w, x, y, z) Returns: Rotation matrix cor
third_part/decalib/utils/rotation_converter.py:228
↓ 2 callersFunctionreenactment
:param generator: :param data: { video_name: <class 'str'> source_image: <class 'torch.Tensor'> (3, 256, 256) source_
inference.py:13
↓ 2 callersMethodreg_features
(self, x)
third_part/decalib/utils/lossfunc.py:647
↓ 2 callersMethodreset
(self)
third_part/Deep3DFaceRecon_pytorch/models/arcface_torch/utils/utils_logging.py:17
↓ 2 callersFunctionresize_n_crop
(image, M, dsize=112)
third_part/Deep3DFaceRecon_pytorch/models/losses.py:7
↓ 2 callersMethodsave
(self, label)
third_part/PerceptualSimilarity/models/base_model.py:34
↓ 2 callersMethodsave_network
(self, network, path, network_label, epoch_label)
third_part/PerceptualSimilarity/models/base_model.py:38
↓ 2 callersMethodsplit_coeff
Return: coeffs_dict -- a dict of torch.tensors Parameters: coeffs -- torch.tensor, size (B, 256
third_part/Deep3DFaceRecon_pytorch/models/bfm.py:252
↓ 2 callersMethodstart_of_epoch
r"""Things to do before an epoch. Args: current_epoch (int): Current number of epoch.
trainers/base_trainer.py:263
↓ 2 callersMethodstart_of_iteration
r"""Things to do before an iteration. Args: data (dict): Data used for the current iteration. current_iteration (int)
trainers/base_trainer.py:273
↓ 2 callersFunctionto_device
r"""Move all tensors inside data to device. Args: data (dict, list, or tensor): Input data. device (str): 'cpu' or 'cuda'.
utils/misc.py:50
↓ 2 callersMethodtransform_semantic
(self, semantic, frame_index)
data/video_dataset.py:138
↓ 2 callersMethodtransform_semantic
(self, semantic, frame_index)
data/vox_dataset.py:127
↓ 2 callersMethodupdate
Set updated weight and weight_mom to memory bank.
third_part/Deep3DFaceRecon_pytorch/models/arcface_torch/partial_fc.py:133
↓ 2 callersMethodupdate
(self, val, n=1)
third_part/Deep3DFaceRecon_pytorch/models/arcface_torch/utils/utils_logging.py:23
↓ 2 callersFunctionvideo2sequence
(video_path)
third_part/decalib/datasets/train_datasets.py:393
↓ 2 callersMethodwrite_data_tensorboard
(self, data, epoch, iteration)
trainers/base_trainer.py:403
↓ 1 callersFunctionBBRegression
(points, params)
third_part/Deep3DFaceRecon_pytorch/util/preprocess.py:42
↓ 1 callersFunctionLoadExpBasis
(bfm_folder='BFM')
third_part/Deep3DFaceRecon_pytorch/util/load_mats.py:11
↓ 1 callersFunctionPOS
(xp, x)
third_part/Deep3DFaceRecon_pytorch/util/preprocess.py:17
↓ 1 callersMethodVideo_Item
(self, video_name)
data/audio_dataset.py:100
↓ 1 callersMethodVideo_Item
(self, video_name)
data/video_dataset.py:70
↓ 1 callersMethodVideo_Item
(self, video_name)
data/vox_dataset.py:70
↓ 1 callersMethod__getattr__
(self, name: str)
dnnlib/util.py:43
↓ 1 callersMethod__getitem__
(self, idx)
data/inference_dataset.py:28
↓ 1 callersMethod__init__
(self, filename=None, args=None, verbose=False, is_train=True)
configs/config.py:70
↓ 1 callersMethod__init__
(self, opts=None)
models/hfgi/backbone.py:9
↓ 1 callersMethod__init__
(self, network='vgg19', layers='relu_4_1', weights=None, criterion='l1', resize=False, resize
loss/perceptual.py:41
↓ 1 callersMethod__init__
(self, s=64.0, m=0.40)
third_part/Deep3DFaceRecon_pytorch/models/arcface_torch/losses.py:15
↓ 1 callersMethod__init__
(self, block, layers, dropout=0, num_features=512, zero_init_residual=False,
third_part/Deep3DFaceRecon_pytorch/models/arcface_torch/backbones/iresnet.py:62
↓ 1 callersMethod__init__
(self, block, layers, dropout=0, num_features=512, zero_init_residual=False,
third_part/Deep3DFaceRecon_pytorch/models/arcface_torch/backbones/iresnet2060.py:67
↓ 1 callersMethod__init__
(self, config)
third_part/decalib/models/FLAME.py:43
↓ 1 callersMethod__repr__
Print all variables.
configs/config.py:42
↓ 1 callersFunction_alexnet
r"""Get alexnet layers
loss/perceptual.py:238
↓ 1 callersFunction_bgr2ycbcr
(bgr)
third_part/Deep3DFaceRecon_pytorch/util/skin_mask.py:54
↓ 1 callersFunction_compute_binary_kernel
r"""Creates a binary kernel to extract the patches. If the window size is HxW will create a (H*W)xHxW kernel.
third_part/decalib/utils/util.py:380
↓ 1 callersMethod_compute_metrics
r"""Return the evaluation result.
trainers/base_trainer.py:470
↓ 1 callersMethod_cos_metric
(self, x1, x2)
third_part/decalib/utils/lossfunc.py:664
↓ 1 callersMethod_create_model
(self, model_cfg)
third_part/decalib/deca.py:69
↓ 1 callersMethod_end_of_epoch
r"""Operations to do after an epoch. Args: data (dict): Data used for the current iteration. current_epoch (int): Cur
trainers/base_trainer.py:505
↓ 1 callersMethod_end_of_iteration
r"""Operations to do after an iteration. Args: data (dict): Data used for the current iteration. current_epoch (int):
trainers/base_trainer.py:495
← previousnext →101–200 of 1,100, ranked by callers