MCPcopy Create free account

hub / github.com/beibuwandeluori/DFGC_Detection / functions

Functions401 in github.com/beibuwandeluori/DFGC_Detection

↓ 9 callersMethodfeatures
(self, input)
data_preparation/generate_adversarial/models/xception.py:143
↓ 8 callersMethodbackward
(ctx, grad_output)
submission_Det/utils.py:69
↓ 7 callersFunctionget_same_padding_conv2d
Chooses static padding if you have specified an image size, and dynamic padding otherwise. Static padding is necessary for ONNX exporting of mo
submission_Det/utils.py:195
↓ 6 callersFunctionget_face_mask
(face_img)
data_preparation/generate_adversarial/get_dlib_mask.py:118
↓ 5 callersFunctionround_filters
Calculate and round number of filters based on width multiplier. Use width_coefficient, depth_divisor and min_depth of global_params. Args
submission_Det/utils.py:79
↓ 5 callersMethodupdate
(self, val, n=1)
utils/utils.py:87
↓ 4 callersFunctionbuild_transforms
Builds train and test transform functions. Args: height (int): target image height. width (int): target image width.E nor
data_preparation/train_baseline_model/resnet34_resnet50_vgg16_vgg16_bn/transforms.py:6
↓ 4 callersFunctionget_metrics
(y_true, y_pred)
data_preparation/train_baseline_model/resnet34_resnet50_vgg16_vgg16_bn/metrics.py:45
↓ 3 callersMethod__init__
(self, in_channels, out_channels, kernel_size, stride=1, image_size=None, **kwargs)
submission_Det/utils.py:251
↓ 3 callersMethod__init__
(self, input_size=[224, 224])
data_preparation/generate_adversarial/attack_ensemble_example2.py:40
↓ 3 callersMethod__init__
(self, input_size=[224, 224])
data_preparation/generate_adversarial/attack_ensemble_example3.py:38
↓ 3 callersMethod__init__
(self, input_size=[224, 224])
data_preparation/generate_adversarial/attack_ensemble_example5.py:38
↓ 3 callersMethod__init__
(self, input_size=[224, 224])
data_preparation/generate_adversarial/attack_ensemble_example1.py:39
↓ 3 callersMethod__init__
(self, input_size=[224, 224])
data_preparation/generate_adversarial/attack_ensemble_example4.py:38
↓ 3 callersMethodattack
r""" Overridden.
data_preparation/generate_adversarial/attacker.py:50
↓ 3 callersFunctioncalculate_output_image_size
Calculates the output image size when using Conv2dSamePadding with a stride. Necessary for static padding. Thanks to mannatsingh for pointing t
submission_Det/utils.py:170
↓ 3 callersFunctioneval_model
(model, epoch, eval_loader, is_save=True, is_tta=False, metric_name='acc')
train_3c.py:40
↓ 3 callersFunctionget_image
(img_name_t1)
dataset/utils.py:126
↓ 3 callersFunctionget_tn_tp_fn_fp
(y_true, y_pred)
data_preparation/train_baseline_model/resnet18/metrics.py:19
↓ 3 callersFunctionget_tn_tp_fn_fp
(y_true, y_pred)
data_preparation/train_baseline_model/vgg19_vgg19_bn/metrics.py:19
↓ 3 callersFunctionget_tn_tp_fn_fp
(y_true, y_pred)
data_preparation/train_baseline_model/resnet34_resnet50_vgg16_vgg16_bn/metrics.py:19
↓ 2 callersMethod__init__
(self, block_args, global_params, image_size=None)
submission_Det/efficientnet.py:65
↓ 2 callersMethod__init__
(self, in_filters, out_filters, reps, strides=1, start_with_relu=True, grow_first=True)
data_preparation/generate_adversarial/models/xception.py:46
↓ 2 callersMethod_change_in_channels
Adjust model's first convolution layer to in_channels, if in_channels not equals 3. Args: in_channels (int): Input data's channel
submission_Det/efficientnet.py:422
↓ 2 callersMethod_check_model_name_is_valid
Validates model name. Args: model_name (str): Name for efficientnet. Returns: bool: Is a valid name or not.
submission_Det/efficientnet.py:410
↓ 2 callersFunctionaccuracy_score
(y_true, y_pred)
data_preparation/train_baseline_model/resnet18/metrics.py:36
↓ 2 callersMethodattack
r""" Overridden.
data_preparation/generate_adversarial/attacker.py:101
↓ 2 callersFunctionblend_fake_real_img
(this_path, this_landmark, searched_path, searched_landmark, size=(256, 256))
dataset/blending.py:103
↓ 2 callersFunctionbuild_transforms
Builds train and test transform functions. Args: height (int): target image height. width (int): target image width.E nor
data_preparation/train_baseline_model/resnet18/transforms.py:6
↓ 2 callersFunctionbuild_transforms
Builds train and test transform functions. Args: height (int): target image height. width (int): target image width.E nor
data_preparation/train_baseline_model/vgg19_vgg19_bn/transforms.py:6
↓ 2 callersFunctioncalculate_metrics
(outputs, targets, metric_name='acc')
utils/utils.py:107
↓ 2 callersFunctionefficientnet_params
Map EfficientNet model name to parameter coefficients. Args: model_name (str): Model name to be queried. Returns: params_dic
submission_Det/utils.py:452
↓ 2 callersMethodfrom_name
create an efficientnet model according to name. Args: model_name (str): Name for efficientnet. in_channels (int): Inp
submission_Det/efficientnet.py:336
↓ 2 callersFunctionget_metrics
(y_true, y_pred)
data_preparation/train_baseline_model/vgg19_vgg19_bn/metrics.py:45
↓ 2 callersFunctioninput_diversity
(image, div_prob=0.9, low=1.0, high=1.2)
data_preparation/generate_adversarial/attacker.py:20
↓ 2 callersMethodload_landmarks
:param landmarks_file: input landmarks json file name :return: all_landmarks: having the shape of 64x2 list. represent left eye,
dataset/dataset.py:177
↓ 2 callersMethodlog
(self, phase, values)
utils/utils.py:101
↓ 2 callersFunctionmodel_selection
:param modelname: :return: model, image size, pretraining<yes/no>, input_list
network/models.py:74
↓ 2 callersFunctionparse_args
()
data_preparation/extract_face/extract_video_celeb_df_v2_yotube.py:87
↓ 2 callersFunctionparse_args
()
data_preparation/extract_face/extract_video_celeb_df_v2.py:89
↓ 2 callersFunctionparse_args
()
data_preparation/train_baseline_model/resnet18/train_binary_resnet18.py:36
↓ 2 callersFunctionparse_args
()
data_preparation/train_baseline_model/vgg19_vgg19_bn/train_binary_vgg19.py:36
↓ 2 callersFunctionparse_args
()
data_preparation/train_baseline_model/vgg19_vgg19_bn/train_binary_vgg19_bn.py:36
↓ 2 callersFunctionparse_args
()
data_preparation/train_baseline_model/resnet34_resnet50_vgg16_vgg16_bn/train_binary_resnet34.py:36
↓ 2 callersFunctionparse_args
()
data_preparation/train_baseline_model/resnet34_resnet50_vgg16_vgg16_bn/train_binary_resnet50.py:36
↓ 2 callersFunctionparse_args
()
data_preparation/train_baseline_model/resnet34_resnet50_vgg16_vgg16_bn/train_binary_vgg16_bn.py:36
↓ 2 callersFunctionparse_args
()
data_preparation/train_baseline_model/resnet34_resnet50_vgg16_vgg16_bn/train_binary_vgg16.py:36
↓ 2 callersFunctionparse_args
()
data_preparation/generate_adversarial/attack_ensemble_example2.py:129
↓ 2 callersFunctionparse_args
()
data_preparation/generate_adversarial/attack_ensemble_example3.py:128
↓ 2 callersFunctionparse_args
()
data_preparation/generate_adversarial/attack_ensemble_example5.py:127
↓ 2 callersFunctionparse_args
()
data_preparation/generate_adversarial/attack_ensemble_example1.py:130
↓ 2 callersFunctionparse_args
()
data_preparation/generate_adversarial/attack_ensemble_example4.py:127
↓ 2 callersMethodsearch_similar_face
(self, video_name, this_landmark)
dataset/dataset.py:192
↓ 1 callersFunctionTTA
(model_, img, activation=nn.Softmax(dim=1))
train_3c.py:22
↓ 1 callersMethod__flip
Flip vertically and horizontally
utils/utils.py:30
↓ 1 callersMethod__flip
Flip vertically and horizontally
dataset/utils.py:43
↓ 1 callersMethod__init__
(self, device_id=0)
submission_Det/model.py:95
↓ 1 callersMethod__init__
(self, class_num, droprate=0.5, return_f=False)
data_preparation/train_baseline_model/resnet18/resnet18.py:70
↓ 1 callersMethod__init__
(self, class_num, droprate=0.5, return_f=False)
data_preparation/train_baseline_model/vgg19_vgg19_bn/vgg19_bn.py:70
↓ 1 callersMethod__init__
(self, class_num, droprate=0.5, return_f=False)
data_preparation/train_baseline_model/vgg19_vgg19_bn/vgg19.py:70
↓ 1 callersMethod__init__
(self, class_num, droprate=0.5, return_f=False)
data_preparation/train_baseline_model/resnet34_resnet50_vgg16_vgg16_bn/resnet34.py:70
↓ 1 callersMethod__init__
(self, class_num, droprate=0.5, return_f=False)
data_preparation/train_baseline_model/resnet34_resnet50_vgg16_vgg16_bn/resnet50.py:70
↓ 1 callersMethod__init__
(self, class_num, droprate=0.5, return_f=False)
data_preparation/train_baseline_model/resnet34_resnet50_vgg16_vgg16_bn/vgg16.py:70
↓ 1 callersMethod__init__
(self, class_num, droprate=0.5, return_f=False)
data_preparation/train_baseline_model/resnet34_resnet50_vgg16_vgg16_bn/vgg16_bn.py:70
↓ 1 callersMethod__init__
(self, class_num, droprate=0.5, return_f=False)
data_preparation/generate_adversarial/models/vgg19_bn.py:70
↓ 1 callersMethod__init__
(self, class_num, droprate=0.5, return_f=False)
data_preparation/generate_adversarial/models/resnet34.py:70
↓ 1 callersMethod__init__
(self, class_num, droprate=0.5, return_f=False)
data_preparation/generate_adversarial/models/resnet50.py:70
↓ 1 callersMethod__init__
(self, class_num, droprate=0.5, return_f=False)
data_preparation/generate_adversarial/models/vgg16.py:70
↓ 1 callersMethod__init__
(self, class_num, droprate=0.5, return_f=False)
data_preparation/generate_adversarial/models/vgg16_bn.py:70
↓ 1 callersMethod__init__
(self, class_num, droprate=0.5, return_f=False)
data_preparation/generate_adversarial/models/vgg19.py:70
↓ 1 callersMethod__init__
(self, smoothing=0.05)
loss/losses.py:7
↓ 1 callersMethod__inverse_flip
Flip vertically and horizontally
utils/utils.py:36
↓ 1 callersMethod__inverse_flip
Flip vertically and horizontally
dataset/utils.py:49
↓ 1 callersMethod__inverse_rotation
anticlockwise rotation 90 180 270
utils/utils.py:21
↓ 1 callersMethod__inverse_rotation
anticlockwise rotation 90 180 270
dataset/utils.py:34
↓ 1 callersMethod__rotation
clockwise rotation 90 180 270
utils/utils.py:12
↓ 1 callersMethod__rotation
clockwise rotation 90 180 270
dataset/utils.py:25
↓ 1 callersMethod_decode_block_string
Get a block through a string notation of arguments. Args: block_string (str): A string notation of arguments.
submission_Det/utils.py:362
↓ 1 callersMethod_encode_block_string
Encode a block to a string. Args: block (namedtuple): A BlockArgs type argument. Returns: block_string: A St
submission_Det/utils.py:397
↓ 1 callersFunctionblendImages
(src, dst, mask, featherAmount=0.2)
dataset/blending.py:56
↓ 1 callersMethodbuild_mask
Override to build the mask
dataset/DeepFakeMask.py:60
↓ 1 callersMethodbuild_mask
Override to build the mask
data_preparation/generate_adversarial/get_dlib_mask.py:29
↓ 1 callersFunctioncalculate_eer
Returns the equal error rate for a binary classifier output.
dataset/utils.py:152
↓ 1 callersFunctioncenter_crop
(image_t1, image_t2)
dataset/utils.py:111
↓ 1 callersFunctioncolorTransfer
(src, dst, mask)
dataset/blending.py:84
↓ 1 callersFunctioncreate_train_transforms
(size=300)
dataset/dataset.py:30
↓ 1 callersFunctioncreate_val_transforms
(size=300)
dataset/dataset.py:50
↓ 1 callersMethoddecode
Decode a list of string notations to specify blocks inside the network. Args: string_list (list[str]): A list of strings, each st
submission_Det/utils.py:421
↓ 1 callersFunctiondrop_connect
Drop connect. Args: input (tensor: BCWH): Input of this structure. p (float: 0.0~1.0): Probability of drop connection. tr
submission_Det/utils.py:125
↓ 1 callersFunctionefficientnet
Create BlockArgs and GlobalParams for efficientnet model. Args: width_coefficient (float) depth_coefficient (float) image
submission_Det/utils.py:477
↓ 1 callersMethodextract_features
use convolution layer to extract feature . Args: inputs (tensor): Input tensor. Returns: Output of the final
submission_Det/efficientnet.py:290
↓ 1 callersFunctionextract_frames
(videos_path, detector=None, frame_subsample_count=30, scale=1.3)
data_preparation/train_baseline_model/resnet18/data_utils.py:23
↓ 1 callersFunctionextract_video
(input_dir, model, scale=1.3)
data_preparation/extract_face/extract_video_celeb_df_v2_yotube.py:19
↓ 1 callersFunctionextract_video
(input_dir, model, scale=1.3)
data_preparation/extract_face/extract_video_celeb_df_v2.py:19
↓ 1 callersMethodfrom_pretrained
create an efficientnet model according to name. Args: model_name (str): Name for efficientnet. weights_path (None or
submission_Det/efficientnet.py:361
↓ 1 callersFunctionget_EER
(y_true, y_pred)
data_preparation/train_baseline_model/resnet18/metrics.py:11
↓ 1 callersFunctionget_EER
(y_true, y_pred)
data_preparation/train_baseline_model/vgg19_vgg19_bn/metrics.py:11
↓ 1 callersFunctionget_EER
(y_true, y_pred)
data_preparation/train_baseline_model/resnet34_resnet50_vgg16_vgg16_bn/metrics.py:11
↓ 1 callersFunctionget_auc
(y_true, y_pred)
data_preparation/train_baseline_model/resnet18/metrics.py:6
↓ 1 callersFunctionget_auc
(y_true, y_pred)
data_preparation/train_baseline_model/vgg19_vgg19_bn/metrics.py:6
next →1–100 of 401, ranked by callers