MCPcopy Create free account

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

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

↓ 1 callersMethod__init__
(self, meso4_config)
DeepfakeBench_DF40/training/networks/mesonet.py:28
↓ 1 callersMethod__init__
(self, block, layers, dropout=0, num_features=512, zero_init_residual=False,
DeepfakeBench_DF40/training/networks/iresnet_iid.py:70
↓ 1 callersMethod__init__
(self, mean=0, std=0.1, clip=1)
DeepfakeBench_DF40/training/lib/component/gaussian_ops.py:82
↓ 1 callersMethod__init__
Args: num_splits (int): number of splits. args (list): other arguments.
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/batchnorm_helper.py:48
↓ 1 callersMethod__init__
The `__init__` method of any subclass should also contain these arguments. List size of 1 for single pathway models (C2D, I3D, Slow
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/stem_helper.py:15
↓ 1 callersMethod__init__
(self, margin_type='cos', gamma=0., m=0.5, s=30, t=1.)
DeepfakeBench_DF40/training/loss/am_softmax.py:39
↓ 1 callersFunction_assert_and_infer_cfg
(cfg)
DeepfakeBench_DF40/training/detectors/utils/slowfast/config/defaults.py:789
↓ 1 callersMethod_build_kernel
(self, inc)
DeepfakeBench_DF40/training/lib/component/srm_conv.py:60
↓ 1 callersMethod_build_kernel
(self, inc)
DeepfakeBench_DF40/training/lib/component/srm_conv.py:128
↓ 1 callersMethod_build_kernel
(self, inc)
DeepfakeBench_DF40/training/detectors/srm_detector.py:221
↓ 1 callersMethod_build_kernel
(self, inc)
DeepfakeBench_DF40/training/detectors/srm_detector.py:290
↓ 1 callersFunction_cached_log_stream
(filename)
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/logging.py:30
↓ 1 callersMethod_check_branches
(self, num_branches, blocks, num_blocks, num_inchannels, num_channels)
DeepfakeBench_DF40/training/networks/cls_hrnet.py:134
↓ 1 callersMethod_construct
(self, dim_in, dim_out, stride, norm_module)
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/resnet_helper.py:72
↓ 1 callersMethod_construct
(self, dim_in, dim_out, stride, norm_module)
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/resnet_helper.py:157
↓ 1 callersMethod_construct
( self, dim_in, dim_out, stride, dim_inner, num_groups,
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/resnet_helper.py:255
↓ 1 callersMethod_construct
( self, dim_in, dim_out, temp_kernel_size, stride, trans_func,
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/resnet_helper.py:396
↓ 1 callersMethod_construct
( self, dim_in, dim_out, stride, dim_inner, num_groups,
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/resnet_helper.py:569
↓ 1 callersMethod_construct_network
Builds a SlowFast model. The first pathway is the Slow pathway and the second pathway is the Fast pathway. Args:
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:172
↓ 1 callersMethod_construct_network
Builds a single pathway ResNet model. Args: cfg (CfgNode): model building configs, details are in the co
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:422
↓ 1 callersMethod_construct_network
Builds a single pathway ResNet model. Args: cfg (CfgNode): model building configs, details are in the co
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:610
↓ 1 callersMethod_construct_network
Builds a single pathway ResNet model. Args: cfg (CfgNode): model building configs, details are in the co
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:787
↓ 1 callersMethod_construct_network
Builds a single pathway ResNet model. Args: cfg (CfgNode): model building configs, details are in the co
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:969
↓ 1 callersMethod_construct_network
Builds a single pathway ResNet model. Args: cfg (CfgNode): model building configs, details are in the co
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:1161
↓ 1 callersMethod_construct_network
Builds a single pathway ResNet model. Args: cfg (CfgNode): model building configs, details are in the co
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:1382
↓ 1 callersMethod_construct_network
Builds a single pathway ResNet model. Args: cfg (CfgNode): model building configs, details are in the co
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:1611
↓ 1 callersMethod_construct_network
Builds a single pathway ResNet model. Args: cfg (CfgNode): model building configs, details are in the co
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:1845
↓ 1 callersMethod_construct_network
Builds a single pathway ResNet model. Args: cfg (CfgNode): model building configs, details are in the co
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:2079
↓ 1 callersMethod_construct_network
Builds a single pathway ResNet model. Args: cfg (CfgNode): model building configs, details are in the co
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:2313
↓ 1 callersMethod_construct_network
Builds a single pathway ResNet model. Args: cfg (CfgNode): model building configs, details are in the co
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:2546
↓ 1 callersMethod_construct_nonlocal
( self, zero_init_final_conv, zero_init_final_norm, norm_module )
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/nonlocal_helper.py:67
↓ 1 callersMethod_construct_stem
(self, dim_in, dim_out, norm_module)
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/stem_helper.py:77
↓ 1 callersMethod_construct_stem
(self, dim_in, dim_out, norm_module)
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/stem_helper.py:156
↓ 1 callersMethod_get_aggregated_mean_std
Calculate the aggregated mean and stds. Args: means (tensor): mean values. stds (tensor): standard deviations
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/batchnorm_helper.py:69
↓ 1 callersFunction_get_global_gloo_group
Return a process group based on gloo backend, containing all the ranks The result is cached. Returns: (group): pytorch dist group
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/distributed.py:142
↓ 1 callersFunction_get_model_analysis_input
Return a dummy input for model analysis with batch size 1. The input is used for analyzing the model (counting flops and activations etc.
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/misc.py:70
↓ 1 callersMethod_grad_norm
(self)
DeepfakeBench_DF40/training/optimizor/SAM.py:67
↓ 1 callersMethod_make_branches
(self, num_branches, block, num_blocks, num_channels)
DeepfakeBench_DF40/training/networks/cls_hrnet.py:178
↓ 1 callersMethod_make_fuse_layers
(self)
DeepfakeBench_DF40/training/networks/cls_hrnet.py:187
↓ 1 callersMethod_make_head
(self, pre_stage_channels)
DeepfakeBench_DF40/training/networks/cls_hrnet.py:321
↓ 1 callersMethod_make_one_branch
(self, branch_index, block, num_blocks, num_channels, stride=1)
DeepfakeBench_DF40/training/networks/cls_hrnet.py:154
↓ 1 callersMethod_mean_auc
(self)
DeepfakeBench_DF40/training/metrics/base_metrics_class.py:133
↓ 1 callersFunction_pad_to_largest_tensor
Padding all the tensors from different GPUs to the largest ones. Args: tensor (tensor): tensor to pad. group (group): pytorch
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/distributed.py:183
↓ 1 callersMethod_print_losses
(self, losses)
DeepfakeBench_DF40/training/networks/vgg.py:30
↓ 1 callersMethod_print_losses
(self, losses)
DeepfakeBench_DF40/training/loss/vgg_loss.py:37
↓ 1 callersFunction_serialize_to_tensor
Seriialize the tensor to ByteTensor. Note that only `gloo` and `nccl` backend is supported. Args: data (data): data to be ser
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/distributed.py:155
↓ 1 callersFunction_suppress_print
Suppresses printing from the current process.
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/logging.py:18
↓ 1 callersMethod_update_acc
(self, lab, output)
DeepfakeBench_DF40/training/metrics/base_metrics_class.py:108
↓ 1 callersMethod_update_ap
(self, label, prob)
DeepfakeBench_DF40/training/metrics/base_metrics_class.py:117
↓ 1 callersMethod_update_auc
(self, lab, prob)
DeepfakeBench_DF40/training/metrics/base_metrics_class.py:86
↓ 1 callersMethodadd_white_noise
(tensor, mean=0., std=1e-6)
DeepfakeBench_DF40/training/detectors/recce_detector.py:164
↓ 1 callersMethodaggregate_stats
Synchronize running_mean, and running_var. Call this before eval.
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/batchnorm_helper.py:84
↓ 1 callersFunctionall_in_pool
(inputs,pool)
DeepfakeBench_DF40/training/dataset/abstract_dataset.py:36
↓ 1 callersMethodapply_rfm_augmentation
(self, data)
DeepfakeBench_DF40/training/detectors/rfm_detector.py:115
↓ 1 callersFunctionaug
Augment operation for image list :param images: image list :param random_transform_args: shape transform arguments :param color_r
DeepfakeBench_DF40/training/dataset/utils/face_aug.py:42
↓ 1 callersFunctionaug_one_im
Augment operation for image list :param images: image list :param random_transform_args: shape transform arguments :param color_r
DeepfakeBench_DF40/training/dataset/utils/face_aug.py:26
↓ 1 callersFunctionbilinear_interpolate
Interpolates over every image channel http://en.wikipedia.org/wiki/Bilinear_interpolation :param img: max 3 channel image :param coord
DeepfakeBench_DF40/training/dataset/utils/faceswap.py:15
↓ 1 callersFunctionbilinear_interpolate
Interpolates over every image channel http://en.wikipedia.org/wiki/Bilinear_interpolation :param img: max 3 channel image :param coord
DeepfakeBench_DF40/training/detectors/utils/faceswap.py:15
↓ 1 callersFunctionblendImages
(src, dst, mask, featherAmount=0.2)
DeepfakeBench_DF40/training/dataset/library/bi_online_generation.py:59
↓ 1 callersFunctionblendImages
(src, dst, mask, featherAmount=0.2)
DeepfakeBench_DF40/training/dataset/utils/bi_online_generation_yzy.py:124
↓ 1 callersFunctionblendImages
(src, dst, mask, featherAmount=0.2)
DeepfakeBench_DF40/training/dataset/utils/bi_online_generation.py:107
↓ 1 callersMethodbuild_backbone
(self, config)
DeepfakeBench_DF40/training/detectors/sbi_detector.py:62
↓ 1 callersMethodbuild_backbone
(self, config)
DeepfakeBench_DF40/training/detectors/clip_detector.py:63
↓ 1 callersMethodbuild_backbone
(self, config)
DeepfakeBench_DF40/training/detectors/rfm_detector.py:62
↓ 1 callersMethodbuild_backbone
(self, config)
DeepfakeBench_DF40/training/detectors/spsl_detector.py:64
↓ 1 callersMethodbuild_backbone
(self, config)
DeepfakeBench_DF40/training/detectors/recce_detector.py:71
↓ 1 callersMethodbuild_backbone
(self, config)
DeepfakeBench_DF40/training/detectors/xception_detector.py:60
↓ 1 callersMethodbuild_loss
(self, config)
DeepfakeBench_DF40/training/detectors/sbi_detector.py:77
↓ 1 callersMethodbuild_loss
(self, config)
DeepfakeBench_DF40/training/detectors/clip_detector.py:73
↓ 1 callersMethodbuild_loss
(self, config)
DeepfakeBench_DF40/training/detectors/rfm_detector.py:77
↓ 1 callersMethodbuild_loss
(self, config)
DeepfakeBench_DF40/training/detectors/srm_detector.py:104
↓ 1 callersMethodbuild_loss
(self, config)
DeepfakeBench_DF40/training/detectors/spsl_detector.py:91
↓ 1 callersMethodbuild_loss
(self, config)
DeepfakeBench_DF40/training/detectors/recce_detector.py:78
↓ 1 callersMethodbuild_loss
(self, config)
DeepfakeBench_DF40/training/detectors/xception_detector.py:75
↓ 1 callersMethodbuild_mask
Override to build the mask
DeepfakeBench_DF40/training/dataset/library/DeepFakeMask.py:58
↓ 1 callersMethodbuild_mask
Override to build the mask
DeepfakeBench_DF40/training/dataset/utils/DeepFakeMask.py:137
↓ 1 callersFunctionc2_normal_to_sub_bn
Convert BN parameters to Sub-BN parameters if model contains Sub-BNs. Args: key (OrderedDict): source dict of parameters. mdo
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/checkpoint.py:381
↓ 1 callersMethodcal_fam
(self, inputs)
DeepfakeBench_DF40/training/detectors/rfm_detector.py:104
↓ 1 callersFunctioncalculate_logits_and_confidence
(model, data_loader)
DeepfakeBench_DF40/training/logits_confidence_dist_draw.py:94
↓ 1 callersFunctionchange_res
(img)
DeepfakeBench_DF40/training/dataset/utils/face_aug.py:18
↓ 1 callersFunctionchoose_metric
(config)
DeepfakeBench_DF40/training/train.py:188
↓ 1 callersFunctionchoose_optimizer
(model, config)
DeepfakeBench_DF40/training/train.py:129
↓ 1 callersFunctionchoose_scheduler
(config, optimizer)
DeepfakeBench_DF40/training/train.py:161
↓ 1 callersMethodclassifier
(self, features,id_feat=None)
DeepfakeBench_DF40/training/networks/xception.py:264
↓ 1 callersMethodclassifier
(self, features)
DeepfakeBench_DF40/training/networks/resnet34.py:51
↓ 1 callersMethodclassifier
(self, feature)
DeepfakeBench_DF40/training/networks/mesonet.py:73
↓ 1 callersMethodclassifier
(self, feature)
DeepfakeBench_DF40/training/networks/mesonet.py:177
↓ 1 callersMethodclassifier
(self, x)
DeepfakeBench_DF40/training/networks/xception_sladd.py:256
↓ 1 callersMethodclassifier
(self, x)
DeepfakeBench_DF40/training/networks/efficientnetb4.py:92
↓ 1 callersMethodclassifier
(self, features: torch.tensor)
DeepfakeBench_DF40/training/detectors/sbi_detector.py:86
↓ 1 callersMethodclassifier
(self, features: torch.tensor)
DeepfakeBench_DF40/training/detectors/clip_detector.py:83
↓ 1 callersMethodclassifier
(self, features: torch.tensor)
DeepfakeBench_DF40/training/detectors/rfm_detector.py:86
↓ 1 callersMethodclassifier
(self, features: torch.tensor)
DeepfakeBench_DF40/training/detectors/srm_detector.py:148
↓ 1 callersMethodclassifier
(self, features: torch.tensor)
DeepfakeBench_DF40/training/detectors/spsl_detector.py:101
↓ 1 callersMethodclassifier
(self, features: torch.tensor)
DeepfakeBench_DF40/training/detectors/recce_detector.py:87
↓ 1 callersMethodclassifier
(self, features: torch.tensor)
DeepfakeBench_DF40/training/detectors/xception_detector.py:84
↓ 1 callersFunctioncolorTransfer
(src, dst, mask)
DeepfakeBench_DF40/training/dataset/library/bi_online_generation.py:88
↓ 1 callersFunctioncolorTransfer
(src, dst, mask)
DeepfakeBench_DF40/training/dataset/utils/bi_online_generation_yzy.py:153
↓ 1 callersFunctioncolorTransfer
(src, dst, mask)
DeepfakeBench_DF40/training/dataset/utils/bi_online_generation.py:136
↓ 1 callersFunctioncolorTransfer_avg
(img_src, img_tgt, mask=None)
DeepfakeBench_DF40/training/dataset/utils/color_transfer.py:434
← previousnext →201–300 of 1,098, ranked by callers