MCPcopy Create free account

hub / github.com/OpenTalker/StyleHEAT / functions

Functions1,100 in github.com/OpenTalker/StyleHEAT

Methodget_image_paths
(self)
third_part/PerceptualSimilarity/models/base_model.py:22
Functionget_intuitive_control
()
utils/inference_util.py:17
Methodget_latent
(self, input)
models/stylegan2/model.py:472
Functionget_loss
(name)
third_part/Deep3DFaceRecon_pytorch/models/arcface_torch/losses.py:5
Functionget_model_optimizer_and_scheduler
(opt)
utils/trainer.py:115
Functionget_module_dir_by_obj_name
Get the directory path of the module containing the given object name.
dnnlib/util.py:306
Functionget_nested_attr
r"""Iteratively try to get the attribute from cfg. If not found, return default. Args: cfg (obj): Config file. attr_name (str
utils/misc.py:141
Functionget_option_setter
(dataset_name)
data/__init__.py:23
Functionget_scheduler
Return a learning rate scheduler Parameters: optimizer -- the optimizer of the network opt (option class) -- stores all
third_part/Deep3DFaceRecon_pytorch/models/networks.py:34
Functionget_skin_mask
(img_path)
third_part/Deep3DFaceRecon_pytorch/util/skin_mask.py:111
Functionget_top_level_function_name
Return the fully-qualified name of a top-level function.
dnnlib/util.py:317
Functionget_train_val_dataloader
(opt)
data/__init__.py:60
Functionget_weight_stats
r"""Get weight state Args: mod: Pytorch module cfg: Configuration object loss_id: Needed when using AMP.
utils/meters.py:28
Functiongrab_patch
(img_in, P, yy, xx)
third_part/PerceptualSimilarity/util/util.py:162
Methodgrad_hook
(grad)
third_part/Deep3DFaceRecon_pytorch/models/base_model.py:53
Functiongradient_dif_loss
(prediction, gt)
third_part/decalib/utils/lossfunc.py:278
Functiongradient_norm
r"""Return the gradient norm of model. Args: model (PyTorch module): Your network.
utils/misc.py:162
Functionhfgi_inversion
(generator, source_image, args, batch_size=1, inv_path=None)
utils/inference_util.py:51
Methodhook_gen
(name)
third_part/Deep3DFaceRecon_pytorch/models/base_model.py:52
Functionimg2tensor
(img)
utils/common.py:82
Functioninfo
Print methods and doc strings. Takes module, class, list, dictionary, or string.
third_part/PerceptualSimilarity/util/util.py:208
Functioninit_cudnn
r"""Initialize the cudnn module. The two things to consider is whether to use cudnn benchmark and whether to use cudnn deterministic. If cudnn
utils/cudnn.py:6
Functioninit_func
r"""Init function Args: m: module to be weight initialized.
utils/init_weight.py:18
Methodinitialize
(self, parser)
third_part/Deep3DFaceRecon_pytorch/options/test_options.py:13
Methodinitialize
(self, parser)
third_part/Deep3DFaceRecon_pytorch/options/inference_options.py:10
Methodinitialize
(self, use_gpu=True)
third_part/PerceptualSimilarity/models/base_model.py:14
Functionis_master
r"""check if current process is the master
utils/distributed.py:45
Functionis_pickleable
(obj: Any)
dnnlib/util.py:224
Functionkl_loss
recon_x: generating images x: origin images mu: latent mean logvar: latent log variance
third_part/decalib/utils/lossfunc.py:19
Functionl2
(p0, p1, range=255.)
third_part/PerceptualSimilarity/util/util.py:44
Functionl2_distance
(verts1, verts2)
third_part/decalib/utils/lossfunc.py:15
Functionl2_norm
(input, axis=1)
models/e4e/helpers.py:16
Functionlambda_rule
(epoch)
third_part/Deep3DFaceRecon_pytorch/models/networks.py:46
Functionlandmark_loss
weighted mse loss Parameters: predict_lm --torch.tensor (B, 68, 2) gt_lm --torch.tensor (B, 68, 2) weight
third_part/Deep3DFaceRecon_pytorch/models/losses.py:56
Functionlandmark_loss
(predicted_landmarks, landmarks_gt, weight=1.)
third_part/decalib/utils/lossfunc.py:145
Functionlandmark_loss_tensor
(predicted_landmarks, landmarks_gt, weight=1.)
third_part/decalib/utils/lossfunc.py:217
Functionlaplacian
(x)
third_part/decalib/utils/util.py:438
Functionlaplacian_hq_loss
(prediction, gt)
third_part/decalib/utils/lossfunc.py:325
Functionlipd_loss
(predicted_landmarks, landmarks_gt, weight=1.)
third_part/decalib/utils/lossfunc.py:184
Functionlist_dir_recursively_with_ignore
List all files recursively in a given directory while ignoring given file and directory names. Returns list of tuples containing both absolute and
dnnlib/util.py:329
Functionload_ResNet101Model
()
third_part/decalib/models/resnet.py:178
Functionload_ResNet152Model
()
third_part/decalib/models/resnet.py:183
Functionload_ResNet50Model
()
third_part/decalib/models/resnet.py:173
Functionload_bin
(path, image_size)
third_part/Deep3DFaceRecon_pytorch/models/arcface_torch/eval/verification.py:200
Methodload_checkpoint
(self, opt, which_iter=None)
trainers/base_trainer.py:211
Methodload_fs_latent
(self, latent_path)
models/hfgi/hfgi.py:186
Functionload_image
(path)
third_part/PerceptualSimilarity/util/util.py:165
Functionload_local_mask
(image_size=256, mode='bbx')
third_part/decalib/utils/util.py:663
Methodload_mask
(self, maskpath, h, w)
third_part/decalib/datasets/train_datasets.py:285
Methodload_mask
(self, maskpath, h, w)
third_part/decalib/datasets/train_datasets.py:378
Methodload_network
(self, network, network_label, epoch_label)
third_part/PerceptualSimilarity/models/base_model.py:44
Methodload_next_video
(self)
data/inference_dataset.py:55
Methodload_next_video
(self)
data/inference_dataset.py:169
Methodload_specific_video
(self, audio_name, video_name, source_image_path, source_3dmm, source_image_name=None)
data/audio_dataset.py:191
Functionlr_step_func
(current_step)
third_part/Deep3DFaceRecon_pytorch/models/arcface_torch/train.py:81
Methodmake_noise
(self)
models/stylegan2/model.py:453
Functionmaster_only
r"""Apply this function only to the master GPU.
utils/distributed.py:33
Functionmaster_only_print
r"""master-only print
utils/distributed.py:51
Methodmean_latent
(self, n_latent)
models/stylegan2/model.py:464
Functionmedian_blur
(x, kernel_size=(3,3))
third_part/decalib/utils/util.py:390
Methodmeta_info
(self)
third_part/Deep3DFaceRecon_pytorch/models/arcface_torch/onnx_helper.py:202
Functionmkdirs
create empty directories if they don't exist Parameters: paths (str list) -- a list of directory paths
third_part/Deep3DFaceRecon_pytorch/util/util.py:132
Functionmkdirs
(paths)
third_part/PerceptualSimilarity/util/util.py:242
Methodmodify_commandline_options
Add new model-specific options, and rewrite default values for existing options. Parameters: parser -- original option p
third_part/Deep3DFaceRecon_pytorch/models/base_model.py:60
Methodmodify_commandline_options
Add new model-specific options and rewrite default values for existing options. Parameters: parser -- the option parser
third_part/Deep3DFaceRecon_pytorch/models/template_model.py:26
Methodmodify_commandline_options
Configures options specific for CUT model
third_part/Deep3DFaceRecon_pytorch/models/facerecon_model.py:20
Functionmontage
( imgs, PAD=5, RATIO=16 / 9., EXTRA_PAD=( False, False), MM=-1,
third_part/PerceptualSimilarity/util/util.py:260
Methodname
(self)
third_part/PerceptualSimilarity/models/base_model.py:11
Functionnumpy2img
(var)
utils/common.py:91
Functionopen_url
Download the given URL and return a binary-mode file object to access the data.
dnnlib/util.py:396
Methodoptimize_parameters
(self, data, if_optimize=True)
trainers/video_styleheat_trainer.py:88
Methodoptimize_parameters
Calculate losses, gradients, and update network weights; called in every training iteration
third_part/Deep3DFaceRecon_pytorch/models/base_model.py:87
Methodoptimize_parameters
Update network weights; it will be called in every training iteration.
third_part/Deep3DFaceRecon_pytorch/models/template_model.py:95
Methodoptimize_parameters
(self, isTrain=True)
third_part/Deep3DFaceRecon_pytorch/models/facerecon_model.py:179
Methodoptimize_parameters
(self)
third_part/PerceptualSimilarity/models/dist_model.py:163
Methodoptimize_parameters
(self)
third_part/PerceptualSimilarity/models/base_model.py:25
Functionparse_args
()
third_part/decalib/utils/config.py:127
Functionperceptual_loss
(id_featureA, id_featureB)
third_part/Deep3DFaceRecon_pytorch/models/losses.py:39
Functionphoto_loss
l2 norm (with sqrt, to ensure backward stabililty, use eps, otherwise Nan may occur) Parameters: imageA --torch.tensor (B, 3, H
third_part/Deep3DFaceRecon_pytorch/models/losses.py:45
Methodplot_current_errors
(self, epoch, counter_ratio, opt, errors)
third_part/PerceptualSimilarity/util/visualizer.py:126
Methodplot_current_errors_save
(self, epoch, counter_ratio, opt, errors,keys='+ALL',name='loss', to_plot=False)
third_part/PerceptualSimilarity/util/visualizer.py:94
Methodplot_current_losses
(self, total_iters, losses)
third_part/Deep3DFaceRecon_pytorch/util/visualizer.py:117
Methodplot_current_losses
(self, total_iters, losses, dataset='train')
third_part/Deep3DFaceRecon_pytorch/util/visualizer.py:205
Functionprep_display_image
(img, dtype='uint8')
third_part/PerceptualSimilarity/util/util.py:201
Methodprint_current_errors
(self, epoch, i, errors, t, t2=-1, t2o=-1, fid=None)
third_part/PerceptualSimilarity/util/visualizer.py:142
Methodprint_current_losses
print current losses on console; also save the losses to the disk Parameters: epoch (int) -- current epoch iters (int
third_part/Deep3DFaceRecon_pytorch/util/visualizer.py:131
Methodprint_current_losses
print current losses on console; also save the losses to the disk Parameters: epoch (int) -- current epoch iters (int
third_part/Deep3DFaceRecon_pytorch/util/visualizer.py:210
Functionprint_network
(net)
third_part/PerceptualSimilarity/models/networks_basic.py:264
Methodprint_networks
Print the total number of parameters in the network and (if verbose) network architecture Parameters: verbose (bool) -- if verbos
third_part/Deep3DFaceRecon_pytorch/models/base_model.py:284
Functionprint_numpy
Print the mean, min, max, median, std, and size of a numpy array Parameters: val (bool) -- if print the values of the numpy array
third_part/Deep3DFaceRecon_pytorch/util/util.py:116
Functionprint_numpy
(x, val=True, shp=False)
third_part/PerceptualSimilarity/util/util.py:231
Functionpsnr
(p0, p1, peak=255.)
third_part/PerceptualSimilarity/util/util.py:47
Functionput_text
(img, text)
utils/video_util.py:53
Functionrad2deg
Function that converts angles from radians to degrees. See :class:`~torchgeometry.RadToDeg` for details. Args: tensor (Tensor): Tens
third_part/decalib/utils/rotation_converter.py:23
Functionrand_flip
(input1,input2)
third_part/PerceptualSimilarity/util/util.py:38
Methodrandom_code
(self, factor=0.1)
models/hfgi/hfgi.py:195
Functionrandom_shift
r"""Randomly shift the input tensor. Args: x (4D tensor): The input batch of images. offset (int): The maximum offset ratio that
utils/misc.py:177
Functionrandom_swap
(obj0,obj1)
third_part/PerceptualSimilarity/util/util.py:415
Functionread_csv_file_as_text
(in_path)
third_part/PerceptualSimilarity/util/util.py:405
Functionread_file
(in_path,list_lines=False)
third_part/PerceptualSimilarity/util/util.py:387
← previousnext →901–1,000 of 1,100, ranked by callers