MCPcopy Create free account

hub / github.com/OpenTalker/StyleHEAT / functions

Functions1,100 in github.com/OpenTalker/StyleHEAT

Functionread_image_feature
(path)
third_part/Deep3DFaceRecon_pytorch/models/arcface_torch/eval_ijbc.py:145
Functionread_image_feature
(path)
third_part/Deep3DFaceRecon_pytorch/models/arcface_torch/onnx_ijbc.py:93
Functionread_score
(path)
third_part/Deep3DFaceRecon_pytorch/models/arcface_torch/eval_ijbc.py:306
Functionread_text_file
(in_path)
third_part/PerceptualSimilarity/util/util.py:22
Functionread_video
:param video_path: :param up_limit: :param resize: :return: PIL list
utils/video_util.py:100
Functionreflectance_loss
minimize texture variance (mse), albedo regularization to ensure an uniform skin albedo Parameters: texture --torch.tensor, (B,
third_part/Deep3DFaceRecon_pytorch/models/losses.py:101
Functionreg_loss
l2 norm without the sqrt, from yu's implementation (mse) tf.nn.l2_loss https://www.tensorflow.org/api_docs/python/tf/nn/l2_loss Parameter
third_part/Deep3DFaceRecon_pytorch/models/losses.py:76
Functionremove_module
(state_dict)
third_part/decalib/utils/util.py:563
Methodrender_colors
-- rendering colors: could be rgb color/ normals, etc colors: [bz, num of vertices, 3]
third_part/decalib/utils/renderer.py:426
Methodrender_depth
-- rendering depth
third_part/decalib/utils/renderer.py:405
Functionrequires_grad
r""" Set a model to require gradient or not. Args: model (nn.Module): Neural network model. require (bool): Whether the network r
utils/misc.py:36
Methodreset
Reset the self.saved status
third_part/Deep3DFaceRecon_pytorch/util/visualizer.py:77
Functionresize_image
(img, max_size=256)
third_part/PerceptualSimilarity/util/util.py:180
Functionresize_image_zoom
(img, zoom_factor=1., order=3)
third_part/PerceptualSimilarity/util/util.py:190
Functionresnet101
r"""ResNet-101 model from `"Deep Residual Learning for Image Recognition" <https://arxiv.org/pdf/1512.03385.pdf>`_. Args: pretrained
third_part/Deep3DFaceRecon_pytorch/models/networks.py:430
Functionresnet152
r"""ResNet-152 model from `"Deep Residual Learning for Image Recognition" <https://arxiv.org/pdf/1512.03385.pdf>`_. Args: pretrained
third_part/Deep3DFaceRecon_pytorch/models/networks.py:442
Functionresnet18
r"""ResNet-18 model from `"Deep Residual Learning for Image Recognition" <https://arxiv.org/pdf/1512.03385.pdf>`_. Args: pretrained (
third_part/Deep3DFaceRecon_pytorch/models/networks.py:394
Functionresnet34
r"""ResNet-34 model from `"Deep Residual Learning for Image Recognition" <https://arxiv.org/pdf/1512.03385.pdf>`_. Args: pretrained (
third_part/Deep3DFaceRecon_pytorch/models/networks.py:406
Functionresnet50
r"""ResNet-50 model from `"Deep Residual Learning for Image Recognition" <https://arxiv.org/pdf/1512.03385.pdf>`_. Args: pretrained (
third_part/Deep3DFaceRecon_pytorch/models/networks.py:418
Functionresnext101_32x8d
r"""ResNeXt-101 32x8d model from `"Aggregated Residual Transformation for Deep Neural Networks" <https://arxiv.org/pdf/1611.05431.pdf>`_. Arg
third_part/Deep3DFaceRecon_pytorch/models/networks.py:468
Functionresnext50_32x4d
r"""ResNeXt-50 32x4d model from `"Aggregated Residual Transformation for Deep Neural Networks" <https://arxiv.org/pdf/1611.05431.pdf>`_. Args
third_part/Deep3DFaceRecon_pytorch/models/networks.py:454
Functionrgb2lab
(in_img,mean_cent=False)
third_part/PerceptualSimilarity/util/util.py:54
Functionring_loss
computes ring loss for ring_outputs before FLAME decoder Inputs: ring_outputs = a list containing N streams of the ring;
third_part/decalib/utils/lossfunc.py:223
Functionrsetattr
Recursively find object and set value
configs/config.py:187
Functionrun
(data)
utils/video_preprocess/crop_videos.py:201
Methodrun
An api for running deca given an image path
third_part/decalib/deca.py:307
Methodrun
image: 0-255, uint8, rgb, [h, w, 3] return: detected box
third_part/decalib/datasets/detectors.py:47
Methodsave
(self, path, label)
third_part/PerceptualSimilarity/models/dist_model.py:235
Methodsave_coeff
(self,name)
third_part/Deep3DFaceRecon_pytorch/models/facerecon_model.py:221
Methodsave_done
(self, flag=False)
third_part/PerceptualSimilarity/models/base_model.py:57
Functionsave_flow
(path, flow)
utils/flow_util.py:80
Functionsave_image
Save a numpy image to the disk Parameters: image_numpy (numpy array) -- input numpy array image_path (str) -- the path o
third_part/Deep3DFaceRecon_pytorch/util/util.py:96
Functionsave_image
(image_numpy, image_path, )
third_part/PerceptualSimilarity/util/util.py:196
Functionsave_images
Save images to the disk. Parameters: webpage (the HTML class) -- the HTML webpage class that stores these imaegs (see html.py for more de
third_part/Deep3DFaceRecon_pytorch/util/visualizer.py:13
Methodsave_images
(self, webpage, images, names, image_path, title='')
third_part/PerceptualSimilarity/util/visualizer.py:174
Methodsave_images_simple
(self, webpage, images, names, in_txts, prefix='', res=256)
third_part/PerceptualSimilarity/util/visualizer.py:152
Methodsave_mesh
(self, name)
third_part/Deep3DFaceRecon_pytorch/models/facerecon_model.py:210
Methodsave_networks
Save all the networks to the disk. Parameters: epoch (int) -- current epoch; used in the file name '%s_net_%s.pth' % (epoch, name
third_part/Deep3DFaceRecon_pytorch/models/base_model.py:200
Methodsave_obj
vertices: [nv, 3], tensor texture: [3, h, w], tensor
third_part/decalib/deca.py:278
Functionscale_trans
(img, lm, t, s)
third_part/Deep3DFaceRecon_pytorch/util/preprocess.py:98
Functionscore_2afc_dataset
Function computes Two Alternative Forced Choice (2AFC) score using distance function 'func' in dataset 'data_loader' INPUTS data_
third_part/PerceptualSimilarity/models/dist_model.py:251
Functionscore_jnd_dataset
Function computes JND score using distance function 'func' in dataset 'data_loader' INPUTS data_loader - CustomDatasetDataLoader object -
third_part/PerceptualSimilarity/models/dist_model.py:288
Functionset_cache_dir
(path: str)
dnnlib/util.py:120
Methodset_input
Unpack input data from the dataloader and perform necessary pre-processing steps. Parameters: input (dict): includes the data its
third_part/Deep3DFaceRecon_pytorch/models/base_model.py:73
Methodset_input
Unpack input data from the dataloader and perform necessary pre-processing steps. Parameters: input: a dictionary that contains t
third_part/Deep3DFaceRecon_pytorch/models/template_model.py:73
Methodset_input
Unpack input data from the dataloader and perform necessary pre-processing steps. Parameters: input: a dictionary that contains t
third_part/Deep3DFaceRecon_pytorch/models/facerecon_model.py:124
Methodset_progressive_stage
(self, new_stage: ProgressiveStage)
models/e4e/e4e.py:101
Methodset_requires_grad
Set requies_grad=Fasle for all the networks to avoid unnecessary computations Parameters: nets (network list) -- a list of netwo
third_part/Deep3DFaceRecon_pytorch/models/base_model.py:302
Functionshading_smooth_loss
assume: shading should be smooth ref: Lifting AutoEncoders: Unsupervised Learning of a Fully-Disentangled 3D Morphable Model using Deep Non-R
third_part/decalib/utils/lossfunc.py:47
Functionshading_white_loss
regularize lighting: assume lights close to white
third_part/decalib/utils/lossfunc.py:37
Functionsingle_reproject
(orig_dir_path, recon_dir_path, save_dir_path, state_dir_path, seamless=False)
utils/video_util.py:416
Functionsplit_labels
r"""Split concatenated labels into their parts. Args: labels (torch.Tensor): Labels obtained through concatenation. label_lengths
utils/misc.py:11
Functionstandard_rasterize_colors
third_part/decalib/utils/rasterizer/standard_rasterize_cuda.cpp:32
Functionstr2bool
(v)
third_part/Deep3DFaceRecon_pytorch/util/util.py:14
Functiontensor2grayimg
(var)
utils/common.py:71
Functiontensor2im
(var, vmin=-1, vmax=1)
utils/logging.py:50
Functiontensor2image
(tensor)
third_part/decalib/utils/util.py:538
Functiontensor2img_np
(var)
utils/common.py:57
Functiontensor2map
(var)
utils/common.py:8
Functiontensor2sketch
(var)
utils/common.py:27
Functiontensor2tensorlab
(image_tensor,to_norm=True,mc_only=False)
third_part/PerceptualSimilarity/util/util.py:97
Functiontensor2vec
(vector_tensor)
third_part/PerceptualSimilarity/util/util.py:147
Functiontensor_vis_landmarks
(images, landmarks, gt_landmarks=None, color = 'g', isScale=True)
third_part/decalib/utils/util.py:631
Functiontensorlab2tensor
(lab_tensor,return_inbnd=False)
third_part/PerceptualSimilarity/util/util.py:113
Functiontest
(data_set, backbone, batch_size, nfolds=10)
third_part/Deep3DFaceRecon_pytorch/models/arcface_torch/eval/verification.py:227
Methodtest
(self, data_loader, output_dir, current_iteration=-1, test_limit=100)
trainers/video_styleheat_trainer.py:216
Methodtest
(self, data_loader, output_dir, current_iteration=-1, test_limit=100)
trainers/video_warper_trainer.py:152
Functiontest_audio_warper
()
models/styleheat/warper.py:145
Functiontest_visualize_flow
()
utils/flow_util.py:216
Functionto_cpu
r"""Move all tensors inside data to cpu. Args: data (dict, list, or tensor): Input data.
utils/misc.py:79
Functionto_float
r"""Move all halfs to float. Args: data (dict, list or tensor): Input data.
utils/misc.py:106
Functionto_half
r"""Move all floats to half. Args: data (dict, list or tensor): Input data.
utils/misc.py:88
Methodtransform_points
(self, points, tform, points_scale=None, normalize = True)
third_part/decalib/utils/tensor_cropper.py:100
Functiontruncated_gaussian
r"""Apply the truncated gaussian trick to trade diversity for quality Args: threshold (float): Truncation threshold. size (list o
utils/misc.py:200
Functiontuple_product
Calculate the product of the tuple elements.
dnnlib/util.py:177
Methodupdate_learning_rate
Update learning rates for all the networks; called at the end of every epoch
third_part/Deep3DFaceRecon_pytorch/models/base_model.py:173
Methodupdate_learning_rate
(self,nepoch_decay)
third_part/PerceptualSimilarity/models/dist_model.py:239
Methodupdate_learning_rate
()
third_part/PerceptualSimilarity/models/base_model.py:51
Functionupfirdn2d
models/stylegan2/op/upfirdn2d.cpp:12
Functionupfirdn2d_native
( input, kernel, up_x, up_y, down_x, down_y, pad_x0, pad_x1, pad_y0, pad_y1 )
models/stylegan2/op/upfirdn2d.py:150
Functionupsample_mesh
Credit to Timo upsampling coarse mesh (with displacment map) vertices: vertices of coarse mesh, [nv, 3] normals: vertex normals,
third_part/decalib/utils/util.py:27
Functionvarname
(p)
third_part/PerceptualSimilarity/util/util.py:224
Functionverification2
(template_norm_feats=None, unique_templates=None, p1=None,
third_part/Deep3DFaceRecon_pytorch/models/arcface_torch/eval_ijbc.py:282
Functionverification2
(template_norm_feats=None, unique_templates=None, p1=None,
third_part/Deep3DFaceRecon_pytorch/models/arcface_torch/onnx_ijbc.py:147
Functionvertex_normals
:param vertices: [batch size, number of vertices, 3] :param faces: [batch size, number of faces, 3] :return: [batch size, number of verti
third_part/decalib/utils/util.py:249
Functionvideo_reproject
(orig_dir_path, recon_dir_path, save_dir_path, state_dir_path, output_size=1024, seamless=False)
utils/video_util.py:369
Functionvideo_to_frames
(video_path, frame_path, img_format='.jpg', resize=False)
utils/video_util.py:182
Methodvisualize
image range should be [0,1] dim: 2 for horizontal. 1 for vertical
third_part/decalib/deca.py:259
Functionvisualize_grid
image range should be [0,1] dim: 2 for horizontal. 1 for vertical
third_part/decalib/utils/util.py:684
Functionvoc_ap
ap = voc_ap(rec, prec, [use_07_metric]) Compute VOC AP given precision and recall. If use_07_metric is true, uses the VOC 07 11 point met
third_part/PerceptualSimilarity/util/util.py:421
Functionwarp_image
r"""warp the input image according to the deformation Args: source_image (tensor): source images to be warpped deformation (tenso
utils/flow_util.py:44
Functionweighted_landmark_loss
(predicted_landmarks, landmarks_gt, weight=1.)
third_part/decalib/utils/lossfunc.py:195
Functionwide_resnet101_2
r"""Wide ResNet-101-2 model from `"Wide Residual Networks" <https://arxiv.org/pdf/1605.07146.pdf>`_. The model is the same as ResNet except f
third_part/Deep3DFaceRecon_pytorch/models/networks.py:500
Functionwide_resnet50_2
r"""Wide ResNet-50-2 model from `"Wide Residual Networks" <https://arxiv.org/pdf/1605.07146.pdf>`_. The model is the same as ResNet except fo
third_part/Deep3DFaceRecon_pytorch/models/networks.py:482
Functionwrapper
r"""Simple function wrapper for the master function
utils/distributed.py:36
Functionwrite2video
(results_dir, *video_list)
utils/video_util.py:16
Functionwrite2video
(results_dir, *video_list)
utils/common.py:95
Functionwrite_list
(lms_list, imgs_list, msks_list, mode='train',save_folder='datalist', save_name='')
third_part/Deep3DFaceRecon_pytorch/util/generate_list.py:7
Functionwrite_obj
Save 3D face model with texture. Ref: https://github.com/patrikhuber/eos/blob/bd00155ebae4b1a13b08bf5a991694d682abbada/include/eos/core/Mesh.hpp
third_part/decalib/utils/util.py:64
Methodyaml
Convert object to yaml dict and return.
configs/config.py:24
← previous1,001–1,100 of 1,100, ranked by callers