Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/YZY-stack/DF40
/ functions
Functions
1,098 in github.com/YZY-stack/DF40
⨍
Functions
1,098
◇
Types & classes
200
↓ 1 callers
Function
colorTransfer_avg
(img_src, img_tgt, mask=None)
DeepfakeBench_DF40/training/detectors/utils/color_transfer.py:434
↓ 1 callers
Function
colorTransfer_fs
(src_, dst_, mask)
DeepfakeBench_DF40/training/dataset/utils/color_transfer.py:413
↓ 1 callers
Function
colorTransfer_fs
(src_, dst_, mask)
DeepfakeBench_DF40/training/detectors/utils/color_transfer.py:413
↓ 1 callers
Function
color_transfer
color transfer for [0,1] float32 inputs
DeepfakeBench_DF40/training/dataset/utils/color_transfer.py:460
↓ 1 callers
Function
color_transfer_mix
(img_src, img_trg)
DeepfakeBench_DF40/training/dataset/utils/color_transfer.py:385
↓ 1 callers
Function
color_transfer_mix
(img_src, img_trg)
DeepfakeBench_DF40/training/detectors/utils/color_transfer.py:385
↓ 1 callers
Method
compute_time_ids
(self, original_size, crops_coords_top_left)
EFS_finetune_code/diffusion_based/train_scripts/train_sdxl_lora.py:769
↓ 1 callers
Function
conv1x1
1x1 convolution
DeepfakeBench_DF40/training/networks/iresnet_iid.py:21
↓ 1 callers
Function
correct_colours
(im1, im2, landmarks1)
DeepfakeBench_DF40/training/dataset/utils/faceswap.py:156
↓ 1 callers
Function
correct_colours
(im1, im2, landmarks1)
DeepfakeBench_DF40/training/detectors/utils/faceswap.py:156
↓ 1 callers
Function
create_facial_mask
(mask, with_neck=False)
DeepfakeBench_DF40/training/dataset/utils/bi_online_generation_yzy.py:25
↓ 1 callers
Function
create_logger
Creates a logger object and saves all messages to a file. Args: log_path (str): The path to save the log file. Returns:
DeepfakeBench_DF40/preprocessing/preprocess.py:74
↓ 1 callers
Function
create_logger
(log_path, rank=0)
DeepfakeBench_DF40/training/logger.py:13
↓ 1 callers
Function
dynamic_blend
(source,target,mask)
DeepfakeBench_DF40/training/dataset/sbi_api.py:34
↓ 1 callers
Function
encode_prompt
(text_encoders, tokenizers, prompt, text_input_ids_list=None)
EFS_finetune_code/diffusion_based/train_scripts/train_sdxl_lora.py:453
↓ 1 callers
Method
estimateMap
(self, x)
DeepfakeBench_DF40/training/networks/xception_sladd.py:263
↓ 1 callers
Function
evaluate_ava
Run AVA evaluation given numpy arrays.
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/ava_eval_helper.py:136
↓ 1 callers
Function
face_parsing_mask
(img1, with_neck=False)
DeepfakeBench_DF40/training/dataset/utils/bi_online_generation_yzy.py:35
↓ 1 callers
Function
facecrop
Helper function for cropping face and extracting landmarks.
DeepfakeBench_DF40/preprocessing/preprocess.py:249
↓ 1 callers
Method
fea_part1
(self, x)
DeepfakeBench_DF40/training/networks/xception.py:201
↓ 1 callers
Method
fea_part1
(self, x)
DeepfakeBench_DF40/training/networks/xception_sladd.py:200
↓ 1 callers
Method
fea_part2
(self, x)
DeepfakeBench_DF40/training/networks/xception_sladd.py:211
↓ 1 callers
Method
fea_part3
(self, x)
DeepfakeBench_DF40/training/networks/xception_sladd.py:218
↓ 1 callers
Method
fea_part4
(self, x)
DeepfakeBench_DF40/training/networks/xception_sladd.py:226
↓ 1 callers
Method
fea_part5
(self, x)
DeepfakeBench_DF40/training/networks/xception_sladd.py:235
↓ 1 callers
Method
features
(self, input)
DeepfakeBench_DF40/training/networks/xception.py:250
↓ 1 callers
Method
features
(self, inp)
DeepfakeBench_DF40/training/networks/resnet34.py:47
↓ 1 callers
Method
features
(self, input)
DeepfakeBench_DF40/training/networks/mesonet.py:159
↓ 1 callers
Method
features
(self, input)
DeepfakeBench_DF40/training/networks/xception_ffd.py:173
↓ 1 callers
Method
features
(self, input)
DeepfakeBench_DF40/training/networks/xception_sladd.py:245
↓ 1 callers
Method
features
(self, x)
DeepfakeBench_DF40/training/networks/efficientnetb4.py:84
↓ 1 callers
Method
features
(self, data_dict: dict)
DeepfakeBench_DF40/training/detectors/sbi_detector.py:83
↓ 1 callers
Method
features
(self, data_dict: dict)
DeepfakeBench_DF40/training/detectors/clip_detector.py:79
↓ 1 callers
Method
features
(self, data_dict: dict)
DeepfakeBench_DF40/training/detectors/i3d_detector.py:163
↓ 1 callers
Method
features
(self, data_dict: dict)
DeepfakeBench_DF40/training/detectors/rfm_detector.py:83
↓ 1 callers
Method
features
(self, data_dict: dict)
DeepfakeBench_DF40/training/detectors/srm_detector.py:110
↓ 1 callers
Method
features
(self, data_dict: dict, phase_fea)
DeepfakeBench_DF40/training/detectors/spsl_detector.py:97
↓ 1 callers
Method
features
(self, data_dict: dict)
DeepfakeBench_DF40/training/detectors/recce_detector.py:84
↓ 1 callers
Method
features
(self, data_dict: dict)
DeepfakeBench_DF40/training/detectors/xception_detector.py:81
↓ 1 callers
Method
finalize_metrics
Calculate and log the final AVA metrics.
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/meters.py:170
↓ 1 callers
Method
forward
Perform forwarding, gathering the stats across different process/ GPU group.
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/batchnorm_helper.py:118
↓ 1 callers
Method
forward_branch
(self,x,x1,x2,label)
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:1331
↓ 1 callers
Method
forward_branch
(self,x,x1,x2,label)
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:1560
↓ 1 callers
Method
forward_branch
(self,x,x1,x2,label)
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:1794
↓ 1 callers
Method
forward_branch
(self,x,x1,x2,label)
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:2027
↓ 1 callers
Method
forward_branch
(self,feat,x1,x2,label)
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:2261
↓ 1 callers
Method
forward_branch
(self,feat,x1,x2,label)
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:2495
↓ 1 callers
Method
forward_branch
(self,feat,x1,x2,label)
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:2729
↓ 1 callers
Method
forward_impl
(self, x)
DeepfakeBench_DF40/training/networks/iresnet_iid.py:48
↓ 1 callers
Method
gen_one_datapoint
(self)
DeepfakeBench_DF40/training/dataset/library/bi_online_generation.py:123
↓ 1 callers
Method
gen_one_datapoint
(self)
DeepfakeBench_DF40/training/dataset/utils/bi_online_generation_yzy.py:188
↓ 1 callers
Method
gen_one_datapoint
(self)
DeepfakeBench_DF40/training/dataset/utils/bi_online_generation.py:171
↓ 1 callers
Function
gen_warp_params
(w, flip, rotation_range=[-10, 10], scale_range=[-0.5, 0.5], tx_range=[-0.05, 0.05], ty_range=[-0.05, 0.05], r
DeepfakeBench_DF40/training/dataset/utils/warp.py:20
↓ 1 callers
Function
generate_dataset_file
Description: - Generate a JSON file containing information about the specified datasets' videos and frames. Args: - dataset:
DeepfakeBench_DF40/preprocessing/rearrange.py:67
↓ 1 callers
Function
get_affine_param
(from_, to_)
DeepfakeBench_DF40/training/dataset/utils/face_blend.py:310
↓ 1 callers
Function
get_ava_eval_data
Convert our data format into the data format used in official AVA evaluation.
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/ava_eval_helper.py:249
↓ 1 callers
Function
get_ava_mini_groundtruth
Get the groundtruth annotations corresponding the "subset" of AVA val set. We define the subset to be the frames such that (second % 4 == 0).
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/meters.py:28
↓ 1 callers
Function
get_available_masks
Return a list of the available masks for cli
DeepfakeBench_DF40/training/dataset/library/DeepFakeMask.py:21
↓ 1 callers
Function
get_available_masks
Return a list of the available masks for cli
DeepfakeBench_DF40/training/dataset/utils/DeepFakeMask.py:42
↓ 1 callers
Method
get_blended_face
(self,background_face_path)
DeepfakeBench_DF40/training/dataset/library/bi_online_generation.py:161
↓ 1 callers
Method
get_blended_face
(self,background_face_path)
DeepfakeBench_DF40/training/dataset/utils/bi_online_generation_yzy.py:226
↓ 1 callers
Method
get_blended_face
(self,background_face_path)
DeepfakeBench_DF40/training/dataset/utils/bi_online_generation.py:209
↓ 1 callers
Function
get_blocks
(num_layers)
DeepfakeBench_DF40/training/networks/adaface.py:220
↓ 1 callers
Function
get_boundary
(mask, apply_dilation=True, apply_motion_blur=True)
DeepfakeBench_DF40/training/dataset/sbi_api.py:96
↓ 1 callers
Function
get_boundary
(mask)
DeepfakeBench_DF40/training/dataset/utils/face_blend.py:68
↓ 1 callers
Function
get_clip_visual
(model_name = "openai/clip-vit-base-patch16")
DeepfakeBench_DF40/training/detectors/clip_detector.py:113
↓ 1 callers
Function
get_current_long_cycle_shape
Given a schedule and epoch index, return the long cycle base shape. Args: schedule (configs): configs that contains training and mult
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/multigrid.py:224
↓ 1 callers
Function
get_five_key
(landmarks_68)
DeepfakeBench_DF40/training/dataset/utils/SLADD.py:18
↓ 1 callers
Function
get_keypts
(image, face, predictor, face_detector)
DeepfakeBench_DF40/preprocessing/preprocess.py:104
↓ 1 callers
Function
get_keypts
(face)
DeepfakeBench_DF40/training/dataset/face_utils.py:7
↓ 1 callers
Method
get_long_cycle_schedule
Based on multigrid hyperparameters, define the schedule of a long cycle. Args: cfg (configs): configs that contains train
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/multigrid.py:123
↓ 1 callers
Function
get_mask_center
(mask)
DeepfakeBench_DF40/training/dataset/utils/face_blend.py:39
↓ 1 callers
Function
get_name_convert_func
Get the function to convert Caffe2 layer names to PyTorch layer names. Returns: (func): function to convert parameter name from Caffe
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/c2_model_loading.py:9
↓ 1 callers
Method
get_num_inchannels
(self)
DeepfakeBench_DF40/training/networks/cls_hrnet.py:235
↓ 1 callers
Function
get_pretraiend_ae
(enc_path='pretrained/ae/vae/enc.pth', dec_path='pretrained/ae/vae/dec1.pth')
DeepfakeBench_DF40/training/dataset/utils/image_ae.py:118
↓ 1 callers
Function
get_rank
Get the rank of the current process.
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/distributed.py:115
↓ 1 callers
Method
get_respect_acc
(self,prob,label)
DeepfakeBench_DF40/training/trainer/trainer.py:332
↓ 1 callers
Method
get_source_transforms
(self)
DeepfakeBench_DF40/training/dataset/sbi_api.py:172
↓ 1 callers
Method
get_source_transforms_for_bob
(self)
DeepfakeBench_DF40/training/dataset/sbi_api.py:224
↓ 1 callers
Function
get_step_index
Retrieves the lr step index for the given epoch. Args: cfg (CfgNode): configs. Details can be found in slowfast/config/de
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/lr_policy.py:73
↓ 1 callers
Method
get_subidx
(self,x,y,ratio)
DeepfakeBench_DF40/training/loss/am_softmax.py:104
↓ 1 callers
Function
get_test_data_loader
(config, test_name)
DeepfakeBench_DF40/training/train.py:102
↓ 1 callers
Function
get_test_data_loader
(config, test_name)
DeepfakeBench_DF40/training/test.py:59
↓ 1 callers
Function
get_test_data_loader
(config, test_name)
DeepfakeBench_DF40/training/logits_confidence_dist_draw.py:63
↓ 1 callers
Function
get_test_data_loader
(config, test_name)
DeepfakeBench_DF40/training/test_tsne.py:63
↓ 1 callers
Method
get_transforms
(self)
DeepfakeBench_DF40/training/dataset/sbi_api.py:188
↓ 1 callers
Function
get_video_metrics
(image, pred, label)
DeepfakeBench_DF40/training/metrics/utils.py:31
↓ 1 callers
Function
get_world_size
Get the size of the world.
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/distributed.py:104
↓ 1 callers
Function
gpu_mem_usage
Compute the GPU memory usage for the current device (GB).
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/misc.py:45
↓ 1 callers
Function
grid_coordinates
x,y grid coordinates within the ROI of supplied points :param points: points to generate grid coordinates :returns: array of (x, y) coordin
DeepfakeBench_DF40/training/dataset/utils/faceswap.py:40
↓ 1 callers
Function
grid_coordinates
x,y grid coordinates within the ROI of supplied points :param points: points to generate grid coordinates :returns: array of (x, y) coordin
DeepfakeBench_DF40/training/detectors/utils/faceswap.py:40
↓ 1 callers
Function
img_align_crop
align and crop the face according to the given bbox and landmarks landmark: 5 key points
DeepfakeBench_DF40/preprocessing/preprocess.py:121
↓ 1 callers
Function
inference
(model, data_dict)
DeepfakeBench_DF40/training/test.py:142
↓ 1 callers
Function
inference
(model, data_dict)
DeepfakeBench_DF40/training/test_tsne.py:154
↓ 1 callers
Method
inference
(self, data_dict)
DeepfakeBench_DF40/training/trainer/trainer.py:461
↓ 1 callers
Function
inflate_weight
Inflate 2D model weights in state_dict_2d to the 3D model weights in state_dict_3d. The details can be found in: Joao Carreira, and Andre
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/checkpoint.py:184
↓ 1 callers
Method
init
(self, **kwargs)
DeepfakeBench_DF40/training/dataset/utils/DeepFakeMask.py:331
↓ 1 callers
Method
init
(self, compose: bool = False, single: bool = True, **kwargs)
DeepfakeBench_DF40/training/dataset/utils/SLADD.py:121
↓ 1 callers
Method
init_data_aug_method
(self)
DeepfakeBench_DF40/training/dataset/abstract_dataset.py:113
↓ 1 callers
Method
init_data_aug_method
(self)
DeepfakeBench_DF40/training/dataset/sbi_dataset.py:132
← previous
next →
301–400 of 1,098, ranked by callers