MCPcopy Create free account

hub / github.com/YZY-stack/DF40 / functions

Functions1,098 in github.com/YZY-stack/DF40

Methodforward
(self, x)
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/resnet_helper.py:186
Methodforward
(self, x)
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/resnet_helper.py:311
Methodforward
(self, x)
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/resnet_helper.py:438
Methodforward
(self, inputs)
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/resnet_helper.py:616
Methodforward
(self, x)
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/stem_helper.py:92
Methodforward
(self, x)
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/stem_helper.py:173
Methodforward
(self, x)
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/unet_helper.py:67
Methodforward
(self, x)
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/unet_helper.py:86
Methodforward
(self, x)
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/unet_helper.py:154
Methodforward
(self, inputs)
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/head_helper.py:74
Methodforward
(self, attention_map_real, attention_map_fake, feature_patch, real_feature_mean, real_inv_covariance,
DeepfakeBench_DF40/training/loss/patch_consistency_loss.py:38
Methodforward
(self, feat, inputs, targets)
DeepfakeBench_DF40/training/loss/consistency_loss.py:19
Methodforward
(self, feat)
DeepfakeBench_DF40/training/loss/consistency_loss.py:39
Methodforward
(self, feat)
DeepfakeBench_DF40/training/loss/consistency_loss.py:50
Methodforward
(self, cos_theta, target)
DeepfakeBench_DF40/training/loss/am_softmax.py:55
Methodforward
(self, cos_theta, target)
DeepfakeBench_DF40/training/loss/am_softmax.py:117
Methodforward
(self, *args, **kwargs)
DeepfakeBench_DF40/training/loss/vgg_loss.py:41
Methodforward
(self, input, target=None)
DeepfakeBench_DF40/training/loss/vgg_loss.py:77
Methodforward
(self, input, target, target_is_features=False)
DeepfakeBench_DF40/training/loss/vgg_loss.py:137
Methodforward
Computes the bce loss. Args: inputs: A PyTorch tensor of size (batch_size, num_classes) containing the predicted scores.
DeepfakeBench_DF40/training/loss/bce_loss.py:12
Methodforward
Computes the l1 loss.
DeepfakeBench_DF40/training/loss/l1_loss.py:12
Methodforward
(self, common, specific, spe_label)
DeepfakeBench_DF40/training/loss/contrastive_regularization.py:51
Methodforward
Args: pred: prediction of the model label: ground truth label Return: loss: loss val
DeepfakeBench_DF40/training/loss/abstract_loss_func.py:8
Methodforward
Compute loss for model. If both `labels` and `mask` are None, it degenerates to SimCLR unsupervised loss: https://arxiv.org/pdf/2002.0
DeepfakeBench_DF40/training/loss/supercontrast_loss.py:24
Methodforward
Computes the Jensen-Shannon divergence loss.
DeepfakeBench_DF40/training/loss/js_loss.py:13
Methodforward
Computes the capsule loss. Args: inputs: A PyTorch tensor of size (batch_size, num_classes) containing the predicted sco
DeepfakeBench_DF40/training/loss/capsule_loss.py:12
Methodforward
Computes the cross-entropy loss. Args: inputs: A PyTorch tensor of size (batch_size, num_classes) containing the predict
DeepfakeBench_DF40/training/loss/cross_entropy_loss.py:12
Methodforward
(self, x1, x2)
DeepfakeBench_DF40/training/loss/id_loss.py:13
Methodforward
(self, inputs, targets)
DeepfakeBench_DF40/training/loss/classNseg_loss.py:16
Methodforward
(self, zero, one, labels)
DeepfakeBench_DF40/training/loss/classNseg_loss.py:42
Methodforward
(self, reconstruction, groundtruth)
DeepfakeBench_DF40/training/loss/classNseg_loss.py:52
Methodforward
(self, segment, groundtruth)
DeepfakeBench_DF40/training/loss/classNseg_loss.py:61
Methodforward_plus
(self, x, y, net)
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:1288
Methodforward_plus
(self, x, y, net)
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:1509
Methodforward_plus
(self, x, y, net)
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:1741
Methodforward_plus
(self, x, y, net)
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:1975
Methodforward_plus
(self, x, y, net)
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:2209
Methodforward_plus
(self, x, y, net)
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:2443
Methodforward_plus
(self, x, y, net)
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:2677
Functionfreeze_net
(model: nn.Module, freeze_prefixs)
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/unet_helper.py:91
Functionfrozen_bn_stats
Set all the bn layers to eval mode. Args: model (model): model to set bn layers to eval mode.
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/misc.py:230
Functionget_accracy
(output, label)
DeepfakeBench_DF40/training/metrics/base_metrics_class.py:8
Functionget_align_mat
(face, size, should_align_eyes)
DeepfakeBench_DF40/training/dataset/utils/face_align.py:27
Functionget_align_mat_new
(src_lmk, tgt_lmk, size=256, should_align_eyes=False)
DeepfakeBench_DF40/training/dataset/utils/face_align.py:66
Functionget_alpha_blend_mask
(mask)
DeepfakeBench_DF40/training/dataset/sbi_api.py:63
Functionget_class_names
Read json file with entries {classname: index} and return an array of class names in order. If parent_path is provided, load and map all
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/misc.py:290
Functionget_cls_net
(config, **kwargs)
DeepfakeBench_DF40/training/networks/cls_hrnet.py:567
Functionget_default_mask
Set the default mask for cli
DeepfakeBench_DF40/training/dataset/library/DeepFakeMask.py:30
Functionget_default_mask
Set the default mask for cli
DeepfakeBench_DF40/training/dataset/utils/DeepFakeMask.py:106
Functionget_epoch_lr
Retrieves the lr for the given epoch (as specified by the lr policy). Args: cfg (config): configs of hyper-parameters of ADAM, includ
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/optimizer.py:72
Methodget_global_avg
Calculate the global mean value.
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/meters.py:419
Functionget_iter_lr
Retrieves the lr for the given iter (as specified by the lr policy). Args: cfg (config): configs of hyper-parameters of ADAM, include
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/optimizer.py:82
Functionget_local_rank
Returns: The rank of the current process within the local (per-machine) process group.
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/distributed.py:289
Functionget_local_size
Returns: The size of the per-machine process group, i.e. the number of processes per machine.
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/distributed.py:276
Functionget_loss_func
Retrieve the loss given the loss name. Args (int): loss_name: the name of the loss to use.
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/losses.py:15
Methodget_losses
(self, data_dict: dict, pred_dict: dict)
DeepfakeBench_DF40/training/detectors/clip_detector.py:86
Methodget_losses
Returns the losses for the model.
DeepfakeBench_DF40/training/detectors/base_detector.py:60
Methodget_losses
(self, data_dict: dict, pred_dict: dict)
DeepfakeBench_DF40/training/detectors/i3d_detector.py:173
Methodget_losses
(self, data_dict: dict, pred_dict: dict)
DeepfakeBench_DF40/training/detectors/rfm_detector.py:89
Methodget_losses
(self, data_dict: dict, pred_dict: dict)
DeepfakeBench_DF40/training/detectors/srm_detector.py:151
Methodget_losses
(self, data_dict: dict, pred_dict: dict)
DeepfakeBench_DF40/training/detectors/spsl_detector.py:104
Methodget_losses
(self, data_dict: dict, pred_dict: dict)
DeepfakeBench_DF40/training/detectors/recce_detector.py:90
Methodget_losses
(self, data_dict: dict, pred_dict: dict)
DeepfakeBench_DF40/training/detectors/xception_detector.py:87
Methodget_lr
(self)
DeepfakeBench_DF40/training/optimizor/LinearLR.py:11
Functionget_lr_at_epoch
Retrieve the learning rate of the current epoch with the option to perform warm up in the beginning of the training stage. Args:
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/lr_policy.py:9
Functionget_lr_at_iter
LR schedule that should yield 76% converged accuracy with batch size 256
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/lr_policy.py:29
Methodget_mean_metrics
(self)
DeepfakeBench_DF40/training/metrics/base_metrics_class.py:125
Methodget_metrics
(self)
DeepfakeBench_DF40/training/metrics/base_metrics_class.py:168
Methodget_params_dependent_on_targets
(self, params)
DeepfakeBench_DF40/training/dataset/albu.py:74
Functionget_prediction
(output, label)
DeepfakeBench_DF40/training/metrics/base_metrics_class.py:15
Functionget_pretraiend_unet
(path='pretrained/ae/unet/ckpt_srm.pth')
DeepfakeBench_DF40/training/dataset/utils/image_ae.py:126
Functionget_specific_mask
(img, shape, mtype='mouth', random_side=False)
DeepfakeBench_DF40/training/dataset/utils/face_blend.py:116
Methodget_train_metrics
(self, data_dict: dict, pred_dict: dict)
DeepfakeBench_DF40/training/detectors/clip_detector.py:93
Methodget_train_metrics
Returns the training metrics for the model.
DeepfakeBench_DF40/training/detectors/base_detector.py:67
Methodget_train_metrics
(self, data_dict: dict, pred_dict: dict)
DeepfakeBench_DF40/training/detectors/i3d_detector.py:180
Methodget_train_metrics
(self, data_dict: dict, pred_dict: dict)
DeepfakeBench_DF40/training/detectors/rfm_detector.py:96
Methodget_train_metrics
(self, data_dict: dict, pred_dict: dict)
DeepfakeBench_DF40/training/detectors/srm_detector.py:158
Methodget_train_metrics
(self, data_dict: dict, pred_dict: dict)
DeepfakeBench_DF40/training/detectors/spsl_detector.py:111
Methodget_train_metrics
(self, data_dict: dict, pred_dict: dict)
DeepfakeBench_DF40/training/detectors/recce_detector.py:97
Methodget_train_metrics
(self, data_dict: dict, pred_dict: dict)
DeepfakeBench_DF40/training/detectors/xception_detector.py:95
Methodget_transform_init_args_names
(self)
DeepfakeBench_DF40/training/dataset/albu.py:41
Methodget_transform_init_args_names
(self)
DeepfakeBench_DF40/training/dataset/albu.py:98
Functionget_vit_model
(model_name = "google/vit-base-patch16-224-in21k")
DeepfakeBench_DF40/training/detectors/clip_detector.py:118
Methodget_win_avg
Calculate the current average value of the deque.
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/meters.py:413
Methodhflip
(self,img,mask=None,landmark=None,bbox=None)
DeepfakeBench_DF40/training/dataset/sbi_api.py:298
Methodinference
(self, data_dict)
DeepfakeBench_DF40/training/trainer/base_trainer.py:49
Functioninit_distributed_training
Initialize variables needed for distributed training.
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/distributed.py:258
Methodinit_multigrid
Update cfg based on multigrid settings. Args: cfg (configs): configs that contains training and multigrid specific
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/multigrid.py:18
Functioninit_process_group
Initializes the default process group. Args: local_rank (int): the rank on the current local machine. local_world_size (int):
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/distributed.py:56
Functioninit_weights
(m)
DeepfakeBench_DF40/training/networks/xception_ffd.py:216
Functioninit_weights
Performs ResNet style weight initialization. Args: fc_init_std (float): the expected standard deviation for fc layer. zero_in
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/weight_init_helper.py:10
Functioniresnet100
(pretrained=False, progress=True, **kwargs)
DeepfakeBench_DF40/training/networks/iresnet.py:184
Functioniresnet100
(pretrained=False, progress=True, **kwargs)
DeepfakeBench_DF40/training/networks/iresnet_iid.py:188
Functioniresnet18
(pretrained=False, progress=True, **kwargs)
DeepfakeBench_DF40/training/networks/iresnet.py:169
Functioniresnet18
(pretrained=False, progress=True, **kwargs)
DeepfakeBench_DF40/training/networks/iresnet_iid.py:173
Functioniresnet200
(pretrained=False, progress=True, **kwargs)
DeepfakeBench_DF40/training/networks/iresnet.py:189
Functioniresnet200
(pretrained=False, progress=True, **kwargs)
DeepfakeBench_DF40/training/networks/iresnet_iid.py:193
Functioniresnet34
(pretrained=False, progress=True, **kwargs)
DeepfakeBench_DF40/training/networks/iresnet.py:174
Functioniresnet34
(pretrained=False, progress=True, **kwargs)
DeepfakeBench_DF40/training/networks/iresnet_iid.py:178
Functioniresnet50
(pretrained=False, progress=True, **kwargs)
DeepfakeBench_DF40/training/networks/iresnet.py:179
← previousnext →901–1,000 of 1,098, ranked by callers