MCPcopy Create free account

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

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

Method__init__
(self, in_dim, activation=None, ratio=8, ret_att=False)
DeepfakeBench_DF40/training/lib/component/attention.py:242
Method__init__
(self, inc=3, learnable=False)
DeepfakeBench_DF40/training/lib/component/srm_conv.py:44
Method__init__
(self, inc, outc, learnable=False)
DeepfakeBench_DF40/training/lib/component/srm_conv.py:100
Method__init__
(self, config)
DeepfakeBench_DF40/training/detectors/sbi_detector.py:56
Method__init__
(self, config)
DeepfakeBench_DF40/training/detectors/clip_detector.py:55
Method__init__
config: (dict) configurations for the model load_param: (False | True | Path(str)) False Do not read; True
DeepfakeBench_DF40/training/detectors/base_detector.py:15
Method__init__
(self, config)
DeepfakeBench_DF40/training/detectors/i3d_detector.py:133
Method__init__
(self, config)
DeepfakeBench_DF40/training/detectors/rfm_detector.py:56
Method__init__
(self, config)
DeepfakeBench_DF40/training/detectors/srm_detector.py:61
Method__init__
(self, inc=3, learnable=False)
DeepfakeBench_DF40/training/detectors/srm_detector.py:205
Method__init__
(self, inc, outc, learnable=False)
DeepfakeBench_DF40/training/detectors/srm_detector.py:262
Method__init__
(self, channels, kernel_size, sigma=0.1, dim=2)
DeepfakeBench_DF40/training/detectors/srm_detector.py:345
Method__init__
(self, mean=0, std=0.1, clip=1)
DeepfakeBench_DF40/training/detectors/srm_detector.py:404
Method__init__
(self, in_planes, ratio=8)
DeepfakeBench_DF40/training/detectors/srm_detector.py:419
Method__init__
(self, kernel_size=7)
DeepfakeBench_DF40/training/detectors/srm_detector.py:441
Method__init__
(self, in_dim, activation=None, ratio=8, cross_value=True)
DeepfakeBench_DF40/training/detectors/srm_detector.py:464
Method__init__
(self, in_dim, activation=None, size=16, ratio=8, ret_att=False)
DeepfakeBench_DF40/training/detectors/srm_detector.py:521
Method__init__
(self, in_channels)
DeepfakeBench_DF40/training/detectors/srm_detector.py:602
Method__init__
(self, in_chan=2048*2, out_chan=2048, *args, **kwargs)
DeepfakeBench_DF40/training/detectors/srm_detector.py:630
Method__init__
(self, config)
DeepfakeBench_DF40/training/detectors/spsl_detector.py:58
Method__init__
(self, config)
DeepfakeBench_DF40/training/detectors/recce_detector.py:63
Method__init__
(self, va_in, va_out, vb_in, vb_out, vc_in, vc_out, spatial_ratio, drop_rate)
DeepfakeBench_DF40/training/detectors/recce_detector.py:245
Method__init__
(self, depth=728, drop_rate=0.2)
DeepfakeBench_DF40/training/detectors/recce_detector.py:338
Method__init__
(self, config)
DeepfakeBench_DF40/training/detectors/xception_detector.py:54
Method__init__
overall_iters (int): the overall number of iterations of one epoch. cfg (CfgNode): configs. mode (str): `train`,
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/meters.py:51
Method__init__
Construct tensors to store the predictions and labels. Expect to get num_clips predictions from each video, and calculate the metrics
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/meters.py:224
Method__init__
Args: window_size (int): size of the max length of the deque.
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/meters.py:382
Method__init__
Args: epoch_iters (int): the overall number of iterations of one epoch. cfg (CfgNode): configs.
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/meters.py:431
Method__init__
Args: epoch_iters (int): the overall number of iterations of one epoch. cfg (CfgNode): configs.
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/meters.py:562
Method__init__
Args: max_iter (int): the max number of iteration of the current epoch. cfg (CfgNode): configs.
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/meters.py:689
Method__init__
Args: dim (int): number of dimension for the input. dim_inner (int): number of dimension inside of the Non-local bloc
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/nonlocal_helper.py:20
Method__init__
Naive version of Synchronized 3D BatchNorm. Args: num_sync_devices (int): number of device to sync. args (lis
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/batchnorm_helper.py:175
Method__init__
Args: dim_in (int): the channel dimension of the input. fusion_conv_channel_ratio (int): channel ratio for the convol
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:92
Method__init__
The `__init__` method of any subclass should also contain these arguments. Args: cfg (CfgNode): model buildin
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:155
Method__init__
The `__init__` method of any subclass should also contain these arguments. Args: cfg (CfgNode): model buildi
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:592
Method__init__
The `__init__` method of any subclass should also contain these arguments. Args: cfg (CfgNode): model buildi
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:769
Method__init__
The `__init__` method of any subclass should also contain these arguments. Args: cfg (CfgNode): model buildi
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:951
Method__init__
The `__init__` method of any subclass should also contain these arguments. Args: cfg (CfgNode): model buildi
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:1139
Method__init__
The `__init__` method of any subclass should also contain these arguments. Args: cfg (CfgNode): model buildi
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:1360
Method__init__
The `__init__` method of any subclass should also contain these arguments. Args: cfg (CfgNode): model buildi
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:1589
Method__init__
The `__init__` method of any subclass should also contain these arguments. Args: cfg (CfgNode): model buildi
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:1823
Method__init__
The `__init__` method of any subclass should also contain these arguments. Args: cfg (CfgNode): model buildi
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:2057
Method__init__
The `__init__` method of any subclass should also contain these arguments. Args: cfg (CfgNode): model buildi
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:2291
Method__init__
The `__init__` method of any subclass should also contain these arguments. Args: cfg (CfgNode): model buildi
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/video_model_builder.py:2524
Method__init__
Args: dim_in (int): the channel dimensions of the input. dim_out (int): the channel dimension of the output.
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/resnet_helper.py:31
Method__init__
Args: dim_in (int): the channel dimensions of the input. dim_out (int): the channel dimension of the output.
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/resnet_helper.py:115
Method__init__
Args: dim_in (int): the channel dimensions of the input. dim_out (int): the channel dimension of the output.
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/resnet_helper.py:202
Method__init__
The `__init__` method of any subclass should also contain these arguments. ResStage builds p streams, where p can be greater or equal
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/resnet_helper.py:458
Method__init__
The `__init__` method of any subclass should also contain these arguments. Args: dim_in (int): the channel dimension of
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/stem_helper.py:109
Method__init__
( self, in_channels, skip_channels, out_channels, use_batchnorm=True, )
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/unet_helper.py:47
Method__init__
( self, in_channels, skip_channels, out_channels, use_batchnorm=True, )
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/unet_helper.py:74
Method__init__
( self, in_channels, skip_channels, out_channels, use_batchnorm=True, )
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/unet_helper.py:117
Method__init__
The `__init__` method of any subclass should also contain these arguments. ResNetBasicHead takes p pathways as input wher
DeepfakeBench_DF40/training/detectors/utils/slowfast/models/head_helper.py:18
Method__init__
( self, config, model, optimizer, scheduler, writer,
DeepfakeBench_DF40/training/trainer/base_trainer.py:10
Method__init__
( self, config, model, optimizer, scheduler, logger, m
DeepfakeBench_DF40/training/trainer/trainer.py:39
Method__init__
(self, c_real, c_fake, c_cross)
DeepfakeBench_DF40/training/loss/patch_consistency_loss.py:32
Method__init__
(self)
DeepfakeBench_DF40/training/loss/consistency_loss.py:9
Method__init__
(self)
DeepfakeBench_DF40/training/loss/consistency_loss.py:46
Method__init__
(self, margin_type='cos', gamma=0., m=0.5, s=30, t=1., ratio=1.)
DeepfakeBench_DF40/training/loss/am_softmax.py:85
Method__init__
(self, losses, weights, verbose=False)
DeepfakeBench_DF40/training/loss/vgg_loss.py:30
Method__init__
(self, p, reduction='mean', eps=1e-8)
DeepfakeBench_DF40/training/loss/vgg_loss.py:67
Method__init__
(self, model='vgg16', layer=8, shift=0, reduction='mean')
DeepfakeBench_DF40/training/loss/vgg_loss.py:119
Method__init__
(self)
DeepfakeBench_DF40/training/loss/bce_loss.py:8
Method__init__
(self)
DeepfakeBench_DF40/training/loss/l1_loss.py:8
Method__init__
(self, margin=1.0)
DeepfakeBench_DF40/training/loss/contrastive_regularization.py:40
Method__init__
(self)
DeepfakeBench_DF40/training/loss/abstract_loss_func.py:5
Method__init__
(self, temperature=0.07, contrast_mode='all', base_temperature=0.07)
DeepfakeBench_DF40/training/loss/supercontrast_loss.py:17
Method__init__
(self)
DeepfakeBench_DF40/training/loss/js_loss.py:10
Method__init__
(self)
DeepfakeBench_DF40/training/loss/capsule_loss.py:8
Method__init__
(self)
DeepfakeBench_DF40/training/loss/cross_entropy_loss.py:8
Method__init__
(self, margin=0.5)
DeepfakeBench_DF40/training/loss/id_loss.py:8
Method__init__
(self)
DeepfakeBench_DF40/training/loss/classNseg_loss.py:39
Method__init__
(self)
DeepfakeBench_DF40/training/loss/classNseg_loss.py:48
Method__init__
(self)
DeepfakeBench_DF40/training/loss/classNseg_loss.py:57
Method__init__
(self, image_folder, transforms, args)
EFS_finetune_code/diffusion_based/train_scripts/train_ddpm.py:673
Method__init__
(self, image_folder, tokenizer, transforms, args)
EFS_finetune_code/diffusion_based/train_scripts/train_sd_lora.py:527
Method__init__
(self, image_folder, image_processor, transforms, args)
EFS_finetune_code/diffusion_based/train_scripts/train_kandinsky_decoder_lora.py:474
Method__init__
(self, image_folder, tokenizer, image_processor, args)
EFS_finetune_code/diffusion_based/train_scripts/train_kandinsky_prior_lora.py:464
Method__init__
(self, image_folder, tokenizer1, tokenizer2, transforms, args)
EFS_finetune_code/diffusion_based/train_scripts/train_sdxl_lora.py:754
Method__init__
(self, image_folder, tokenizer, transforms, args)
EFS_finetune_code/diffusion_based/train_scripts/train_pixart_lora.py:603
Method__len__
Return the length of the dataset. Args: None. Returns: An integer indicating the length of the data
DeepfakeBench_DF40/training/dataset/abstract_dataset.py:601
Method__len__
(self)
DeepfakeBench_DF40/training/dataset/sbi_dataset.py:91
Method__len__
(self)
DeepfakeBench_DF40/training/dataset/pair_dataset.py:80
Method__len__
(self)
EFS_finetune_code/diffusion_based/train_scripts/train_ddpm.py:680
Method__len__
(self)
EFS_finetune_code/diffusion_based/train_scripts/train_sd_lora.py:535
Method__len__
(self)
EFS_finetune_code/diffusion_based/train_scripts/train_kandinsky_decoder_lora.py:482
Method__len__
(self)
EFS_finetune_code/diffusion_based/train_scripts/train_kandinsky_prior_lora.py:473
Method__len__
(self)
EFS_finetune_code/diffusion_based/train_scripts/train_sdxl_lora.py:766
Method__len__
(self)
EFS_finetune_code/diffusion_based/train_scripts/train_pixart_lora.py:611
Function_disable
(module)
DeepfakeBench_DF40/training/optimizor/SAM.py:9
Function_enable
(module)
DeepfakeBench_DF40/training/optimizor/SAM.py:17
Method_get_att
(a, b)
DeepfakeBench_DF40/training/lib/component/attention.py:204
Method_get_att
(q, k)
DeepfakeBench_DF40/training/lib/component/attention.py:279
Method_get_att
(a, b)
DeepfakeBench_DF40/training/detectors/srm_detector.py:565
Method_register
(cls)
DeepfakeBench_DF40/training/metrics/registry.py:6
Functionadd_custom_config
(_C)
DeepfakeBench_DF40/training/detectors/utils/slowfast/config/custom_config.py:7
Functionadd_gaussian_noise
(ins, mean=0, stddev=0.2)
DeepfakeBench_DF40/training/networks/xception.py:99
Functionadd_gaussian_noise
(ins, mean=0, stddev=0.1)
DeepfakeBench_DF40/training/dataset/utils/image_ae.py:8
Functionaggregate_sub_bn_stats
Recursively find all SubBN modules and aggregate sub-BN stats. Args: module (nn.Module) Returns: count (int): number of S
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/misc.py:241
Functionall_gather
All gathers the provided tensors from all processes across machines. Args: tensors (list): tensors to perform all gather across all p
DeepfakeBench_DF40/training/detectors/utils/slowfast/utils/distributed.py:15
← previousnext →601–700 of 1,098, ranked by callers