MCPcopy Create free account

hub / github.com/10Ring/LAA-Net / functions

Functions375 in github.com/10Ring/LAA-Net

↓ 12 callersMethod__init__
Implementation for ResNet 50, 101, 152 with/out SE module
models/networks/arcface.py:132
↓ 12 callersFunctionget_block
(in_channel, depth, num_units, stride = 2)
models/networks/arcface.py:101
↓ 12 callersMethodupdate
(self, val, n=1)
lib/core_function.py:25
↓ 9 callersFunctionconv_block
(inplanes, outplanes, kernel_size, stride=1, padding=0)
models/networks/common.py:17
↓ 9 callersMethodget
Get the registry record. Args: key (str): The class name in string format. Returns: class: The corresponding c
register/register.py:198
↓ 8 callersFunctionload_config
(cfg)
configs/get_config.py:12
↓ 7 callersFunction_sigmoid
(hm)
losses/losses.py:13
↓ 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
models/networks/efficientNet.py:109
↓ 6 callersMethod__init__
(self, cfg, **kwargs)
losses/losses.py:131
↓ 6 callersFunctionload_image
(image_path)
package_utils/image_utils.py:7
↓ 5 callersMethod_point_wise_block
(self, inplanes, outplanes)
models/networks/mrsa_resnet.py:243
↓ 5 callersFunctionbuild_model
(cfg: Dict, model: Registry, build_func=build_model_from_cfg,
models/builder.py:41
↓ 5 callersFunctionbuild_pipeline
(cfg, pipeline: Registry , build_func=build_from_cfg,
datasets/builder.py:15
↓ 5 callersFunctionget_affine_transform
(center, scale, rot, output_size
package_utils/transform.py:25
↓ 5 callersMethodregister_module
Register a module. A record will be added to `self._module_dict`, whose key is the class name or the specified name, and value is the
register/register.py:270
↓ 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:
models/networks/efficientNet.py:41
↓ 5 callersFunctionvis_heatmap
(image, heatmaps, file_name)
package_utils/utils.py:21
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1)
models/networks/mrsa_resnet.py:253
↓ 4 callersFunction_ntuple
(n)
register/misc.py:14
↓ 4 callersMethodbuild
(self, *args, **kwargs)
register/register.py:221
↓ 4 callersFunctionbuild_dataset
(cfg, dataset: Registry, build_func=build_from_cfg, def
datasets/builder.py:22
↓ 4 callersMethodepochInfor
(self, epoch, idx, length, batch
logs/logger.py:29
↓ 4 callersFunctionget_acc_mesure_func
(task='binary')
lib/metrics.py:81
↓ 4 callersFunctionl2_norm
(input,axis=1)
models/networks/arcface.py:27
↓ 3 callersMethod__init__
(self, inplanes, planes, stride=1, downsample=None)
models/networks/pose_hrnet.py:20
↓ 3 callersMethod_check_model_name_is_valid
Validates model name. Args: model_name (str): Name for efficientnet. Returns: bool: Is a valid name or not.
models/networks/pose_efficientNet.py:678
↓ 3 callersMethod_load_from_file
@split: train/val This function for loading data from file for 4 types of manipulated images FF++ and FaceXray generation data
datasets/common.py:50
↓ 3 callersMethod_load_from_path
(self, split)
datasets/ff.py:16
↓ 3 callersMethod_make_stage
(self, layer_config, num_inchannels, multi_scale_output=True)
models/networks/pose_hrnet.py:394
↓ 3 callersMethod_make_transition_layer
( self, num_channels_pre_layer, num_channels_cur_layer)
models/networks/pose_hrnet.py:334
↓ 3 callersMethod_register_module
(self, module, module_name=None, force=False)
register/register.py:244
↓ 3 callersMethodapply
(self, img, **params)
datasets/sbi/utils.py:24
↓ 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
models/networks/efficientNet.py:409
↓ 3 callersFunctiondraw_landmarks
This function is to draw facial landmarks into transformed images
package_utils/transform.py:72
↓ 3 callersFunctionfacecrop
(model, org_path, save_path, period=1, num_frames=10, dataset='original', label=None, mask_path=None, padding=
package_utils/images_crop.py:24
↓ 3 callersFunctionfile_extention
(file_path)
package_utils/utils.py:11
↓ 3 callersFunctionfinal_transform
(_cfg)
package_utils/transform.py:103
↓ 3 callersFunctionget_center_scale
(shape, aspect_ratio, pixel_std=200)
package_utils/transform.py:85
↓ 3 callersFunctionis_seq_of
Check whether it is a sequence of some type. Args: seq (Sequence): The sequence to be checked. expected_type (type): Expected type
register/misc.py:120
↓ 3 callersFunctionrandom_get_hull
(landmark,img1)
package_utils/deepfake_mask.py:177
↓ 3 callersMethodselect_encode_method
(self, version=0)
datasets/common.py:310
↓ 3 callersMethodstep
(self, closure=None)
lib/optimizers/sam.py:58
↓ 2 callersMethod__init__
(self, inplanes, planes, stride=1, downsample=None)
models/networks/mrsa_resnet.py:43
↓ 2 callersMethod__init__
(self,in_filters,out_filters,reps,strides=1,start_with_relu=True,grow_first=True)
models/networks/xception.py:50
↓ 2 callersMethod__init__
(self, block_args, global_params, image_size=None)
models/networks/pose_efficientNet.py:58
↓ 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
models/networks/pose_efficientNet.py:688
↓ 2 callersMethod_gen_target
(self, background_face, background_landmark, foreground_face_path, idx=None)
datasets/face_forensic_hm.py:128
↓ 2 callersMethod_get_deconv_cfg
(self, deconv_kernel)
models/networks/pose_efficientNet.py:358
↓ 2 callersMethod_load_data
(self, split, anno_file=None)
datasets/face_forensic_sbi.py:68
↓ 2 callersMethod_load_data
(self, split)
datasets/face_forensic_hm.py:60
↓ 2 callersMethod_load_img
(self, img_path)
datasets/face_forensic_sbi.py:62
↓ 2 callersMethod_sampler
(self, image_paths, labels, **params)
datasets/common.py:273
↓ 2 callersFunctionbin_calculate_acc
(preds, labels, targets=None, threshold=0.5)
lib/metrics.py:11
↓ 2 callersFunctionbin_calculate_auc_ap_ar
(cls_preds, labels, metrics_base='binary', hm_preds=None, cls_lamda=0.1, threshold=0.5)
lib/metrics.py:48
↓ 2 callersFunctionblendImages
(src, dst, mask, featherAmount=0.2)
package_utils/bi_online_generation.py:93
↓ 2 callersFunctionboard_writing
(writer, loss, acc, iterations, dataset='Train')
logs/logger.py:63
↓ 2 callersMethodbuild_data
(self, img_paths, file_names, **kwargs)
package_utils/geo_landmarks_extraction.py:196
↓ 2 callersFunctionbuild_from_cfg
Build a module from config dict when it is a class configuration, or call a function from config dict when it is a function configuration. Exa
register/register.py:10
↓ 2 callersFunctioncal_mask_wh
(p, mask)
package_utils/image_utils.py:43
↓ 2 callersFunctioncheck_prerequisites
A decorator factory to check if prerequisites are satisfied. Args: prerequisites (str of list[str]): Prerequisites to be checked.
register/misc.py:190
↓ 2 callersFunctioncolorTransfer
(src, dst, mask)
package_utils/bi_online_generation.py:123
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
models/networks/mrsa_resnet.py:34
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
models/networks/common.py:25
↓ 2 callersFunctiondebugging_panel
(debug_cfg, batch_image, batch_heatmaps_gt, bat
package_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_dict[
models/networks/efficientNet.py:208
↓ 2 callersMethodfirst_step
(self, zero_grad=False)
lib/optimizers/sam.py:33
↓ 2 callersFunctiongaussian_radius
(det_size, min_overlap=0.7)
package_utils/image_utils.py:20
↓ 2 callersFunctiongen_real_fimg_mask
(img_path)
package_utils/bi_online_generation.py:60
↓ 2 callersFunctiongen_target
(background_face, background_landmark, margin=[20, 20])
datasets/sbi/utils.py:97
↓ 2 callersFunctionget_3rd_point
(a, b)
package_utils/transform.py:20
↓ 2 callersFunctionget_batch_data
(batch_data)
lib/core_function.py:32
↓ 2 callersFunctionget_model_params
Get the block args and global params for a given model name. Args: model_name (str): Model's name. override_params (dict): A dict
models/networks/efficientNet.py:187
↓ 2 callersFunctionget_source_transforms
()
datasets/sbi/utils.py:41
↓ 2 callersFunctioniter_cast
Cast elements of an iterable object into some type. Args: inputs (Iterable): The input object. dst_type (type): Destination type.
register/misc.py:83
↓ 2 callersFunctionload_pretrained
This function only care about state dict of model For other modules such as optimizer, resume learning, please refer @load_model
models/utils.py:43
↓ 2 callersFunctionname_resolve
(path)
package_utils/bi_online_generation.py:50
↓ 2 callersFunctionoverlay_mask
Overlay a colormapped mask on a background image >>> from PIL import Image >>> import matplotlib.pyplot as plt >>> from torchcam.utils im
package_utils/image_utils.py:63
↓ 2 callersFunctionpoint_wise_block
(inplanes, outplanes)
models/networks/common.py:9
↓ 2 callersFunctionrandom_erode_dilate
(mask, ksize=None)
package_utils/bi_online_generation.py:72
↓ 2 callersFunctionsave_batch_heatmaps
batch_image: [batch_size, channel, height, width] batch_heatmaps: ['batch_size, num_joints, height, width] batch_cls: ['batch_size, num_j
package_utils/utils.py:39
↓ 2 callersFunctionsave_file
(data, file_path)
package_utils/utils.py:130
↓ 2 callersMethodsearch_similar_face
(self, this_landmark, background_face_path, get_best=False)
package_utils/bi_online_generation.py:329
↓ 2 callersMethodsecond_step
(self, zero_grad=False)
lib/optimizers/sam.py:47
↓ 2 callersMethodwait_n_put
(self, item)
package_utils/bi_online_generation.py:192
↓ 1 callersMethod_CLAHE
(self, clip_limit=4.0, tile_grid_size=(8, 8), always_apply=Fal
datasets/pipelines/color_transform.py:43
↓ 1 callersMethod__contain__
(self, key)
package_utils/geo_landmarks_extraction.py:54
↓ 1 callersMethod__init__
(self, always_apply: bool = False, p: float = 0.5, min_area=0.02, max_area=1/3, min_aspect=0
datasets/pipelines/geo_transform.py:129
↓ 1 callersMethod__init__
(self, in_channels, out_channels, kernel_size, stride=1, image_size=None, **kwargs)
models/networks/efficientNet.py:163
↓ 1 callersMethod__init__
(self, channel, reduction=16)
models/networks/common.py:61
↓ 1 callersMethod__len__
(self)
datasets/face_forensic_sbi.py:59
↓ 1 callersMethod__len__
(self)
datasets/face_forensic_hm.py:158
↓ 1 callersMethod__repr__
()
models/networks/mrsa_resnet.py:72
↓ 1 callersMethod_add_children
Add children for a registry. The ``registry`` will be added as children based on its scope. The parent registry could build objects fr
register/register.py:224
↓ 1 callersMethod_align_face
(self, image, f_lms)
package_utils/geo_landmarks_extraction.py:137
↓ 1 callersFunction_avg_sigmoid
(hm)
losses/losses.py:19
↓ 1 callersMethod_change_in_channels
(self, in_channels)
models/networks/pose_efficientNet.py:718
↓ 1 callersMethod_check_branches
(self, num_branches, blocks, num_blocks, num_inchannels, num_channels)
models/networks/pose_hrnet.py:108
↓ 1 callersMethod_cls_loss
(self, preds, gts)
losses/losses.py:163
↓ 1 callersMethod_colorjitter
(self, brightness=0.2, contrast=0.2, saturat
datasets/pipelines/color_transform.py:53
↓ 1 callersMethod_consistency_loss
(self, preds, gts)
losses/losses.py:169
next →1–100 of 375, ranked by callers