MCPcopy Create free account

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

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

Functionall_gather_unaligned
Run all_gather on arbitrary picklable data (not necessarily tensors). Args: data: any picklable object group: a torch proces
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/distributed.py:219
Functionall_reduce
All reduce the provided tensors from all processes across machines. Args: tensors (list): tensors to perform all reduce across all pr
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/distributed.py:37
Functionalpha_blend
(source,target,mask)
DeepfakeBench_DF40/training/dataset/sbi_api.py:28
Functionalpha_feathering
(src_img, dest_img, img_mask, blur_radius=15)
DeepfakeBench_DF40/training/dataset/utils/faceswap.py:193
Functionalpha_feathering
(src_img, dest_img, img_mask, blur_radius=15)
DeepfakeBench_DF40/training/detectors/utils/faceswap.py:193
Methodapply
(self,img,**params)
DeepfakeBench_DF40/training/dataset/sbi_api.py:79
Methodapply
(self, img, **params)
DeepfakeBench_DF40/training/dataset/albu.py:49
Methodapply
(self, img, x_min=0, x_max=0, y_min=0, y_max=0, **params)
DeepfakeBench_DF40/training/dataset/albu.py:66
Methodapply_to_mask
(self, img, **params)
DeepfakeBench_DF40/training/dataset/albu.py:38
Functionbenchmark_data_loading
Benchmark the speed of data loading in PySlowFast. Args: cfg (CfgNode): configs. Details can be found in slowfast/config
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/benchmark.py:20
FunctionblendImages
(src, dst, mask, featherAmount=0.1)
DeepfakeBench_DF40/training/dataset/utils/faceswap_utils_sladd.py:18
FunctionblendImages
(src, dst, mask, featherAmount=0.1)
DeepfakeBench_DF40/training/dataset/utils/faceswap_utils.py:18
FunctionblendImages
(src, dst, mask, featherAmount=0.1)
DeepfakeBench_DF40/training/detectors/utils/faceswap_utils.py:18
Methodblock_part1
(self,x)
DeepfakeBench_DF40/training/networks/efficientnetb4.py:56
Methodblock_part2
(self,x)
DeepfakeBench_DF40/training/networks/efficientnetb4.py:66
Methodblock_part3
(self,x)
DeepfakeBench_DF40/training/networks/efficientnetb4.py:74
Methodbob
(self,img,landmark)
DeepfakeBench_DF40/training/dataset/sbi_api.py:237
Methodbuild_backbone
Builds the backbone of the model.
DeepfakeBench_DF40/training/detectors/base_detector.py:46
Methodbuild_backbone
(self, config)
DeepfakeBench_DF40/training/detectors/i3d_detector.py:154
Methodbuild_loss
Builds the loss function for the model.
DeepfakeBench_DF40/training/detectors/base_detector.py:53
Methodbuild_loss
(self, config)
DeepfakeBench_DF40/training/detectors/i3d_detector.py:157
Methodbuild_mask
(self)
DeepfakeBench_DF40/training/dataset/library/DeepFakeMask.py:81
Methodbuild_mask
(self)
DeepfakeBench_DF40/training/dataset/library/DeepFakeMask.py:105
Methodbuild_mask
(self)
DeepfakeBench_DF40/training/dataset/library/DeepFakeMask.py:134
Methodbuild_mask
(self)
DeepfakeBench_DF40/training/dataset/library/DeepFakeMask.py:176
Methodbuild_mask
(self)
DeepfakeBench_DF40/training/dataset/utils/DeepFakeMask.py:160
Methodbuild_mask
(self)
DeepfakeBench_DF40/training/dataset/utils/DeepFakeMask.py:184
Methodbuild_mask
(self)
DeepfakeBench_DF40/training/dataset/utils/DeepFakeMask.py:223
Methodbuild_mask
(self)
DeepfakeBench_DF40/training/dataset/utils/DeepFakeMask.py:265
Methodbuild_mask
(self)
DeepfakeBench_DF40/training/dataset/utils/DeepFakeMask.py:276
Methodbuild_mask
(self)
DeepfakeBench_DF40/training/dataset/utils/DeepFakeMask.py:287
Methodbuild_mask
(self)
DeepfakeBench_DF40/training/dataset/utils/DeepFakeMask.py:389
Methodbuild_mask
(self)
DeepfakeBench_DF40/training/dataset/utils/SLADD.py:152
Functionbuild_model
(model_name='ir_50')
DeepfakeBench_DF40/training/networks/adaface.py:14
Functionbuild_model
Builds the video model. Args: cfg (configs): configs that contains the hyper-parameters to build the backbone. Details can be
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/build.py:18
Functioncheck_nan_losses
Determine whether the loss is NaN (not a number). Args: loss (loss): loss to check whether is NaN.
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/misc.py:26
Functioncheck_points
(img,points)
DeepfakeBench_DF40/training/dataset/utils/faceswap.py:204
Functioncheck_points
(img,points)
DeepfakeBench_DF40/training/detectors/utils/faceswap.py:204
Functionchoose_metric
(config)
DeepfakeBench_DF40/training/test.py:84
Functionchoose_metric
(config)
DeepfakeBench_DF40/training/logits_confidence_dist_draw.py:87
Functionchoose_metric
(config)
DeepfakeBench_DF40/training/test_tsne.py:88
Methodclassifier
DeepfakeBench_DF40/training/networks/base_backbone.py:24
Methodclassifier
(self, x)
DeepfakeBench_DF40/training/networks/cls_hrnet.py:550
Methodclassifier
(self, x)
DeepfakeBench_DF40/training/networks/resnet.py:326
Methodclassifier
(self, x)
DeepfakeBench_DF40/training/networks/resnet.py:409
Methodclassifier
Classifies the features into classes.
DeepfakeBench_DF40/training/detectors/base_detector.py:39
Methodclassifier
(self, features: torch.tensor)
DeepfakeBench_DF40/training/detectors/i3d_detector.py:170
Methodclear
(self)
DeepfakeBench_DF40/training/metrics/base_metrics_class.py:140
Methodclear
(self)
DeepfakeBench_DF40/training/metrics/base_metrics_class.py:183
Functioncollate_fn
(examples)
EFS_finetune_code/diffusion_based/train_scripts/train_ddpm.py:710
Functioncollate_fn
(examples)
EFS_finetune_code/diffusion_based/train_scripts/train_sd_lora.py:570
Functioncollate_fn
(examples)
EFS_finetune_code/diffusion_based/train_scripts/train_kandinsky_decoder_lora.py:513
Functioncollate_fn
(examples)
EFS_finetune_code/diffusion_based/train_scripts/train_kandinsky_prior_lora.py:495
Functioncollate_fn
(examples)
EFS_finetune_code/diffusion_based/train_scripts/train_sdxl_lora.py:833
Functioncollate_fn
(examples)
EFS_finetune_code/diffusion_based/train_scripts/train_pixart_lora.py:648
Methodcollate_fn
Collate a batch of data points. Args: batch (list): A list of tuples containing the image tensor, the label tensor,
DeepfakeBench_DF40/training/dataset/abstract_dataset.py:563
Methodcollate_fn
Collate a batch of data points. Args: batch (list): A list of tuples containing the image tensor and label tensor.
DeepfakeBench_DF40/training/dataset/sbi_dataset.py:95
Methodcollate_fn
Collate a batch of data points. Args: batch (list): A list of tuples containing the image tensor, the label tensor,
DeepfakeBench_DF40/training/dataset/pair_dataset.py:84
FunctioncolorTransfer
(src_, dst_, mask)
DeepfakeBench_DF40/training/dataset/utils/faceswap_utils_sladd.py:48
FunctioncolorTransfer
(src_, dst_, mask)
DeepfakeBench_DF40/training/dataset/utils/faceswap_utils.py:49
FunctioncolorTransfer
(src_, dst_, mask)
DeepfakeBench_DF40/training/detectors/utils/faceswap_utils.py:48
Functioncolor_transfer
color transfer for [0,1] float32 inputs
DeepfakeBench_DF40/training/detectors/utils/color_transfer.py:460
Functioncompute_and_update_bn_stats
Compute and update the batch norm stats to make it more precise. During training both bn stats and the weight are changing after every iterat
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/bn_helper.py:11
Functioncompute_time_ids
(original_size, crops_coords_top_left)
EFS_finetune_code/diffusion_based/train_scripts/train_sdxl_lora.py:992
Functionconstruct_optimizer
Construct a stochastic gradient descent or ADAM optimizer with momentum. Details can be found in: Herbert Robbins, and Sutton Monro. "A s
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/optimizer.py:11
Functionconvert_caffe2_name_to_pytorch
Convert the caffe2_layer_name to pytorch format by apply the list of regular expressions. Args: caffe2_layer_name
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/c2_model_loading.py:99
Functioncpu_mem_usage
Compute the system memory (RAM) usage for the current device (GB). Returns: usage (float): used memory (GB). total (float): t
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/misc.py:56
Functioncreate_bbox_face
(image, landmarks, margin=0)
DeepfakeBench_DF40/training/dataset/abstract_dataset.py:618
Functioncreate_bbox_mask
(image, landmarks, margin=0)
DeepfakeBench_DF40/training/dataset/sbi_api.py:364
Functiondeepspeed_zero_init_disabled_context_manager
returns either a context list that includes one that will disable zero.Init or an empty context list
EFS_finetune_code/diffusion_based/train_scripts/train_ddpm.py:552
Functiondisable_running_stats
(model)
DeepfakeBench_DF40/training/optimizor/SAM.py:8
Functionenable_running_stats
(model)
DeepfakeBench_DF40/training/optimizor/SAM.py:16
Methodend_points
(self,x)
DeepfakeBench_DF40/training/networks/efficientnetb4.py:90
Functionevaluate_ava_from_files
Run AVA evaluation given annotation/prediction files.
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/ava_eval_helper.py:126
Methodextra_repr
(self)
DeepfakeBench_DF40/training/networks/vgg.py:16
Methodextra_repr
(self)
DeepfakeBench_DF40/training/loss/vgg_loss.py:23
Functionextract_aligned_face_MTCNN
(face_detector, image, expand_scale=1.3, res=256, mask=None)
DeepfakeBench_DF40/training/dataset/face_utils.py:161
Functionextract_face_DLIB
(face_detector, image, expand_scale=1.3, res=256)
DeepfakeBench_DF40/training/dataset/face_utils.py:209
Functionextract_face_MTCNN
(face_detector, image, expand_scale=1.3, res=256)
DeepfakeBench_DF40/training/dataset/face_utils.py:117
Functionface_swap
(src_face, dst_face, src_points, dst_points, dst_shape, dst_img, args, end=48)
DeepfakeBench_DF40/training/dataset/utils/faceswap.py:213
Functionface_swap
(src_face, dst_face, src_points, dst_points, dst_shape, dst_img, args, end=48)
DeepfakeBench_DF40/training/detectors/utils/faceswap.py:213
Methodfea_part1_0
(self, x)
DeepfakeBench_DF40/training/networks/xception_sladd.py:186
Methodfea_part1_1
(self, x)
DeepfakeBench_DF40/training/networks/xception_sladd.py:193
Methodfeatures
DeepfakeBench_DF40/training/networks/base_backbone.py:19
Methodfeatures
(self, x)
DeepfakeBench_DF40/training/networks/cls_hrnet.py:504
Methodfeatures
(self, x)
DeepfakeBench_DF40/training/networks/resnet.py:312
Methodfeatures
(self, x)
DeepfakeBench_DF40/training/networks/resnet.py:396
Methodfeatures
Returns the features from the backbone given the input data.
DeepfakeBench_DF40/training/detectors/base_detector.py:25
Methodfilter
(self, record)
DeepfakeBench_DF40/training/logger.py:10
Methodfinalize_metrics
Calculate and log the final ensembled metrics. ks (tuple): list of top-k values for topk_accuracies. For example, ks = (1
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/meters.py:334
Methodforward
(self, x)
DeepfakeBench_DF40/training/networks/xception.py:38
Methodforward
(self, inp)
DeepfakeBench_DF40/training/networks/xception.py:87
Methodforward
(self, input)
DeepfakeBench_DF40/training/networks/xception.py:282
Methodforward
(self, x, **kwargs)
DeepfakeBench_DF40/training/networks/time_transformer.py:14
Methodforward
(self, x, **kwargs)
DeepfakeBench_DF40/training/networks/time_transformer.py:22
Methodforward
(self, x)
DeepfakeBench_DF40/training/networks/time_transformer.py:35
Methodforward
(self, x, mask = None)
DeepfakeBench_DF40/training/networks/time_transformer.py:54
Methodforward
(self, x, mask = None)
DeepfakeBench_DF40/training/networks/time_transformer.py:85
Methodforward
(self, img, mask = None)
DeepfakeBench_DF40/training/networks/time_transformer.py:118
Methodforward
(self, x)
DeepfakeBench_DF40/training/networks/time_transformer.py:151
← previousnext →701–800 of 1,098, ranked by callers