MCPcopy Create free account

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

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

↓ 3 callersFunctionremove_nose
(image, landmarks)
DeepfakeBench_DF40/training/dataset/utils/SLADD.py:66
↓ 3 callersFunctionset_requires_grad
(model, val)
DeepfakeBench_DF40/training/networks/iresnet.py:7
↓ 2 callersMethod__init__
(self, in_filters, out_filters, reps, strides=1, start_with_relu=True, grow_first=True)
DeepfakeBench_DF40/training/networks/xception.py:45
↓ 2 callersMethod__init__
(self, max_side, interpolation_down=cv2.INTER_AREA, interpolation_up=cv2.INTER_CUBIC, always_
DeepfakeBench_DF40/training/dataset/albu.py:27
↓ 2 callersMethod__init__
(self, learnable=False)
DeepfakeBench_DF40/training/lib/component/srm_conv.py:21
↓ 2 callersMethod__init__
(self)
DeepfakeBench_DF40/training/loss/consistency_loss.py:35
↓ 2 callersMethod_make_layer
(self, block, inplanes, planes, blocks, stride=1)
DeepfakeBench_DF40/training/networks/cls_hrnet.py:406
↓ 2 callersFunctionalign_eyes
(landmarks, size)
DeepfakeBench_DF40/training/dataset/utils/face_align.py:147
↓ 2 callersFunctionapply_mask
Apply mask to supplied image :param img: max 3 channel image :param mask: [0-255] values in mask :returns: new image with mask applied
DeepfakeBench_DF40/training/dataset/utils/faceswap.py:181
↓ 2 callersFunctionapply_mask
Apply mask to supplied image :param img: max 3 channel image :param mask: [0-255] values in mask :returns: new image with mask applied
DeepfakeBench_DF40/training/detectors/utils/faceswap.py:181
↓ 2 callersFunctionblur_mask
(mask)
DeepfakeBench_DF40/training/dataset/utils/face_blend.py:94
↓ 2 callersMethodbuild_backbone
(self, config)
DeepfakeBench_DF40/training/detectors/srm_detector.py:88
↓ 2 callersMethodc_norm
(self, x, bs, ch, eps=1e-7)
DeepfakeBench_DF40/training/networks/resnet.py:40
↓ 2 callersFunctioncenter
(pt1, pt2)
DeepfakeBench_DF40/training/dataset/utils/face_blend.py:50
↓ 2 callersMethodclassifier
(self, embedding)
DeepfakeBench_DF40/training/detectors/recce_detector.py:235
↓ 2 callersMethodcollect_img_and_label_for_one_dataset
Collects image and label lists. Args: dataset_name (str): A list containing one dataset information. e.g., 'FF-F2F' Retu
DeepfakeBench_DF40/training/dataset/abstract_dataset.py:134
↓ 2 callersFunctioncolor_hist_match
(src_im, tar_im, hist_match_threshold=255, mask=None)
DeepfakeBench_DF40/training/dataset/utils/color_transfer.py:368
↓ 2 callersFunctioncolor_hist_match
(src_im, tar_im, hist_match_threshold=255, mask=None)
DeepfakeBench_DF40/training/detectors/utils/color_transfer.py:368
↓ 2 callersFunctioncolor_transfer_idt
(i0, i1, bins=256, n_rot=20)
DeepfakeBench_DF40/training/dataset/utils/color_transfer.py:98
↓ 2 callersFunctioncolor_transfer_idt
(i0, i1, bins=256, n_rot=20)
DeepfakeBench_DF40/training/detectors/utils/color_transfer.py:98
↓ 2 callersFunctioncolor_transfer_mkl
(x0, x1)
DeepfakeBench_DF40/training/dataset/utils/color_transfer.py:66
↓ 2 callersFunctioncolor_transfer_mkl
(x0, x1)
DeepfakeBench_DF40/training/detectors/utils/color_transfer.py:66
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
DeepfakeBench_DF40/training/networks/iresnet.py:11
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
DeepfakeBench_DF40/training/networks/cls_hrnet.py:37
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
DeepfakeBench_DF40/training/networks/iresnet_iid.py:9
↓ 2 callersFunctioncrop_img_bbox
(img, bbox, res, scale=1.3)
DeepfakeBench_DF40/training/dataset/utils/face_blend.py:19
↓ 2 callersFunctionexpand_bbox
Expand original boundingbox by scale. :param bbx: original boundingbox :param width: frame width :param height: frame height
DeepfakeBench_DF40/training/dataset/face_utils.py:89
↓ 2 callersFunctionextract_aligned_face_dlib
(face_detector, predictor, image, res=256, mask=None)
DeepfakeBench_DF40/preprocessing/preprocess.py:120
↓ 2 callersMethodfea_part1_0
(self, x)
DeepfakeBench_DF40/training/networks/xception.py:186
↓ 2 callersMethodfea_part1_1
(self, x)
DeepfakeBench_DF40/training/networks/xception.py:193
↓ 2 callersMethodfeatures
(self, input)
DeepfakeBench_DF40/training/networks/mesonet.py:49
↓ 2 callersMethodfeatures
(self, x)
DeepfakeBench_DF40/training/detectors/recce_detector.py:172
↓ 2 callersMethodfirst_step
(self, zero_grad=False)
DeepfakeBench_DF40/training/optimizor/SAM.py:34
↓ 2 callersFunctionfocal_loss
Computes the focal loss
DeepfakeBench_DF40/training/loss/am_softmax.py:27
↓ 2 callersFunctionget_cfg
Get a copy of the default config.
DeepfakeBench_DF40/training/detectors/utils/slowfast/config/defaults.py:812
↓ 2 callersMethodget_features
(self, input)
DeepfakeBench_DF40/training/networks/vgg.py:122
↓ 2 callersMethodget_features
(self, input)
DeepfakeBench_DF40/training/loss/vgg_loss.py:131
↓ 2 callersFunctionget_five_key
(landmarks_68)
DeepfakeBench_DF40/training/dataset/utils/bi_online_generation.py:41
↓ 2 callersFunctionget_last_checkpoint
Get the last checkpoint from the checkpointing folder. Args: path_to_job (string): the path to the folder of the current job.
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/checkpoint.py:57
↓ 2 callersFunctionget_lr_func
Given the configs, retrieve the specified lr policy function. Args: lr_policy (string): the learning rate policy to use for the job.
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/lr_policy.py:88
↓ 2 callersFunctionget_map
Compute mAP for multi-label case. Args: preds (numpy tensor): num_examples x num_classes. labels (numpy tensor): num_examples
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/meters.py:817
↓ 2 callersFunctionget_mask
(shape, img, std=20, deform=True, restrict_mask=None)
DeepfakeBench_DF40/training/dataset/utils/face_blend.py:241
↓ 2 callersFunctionget_model_stats
Compute statistics for the current model given the config. Args: model (model): model to perform analysis. cfg (CfgNode): con
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/misc.py:115
↓ 2 callersFunctionget_path_to_checkpoint
Get the full path to a checkpoint file. Args: path_to_job (string): the path to the folder of the current job. epoch (int): t
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/checkpoint.py:46
↓ 2 callersFunctionget_shape
(img)
DeepfakeBench_DF40/training/dataset/utils/face_blend.py:389
↓ 2 callersMethodget_train_metrics
(self, data_dict: dict, pred_dict: dict)
DeepfakeBench_DF40/training/detectors/sbi_detector.py:96
↓ 2 callersFunctionget_trans_func
Retrieves the transformation module by name.
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/resnet_helper.py:11
↓ 2 callersFunctionhas_checkpoint
Determines if the given directory contains a checkpoint. Args: path_to_job (string): the path to the folder of the current job.
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/checkpoint.py:73
↓ 2 callersFunctionimg_align_crop
align and crop the face according to the given bbox and landmarks landmark: 5 key points
DeepfakeBench_DF40/training/dataset/face_utils.py:27
↓ 2 callersFunctionimport_model_class_from_model_name_or_path
( pretrained_model_name_or_path: str, revision: str, subfolder: str = "text_encoder" )
EFS_finetune_code/diffusion_based/train_scripts/train_sdxl_lora.py:108
↓ 2 callersFunctioninference
(model, data_dict)
DeepfakeBench_DF40/training/logits_confidence_dist_draw.py:188
↓ 2 callersFunctionlab_image_stats
(image)
DeepfakeBench_DF40/training/dataset/utils/color_transfer.py:315
↓ 2 callersFunctionlab_image_stats
(image)
DeepfakeBench_DF40/training/detectors/utils/color_transfer.py:315
↓ 2 callersFunctionlinear_color_transfer
Matches the colour distribution of the target image to that of the source image using a linear transform. Images are expected to be of fo
DeepfakeBench_DF40/training/dataset/utils/color_transfer.py:275
↓ 2 callersFunctionlinear_color_transfer
Matches the colour distribution of the target image to that of the source image using a linear transform. Images are expected to be of
DeepfakeBench_DF40/training/detectors/utils/color_transfer.py:275
↓ 2 callersFunctionload_lora_weights
(model, file_path)
EFS_finetune_code/diffusion_based/test_scripts/test_kandinsky.py:41
↓ 2 callersFunctionmahalanobis_distance
Compute the batched mahalanobis distance. values is a batch of feature vectors. mean is either the mean of the distribution to compare, or
DeepfakeBench_DF40/training/loss/patch_consistency_loss.py:6
↓ 2 callersFunctionmake_image_key
Returns a unique identifier for a video id & timestamp.
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/ava_eval_helper.py:48
↓ 2 callersFunctionmask_from_points
(size, points,erode_flag=1)
DeepfakeBench_DF40/training/dataset/utils/faceswap.py:143
↓ 2 callersFunctionmask_from_points
(size, points,erode_flag=1)
DeepfakeBench_DF40/training/detectors/utils/faceswap.py:143
↓ 2 callersFunctionname_resolve
(path)
DeepfakeBench_DF40/training/dataset/library/bi_online_generation.py:15
↓ 2 callersFunctionname_resolve
(path)
DeepfakeBench_DF40/training/dataset/utils/bi_online_generation_yzy.py:52
↓ 2 callersFunctionname_resolve
(path)
DeepfakeBench_DF40/training/dataset/utils/bi_online_generation.py:32
↓ 2 callersFunctionparse_metric_for_print
(metric_dict)
DeepfakeBench_DF40/training/metrics/utils.py:5
↓ 2 callersFunctionpreprocess
(dataset_path, mask_path, mode, num_frames, stride, logger)
DeepfakeBench_DF40/preprocessing/preprocess.py:368
↓ 2 callersMethodrandaffine
(self,img,mask)
DeepfakeBench_DF40/training/dataset/sbi_api.py:201
↓ 2 callersFunctionrandom_normal
(size=(1,), trunc_val=2.5)
DeepfakeBench_DF40/training/dataset/utils/warp.py:6
↓ 2 callersFunctionread_exclusions
Reads a CSV file of excluded timestamps. Args: exclusions_file: A file object containing a csv of video-id,timestamp. Returns: A s
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/ava_eval_helper.py:90
↓ 2 callersFunctionread_labelmap
Read label map and class ids.
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/ava_eval_helper.py:108
↓ 2 callersFunctionreinhard_color_transfer
Transfers the color distribution from the source to the target image using the mean and standard deviations of the L*a*b* color space.
DeepfakeBench_DF40/training/dataset/utils/color_transfer.py:189
↓ 2 callersFunctionreinhard_color_transfer
Transfers the color distribution from the source to the target image using the mean and standard deviations of the L*a*b* color space.
DeepfakeBench_DF40/training/detectors/utils/color_transfer.py:189
↓ 2 callersFunctionrun_evaluation
AVA evaluation main logic.
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/ava_eval_helper.py:173
↓ 2 callersMethodsave_best
(self,epoch,iteration,step,losses_one_dataset_recorder,key,metric_one_dataset)
DeepfakeBench_DF40/training/trainer/trainer.py:373
↓ 2 callersMethodsave_data_dict
(self, phase, data_dict, dataset_key)
DeepfakeBench_DF40/training/trainer/trainer.py:167
↓ 2 callersMethodsecond_step
(self, zero_grad=False)
DeepfakeBench_DF40/training/optimizor/SAM.py:48
↓ 2 callersMethodself_blending
(self,img,landmark)
DeepfakeBench_DF40/training/dataset/sbi_api.py:266
↓ 2 callersFunctionsetup_environment
()
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/env.py:11
↓ 2 callersFunctionsub_to_normal_bn
Convert the Sub-BN paprameters to normal BN parameters in a state dict. There are two copies of BN layers in a Sub-BN implementation: `bn.bn`
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/checkpoint.py:340
↓ 2 callersFunctiont2im
(t)
DeepfakeBench_DF40/training/lib/component/gaussian_ops.py:107
↓ 2 callersFunctiont2im
(t)
DeepfakeBench_DF40/training/lib/component/srm_conv.py:180
↓ 2 callersMethodtest_epoch
(self, epoch, iteration, test_data_loaders, step)
DeepfakeBench_DF40/training/trainer/trainer.py:417
↓ 2 callersFunctiontopks_correct
Given the predictions, labels, and a list of top-k values, compute the number of correct predictions for each top-k value. Args:
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/metrics.py:9
↓ 2 callersFunctionumeyama
Estimate N-D similarity transformation with or without scaling. Parameters ---------- src : (M, N) array Source coordinates.
DeepfakeBench_DF40/training/dataset/utils/umeyama.py:16
↓ 2 callersMethodupsample
(self, x, dims=["space"])
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:1519
↓ 2 callersMethodupsample
(self, x, dims=["space"])
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:1751
↓ 2 callersMethodupsample
(self, x, dims=["space"])
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:1985
↓ 2 callersMethodupsample
(self, x, dims=["space"])
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:2218
↓ 2 callersMethodupsample
(self, x, dims=["space"])
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:2452
↓ 2 callersMethodupsample
(self, x, dims=["space"])
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:2686
↓ 2 callersFunctionwarp_image_3d
(src_img, src_points, dst_points, dst_shape, dtype=np.uint8)
DeepfakeBench_DF40/training/dataset/utils/faceswap.py:94
↓ 2 callersFunctionwarp_image_3d
(src_img, src_points, dst_points, dst_shape, dtype=np.uint8)
DeepfakeBench_DF40/training/detectors/utils/faceswap.py:94
↓ 2 callersFunctionwrite_results
Write prediction results into official formats.
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/ava_eval_helper.py:288
↓ 1 callersFunctionIR_101
Constructs a ir-101 model.
DeepfakeBench_DF40/training/networks/adaface.py:360
↓ 1 callersFunctionIR_18
Constructs a ir-18 model.
DeepfakeBench_DF40/training/networks/adaface.py:336
↓ 1 callersFunctionIR_34
Constructs a ir-34 model.
DeepfakeBench_DF40/training/networks/adaface.py:344
↓ 1 callersFunctionIR_50
Constructs a ir-50 model.
DeepfakeBench_DF40/training/networks/adaface.py:352
↓ 1 callersFunctionIR_SE_50
Constructs a ir_se-50 model.
DeepfakeBench_DF40/training/networks/adaface.py:384
↓ 1 callersMethodInceptionLayer1
(self, input)
DeepfakeBench_DF40/training/networks/mesonet.py:130
↓ 1 callersMethodInceptionLayer2
(self, input)
DeepfakeBench_DF40/training/networks/mesonet.py:144
↓ 1 callersMethod__init__
(self, block, layers, dropout=0, num_features=512, zero_init_residual=False,
DeepfakeBench_DF40/training/networks/iresnet.py:65
← previousnext →101–200 of 1,098, ranked by callers