MCPcopy Create free account

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

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

↓ 1 callersFunctioninit_seed
(config)
DeepfakeBench_DF40/training/train.py:53
↓ 1 callersFunctioninit_seed
(config)
DeepfakeBench_DF40/training/test.py:49
↓ 1 callersFunctioninit_seed
(config)
DeepfakeBench_DF40/training/logits_confidence_dist_draw.py:53
↓ 1 callersFunctioninit_seed
(config)
DeepfakeBench_DF40/training/test_tsne.py:53
↓ 1 callersMethodinit_weight
(self)
DeepfakeBench_DF40/training/detectors/srm_detector.py:646
↓ 1 callersFunctioninitialize_weights
Weight initilize, conv2d and linear is initialized with kaiming_normal
DeepfakeBench_DF40/training/networks/adaface.py:28
↓ 1 callersFunctionisotropically_resize_image
(img, size, interpolation_down=cv2.INTER_AREA, interpolation_up=cv2.INTER_CUBIC)
DeepfakeBench_DF40/training/dataset/albu.py:9
↓ 1 callersFunctionlandmarks_68_symmetries
()
DeepfakeBench_DF40/training/dataset/utils/DeepFakeMask.py:50
↓ 1 callersFunctionlandmarks_to_bbox
(landmarks: np.ndarray)
DeepfakeBench_DF40/training/dataset/utils/DeepFakeMask.py:21
↓ 1 callersFunctionlaplacian_matrix
(n, m)
DeepfakeBench_DF40/training/dataset/utils/color_transfer.py:142
↓ 1 callersFunctionlaplacian_matrix
(n, m)
DeepfakeBench_DF40/training/detectors/utils/color_transfer.py:142
↓ 1 callersFunctionload_backbone
(model,file)
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/checkpoint.py:518
↓ 1 callersMethodload_ckpt
(self, enc_path, dec_path)
DeepfakeBench_DF40/training/dataset/utils/image_ae.py:113
↓ 1 callersFunctionload_yaml_with_base
Just like `yaml.load(open(filename))`, but inherit attributes from its `_BASE_`. Args: text (str): the file name of the curre
DeepfakeBench_DF40/training/detectors/utils/slowfast/config/defaults.py:9
↓ 1 callersFunctionlog_validation
(unet, args, accelerator, weight_dtype, epoch)
EFS_finetune_code/diffusion_based/train_scripts/train_ddpm.py:141
↓ 1 callersMethodlogits
(self, features)
DeepfakeBench_DF40/training/networks/xception_ffd.py:204
↓ 1 callersFunctionmain
()
DeepfakeBench_DF40/training/train.py:195
↓ 1 callersFunctionmain
()
DeepfakeBench_DF40/training/test.py:147
↓ 1 callersFunctionmain
()
DeepfakeBench_DF40/training/logits_confidence_dist_draw.py:193
↓ 1 callersFunctionmain
()
DeepfakeBench_DF40/training/test_tsne.py:159
↓ 1 callersFunctionmain
(args)
DeepfakeBench_DF40/training/dataset/utils/face_blend.py:378
↓ 1 callersFunctionmain
()
EFS_finetune_code/diffusion_based/train_scripts/train_ddpm.py:496
↓ 1 callersFunctionmain
()
EFS_finetune_code/diffusion_based/train_scripts/train_sd_lora.py:379
↓ 1 callersFunctionmain
()
EFS_finetune_code/diffusion_based/train_scripts/train_kandinsky_decoder_lora.py:333
↓ 1 callersFunctionmain
()
EFS_finetune_code/diffusion_based/train_scripts/train_kandinsky_prior_lora.py:345
↓ 1 callersFunctionmain
(args)
EFS_finetune_code/diffusion_based/train_scripts/train_sdxl_lora.py:481
↓ 1 callersFunctionmain
()
EFS_finetune_code/diffusion_based/train_scripts/train_pixart_lora.py:422
↓ 1 callersFunctionmask_from_points
8 (or omitted) - 8-connected line. 4 - 4-connected line. LINE_AA - antialiased line.
DeepfakeBench_DF40/training/dataset/utils/DeepFakeMask.py:30
↓ 1 callersMethodmerge_from_str
(self, text, allow_unsafe=False)
DeepfakeBench_DF40/training/detectors/utils/slowfast/config/defaults.py:24
↓ 1 callersMethodmerge_mask
Return the mask in requested shape
DeepfakeBench_DF40/training/dataset/library/DeepFakeMask.py:62
↓ 1 callersMethodmerge_mask
Return the mask in requested shape
DeepfakeBench_DF40/training/dataset/utils/DeepFakeMask.py:141
↓ 1 callersFunctionnormal_to_sub_bn
Convert BN parameters to Sub-BN parameters if model contains Sub-BNs. Args: checkpoint_sd (OrderedDict): source dict of parameters.
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/checkpoint.py:401
↓ 1 callersFunctionparams_count
Compute the number of parameters. Args: model (model): model to count the number of parameters.
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/misc.py:36
↓ 1 callersFunctionparse_args
()
EFS_finetune_code/diffusion_based/train_scripts/train_ddpm.py:192
↓ 1 callersFunctionparse_args
()
EFS_finetune_code/diffusion_based/train_scripts/train_sd_lora.py:86
↓ 1 callersFunctionparse_args
()
EFS_finetune_code/diffusion_based/train_scripts/train_kandinsky_decoder_lora.py:87
↓ 1 callersFunctionparse_args
()
EFS_finetune_code/diffusion_based/train_scripts/train_kandinsky_prior_lora.py:87
↓ 1 callersFunctionparse_args
(input_args=None)
EFS_finetune_code/diffusion_based/train_scripts/train_sdxl_lora.py:128
↓ 1 callersFunctionparse_args
()
EFS_finetune_code/diffusion_based/train_scripts/train_pixart_lora.py:119
↓ 1 callersFunctionparse_args
()
EFS_finetune_code/diffusion_based/test_scripts/test_sd.py:31
↓ 1 callersFunctionparse_args
()
EFS_finetune_code/diffusion_based/test_scripts/test_ddpm.py:31
↓ 1 callersFunctionparse_args
()
EFS_finetune_code/diffusion_based/test_scripts/test_ddim.py:31
↓ 1 callersFunctionparse_args
()
EFS_finetune_code/diffusion_based/test_scripts/test_sd_lora.py:31
↓ 1 callersMethodphase_without_amplitude
(self, img)
DeepfakeBench_DF40/training/detectors/spsl_detector.py:133
↓ 1 callersFunctionpiecewise_affine_transform
(image, srcAnchor, tgtAnchor)
DeepfakeBench_DF40/training/dataset/utils/warp.py:99
↓ 1 callersFunctionprepare_testing_data
(config)
DeepfakeBench_DF40/training/train.py:101
↓ 1 callersFunctionprepare_testing_data
(config)
DeepfakeBench_DF40/training/test.py:58
↓ 1 callersFunctionprepare_testing_data
(config)
DeepfakeBench_DF40/training/logits_confidence_dist_draw.py:62
↓ 1 callersFunctionprepare_testing_data
(config)
DeepfakeBench_DF40/training/test_tsne.py:62
↓ 1 callersFunctionprepare_training_data
(config)
DeepfakeBench_DF40/training/train.py:62
↓ 1 callersFunctionprint_schedule
Log schedule.
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/multigrid.py:215
↓ 1 callersFunctionprocess_warp
Warp each triangle from the src_image only within the ROI of the destination image (points in dst_points).
DeepfakeBench_DF40/training/dataset/utils/faceswap.py:54
↓ 1 callersFunctionprocess_warp
Warp each triangle from the src_image only within the ROI of the destination image (points in dst_points).
DeepfakeBench_DF40/training/detectors/utils/faceswap.py:54
↓ 1 callersFunctionrandom_deform
(imageSize, nrows, ncols, mean=0, std=5)
DeepfakeBench_DF40/training/dataset/utils/warp.py:80
↓ 1 callersFunctionrandom_dilate
(mask, max_kernel_size=5)
DeepfakeBench_DF40/training/dataset/sbi_api.py:115
↓ 1 callersFunctionrandom_erode_dilate
(mask, ksize=None)
DeepfakeBench_DF40/training/dataset/library/bi_online_generation.py:38
↓ 1 callersFunctionrandom_erode_dilate
(mask, ksize=None)
DeepfakeBench_DF40/training/dataset/utils/bi_online_generation_yzy.py:103
↓ 1 callersFunctionrandom_erode_dilate
(mask, ksize=None)
DeepfakeBench_DF40/training/dataset/utils/bi_online_generation.py:86
↓ 1 callersFunctionrandom_get_hull
(landmark,img1,hull_type)
DeepfakeBench_DF40/training/dataset/library/bi_online_generation.py:24
↓ 1 callersFunctionrandom_get_hull
(landmark,img1,hull_type0, idx=0)
DeepfakeBench_DF40/training/dataset/utils/bi_online_generation_yzy.py:61
↓ 1 callersFunctionrandom_motion_blur
(mask, max_kernel_size=5)
DeepfakeBench_DF40/training/dataset/sbi_api.py:121
↓ 1 callersFunctionrandom_transform
Random transform images in a list :param images: :param rotation_range: :param zoom_range: :param shift_range: :param r
DeepfakeBench_DF40/training/dataset/utils/face_aug.py:92
↓ 1 callersMethodrandomdownscale
(self,img)
DeepfakeBench_DF40/training/dataset/sbi_api.py:82
↓ 1 callersMethodreparameterize
(self, mu, logvar)
DeepfakeBench_DF40/training/dataset/utils/image_ae.py:51
↓ 1 callersMethodreset
Reset the metric.
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/meters.py:267
↓ 1 callersMethodreset_parameters
(self)
DeepfakeBench_DF40/training/lib/component/srm_conv.py:29
↓ 1 callersMethodreset_parameters
(self)
DeepfakeBench_DF40/training/detectors/srm_detector.py:191
↓ 1 callersMethodsave_ckpt
(self, phase, dataset_key,ckpt_info=None)
DeepfakeBench_DF40/training/trainer/trainer.py:133
↓ 1 callersMethodsave_metrics
(self, phase, metric_one_dataset, dataset_key)
DeepfakeBench_DF40/training/trainer/trainer.py:175
↓ 1 callersFunctionsave_model_card
(repo_id: str, images=None, base_model=str, dataset_name=str, repo_folder=None)
EFS_finetune_code/diffusion_based/train_scripts/train_sd_lora.py:58
↓ 1 callersFunctionsave_model_card
(repo_id: str, images=None, base_model=str, dataset_name=str, repo_folder=None)
EFS_finetune_code/diffusion_based/train_scripts/train_kandinsky_decoder_lora.py:60
↓ 1 callersFunctionsave_model_card
(repo_id: str, images=None, base_model=str, dataset_name=str, repo_folder=None)
EFS_finetune_code/diffusion_based/train_scripts/train_kandinsky_prior_lora.py:60
↓ 1 callersFunctionsave_model_card
( repo_id: str, images=None, base_model=str, dataset_name=str, train_text_encoder=False,
EFS_finetune_code/diffusion_based/train_scripts/train_sdxl_lora.py:66
↓ 1 callersFunctionsave_model_card
(repo_id: str, images=None, base_model=str, dataset_name=str, repo_folder=None)
EFS_finetune_code/diffusion_based/train_scripts/train_pixart_lora.py:91
↓ 1 callersMethodsearch_similar_face
(self,this_landmark,background_face_path)
DeepfakeBench_DF40/training/dataset/library/bi_online_generation.py:198
↓ 1 callersMethodsearch_similar_face
(self,this_landmark,background_face_path)
DeepfakeBench_DF40/training/dataset/utils/bi_online_generation_yzy.py:263
↓ 1 callersMethodsearch_similar_face
(self,this_landmark,background_face_path)
DeepfakeBench_DF40/training/dataset/utils/bi_online_generation.py:246
↓ 1 callersMethodsetEval
(self)
DeepfakeBench_DF40/training/trainer/trainer.py:116
↓ 1 callersMethodsetTrain
(self)
DeepfakeBench_DF40/training/trainer/trainer.py:112
↓ 1 callersMethodspeed_up
(self)
DeepfakeBench_DF40/training/trainer/trainer.py:102
↓ 1 callersMethodstore
(self, label, output)
DeepfakeBench_DF40/training/metrics/base_metrics_class.py:159
↓ 1 callersFunctionswap_spe_features
(type_list, value_list)
DeepfakeBench_DF40/training/loss/contrastive_regularization.py:10
↓ 1 callersFunctiontest_epoch
(model, test_data_loaders)
DeepfakeBench_DF40/training/test.py:115
↓ 1 callersFunctiontest_epoch
(model, test_data_loaders)
DeepfakeBench_DF40/training/test_tsne.py:119
↓ 1 callersFunctiontest_one_dataset
(model, data_loader)
DeepfakeBench_DF40/training/test.py:91
↓ 1 callersFunctiontest_one_dataset
(model, data_loader)
DeepfakeBench_DF40/training/logits_confidence_dist_draw.py:137
↓ 1 callersFunctiontest_one_dataset
(model, data_loader)
DeepfakeBench_DF40/training/test_tsne.py:95
↓ 1 callersMethodtest_one_dataset
(self, data_loader)
DeepfakeBench_DF40/training/trainer/trainer.py:340
↓ 1 callersFunctiontext_encoder_attn_modules
(text_encoder)
EFS_finetune_code/diffusion_based/train_scripts/train_pixart_lora.py:62
↓ 1 callersMethodtokenize_captions
(self, caption)
EFS_finetune_code/diffusion_based/train_scripts/train_sdxl_lora.py:775
↓ 1 callersFunctiontokenize_prompt
(tokenizer, prompt)
EFS_finetune_code/diffusion_based/train_scripts/train_sdxl_lora.py:440
↓ 1 callersFunctiontotal_euclidean_distance
(a,b)
DeepfakeBench_DF40/training/dataset/library/bi_online_generation.py:20
↓ 1 callersFunctiontotal_euclidean_distance
(a,b)
DeepfakeBench_DF40/training/dataset/utils/bi_online_generation_yzy.py:57
↓ 1 callersFunctiontotal_euclidean_distance
(a,b)
DeepfakeBench_DF40/training/dataset/utils/bi_online_generation.py:37
↓ 1 callersMethodtrain_epoch
( self, epoch, train_data_loader, test_data_loaders=None, )
DeepfakeBench_DF40/training/trainer/trainer.py:213
↓ 1 callersMethodtrain_step
(self,data_dict)
DeepfakeBench_DF40/training/trainer/trainer.py:183
↓ 1 callersMethodtransform_image
(self, img_path)
EFS_finetune_code/diffusion_based/train_scripts/train_sdxl_lora.py:783
↓ 1 callersMethodtransform_landmarks
Transform landmarks to extend the eyebrow points up the forehead
DeepfakeBench_DF40/training/dataset/utils/DeepFakeMask.py:348
↓ 1 callersFunctiontransformation_from_points
(points1, points2)
DeepfakeBench_DF40/training/dataset/utils/faceswap.py:108
↓ 1 callersFunctiontransformation_from_points
(points1, points2)
DeepfakeBench_DF40/training/detectors/utils/faceswap.py:108
← previousnext →401–500 of 1,098, ranked by callers