MCPcopy Create free account

hub / github.com/JDAI-CV/FaceX-Zoo / functions

Functions1,054 in github.com/JDAI-CV/FaceX-Zoo

↓ 2 callersMethod__init__
(self, planes)
addition_module/DMUE/models/resnet_ibn_a.py:7
↓ 2 callersMethod__init__
(self, planes)
addition_module/DMUE/models/resnet_ibn_multibranch.py:7
↓ 2 callersMethod__init__
(self, num_branches, num_classes, last_stride=2, block=Bottleneck, frozen_stages=-1,layers=[
addition_module/DMUE/models/resnet_multibranch.py:84
↓ 2 callersMethod__init__
(self, last_stride=2, block=Bottleneck, layers=[3, 4, 6, 3])
addition_module/DMUE/models/resnet.py:84
↓ 2 callersMethod__init__
(self, planes)
addition_module/DMUE/pretrain/backbones/resnet_ibn_a.py:18
↓ 2 callersMethod__init__
(self, last_stride=2, block=Bottleneck, frozen_stages=-1,layers=[3, 4, 6, 3])
addition_module/DMUE/pretrain/backbones/resnet.py:86
↓ 2 callersMethod__init__
Init MegaFaceEvaluator by some initial files. Args: facescrub_json_list(str): the facescrub list provided by official.
addition_module/face_lightning/KDF/test_protocol/megaface/megaface_evaluator.py:35
↓ 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
backbone/EfficientNets.py:1028
↓ 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.
backbone/EfficientNets.py:1016
↓ 2 callersFunction_forge_grid
Forge transform maps with a given function `fn`. Args: output_shape (tuple): (b, h, w, ...). fn (Callable[[torch.Tensor], torch.T
face_sdk/utils/transform.py:88
↓ 2 callersMethod_get_label
(self, dataset, idx)
addition_module/DMUE/datasets/sampler.py:37
↓ 2 callersMethod_get_lr
(self, t)
training_mode/swin_training/lr_scheduler.py:83
↓ 2 callersMethod_make_layer
(self, block, inplanes, planes, blocks, stride=1)
backbone/HRNet.py:402
↓ 2 callersFunction_safe_arctanh
(x: torch.Tensor, eps: float = 0.001)
face_sdk/utils/transform.py:116
↓ 2 callersMethodadd_mask_one
Add mask to one image. Args: image_path(str): the image to add mask. face_lms(str): face landmarks, [x1, y1, x2, y2,
addition_module/face_mask_adding/FMA-3D/face_masker.py:137
↓ 2 callersMethodargNmax
Get the index/indexes of the Nth largest element. Suppose the shape of score_mat is R*C, axis=1 mean that the indexes of the Nth larg
test_protocol/megaface/megaface_evaluator.py:71
↓ 2 callersMethodargNmax
Get the index/indexes of the Nth largest element. Suppose the shape of score_mat is R*C, axis=1 mean that the indexes of the Nth larg
addition_module/face_lightning/KDF/test_protocol/megaface/megaface_evaluator.py:71
↓ 2 callersFunctionbbreg
(boundingbox, reg)
addition_module/DMUE/preprocess/mtcnn/detect_face.py:188
↓ 2 callersMethodcompute_theta
(self, p, g, label, batch_size)
head/SST_Prototype.py:43
↓ 2 callersMethodcompute_theta
(self, p, g, label, batch_size, VIS_Prototype=True)
addition_module/HSST/HSST_Prototype.py:45
↓ 2 callersFunctioncontrast_depth_conv
compute contrast depth in both of (out, label)
addition_module/DSDG/DUM/train.py:35
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
backbone/HRNet.py:29
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
addition_module/DMUE/models/resnet_multibranch.py:6
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
addition_module/DMUE/models/resnet.py:6
↓ 2 callersFunctionconv3x3
3x3 convolution with padding
addition_module/DMUE/pretrain/backbones/resnet.py:8
↓ 2 callersFunctionconv_bn
(in_channels, out_channels, kernel_size, stride, padding, groups=1)
backbone/RepVGG.py:19
↓ 2 callersMethodcrop_face_from_scene
(self, image, face_name_full, scale)
addition_module/DSDG/data/generation_dataset.py:96
↓ 2 callersFunctioncrop_face_from_scene_prnet
(image, face_name_full, scale)
addition_module/DSDG/DUM/make_dataset/crop_dataset.py:43
↓ 2 callersMethodcrop_image_by_mat
Should be overridden by all subclasses. Used for online image cropping, input the original Mat, and return the Mat obtained from the
face_sdk/core/image_cropper/BaseImageCropper.py:16
↓ 2 callersFunctiondefine_G
(hdim=256, attack_type=4)
addition_module/DSDG/networks/__init__.py:7
↓ 2 callersFunctionefficientnet
Create BlockArgs and GlobalParams for efficientnet model. Args: width_coefficient (float) depth_coefficient (float) image
backbone/EfficientNets.py:494
↓ 2 callersFunctionefficientnet_params
Map EfficientNet model name to parameter coefficients. Args: model_name (str): Model name to be queried. Returns: params_dic
backbone/EfficientNets.py:454
↓ 2 callersMethodencode
Encode a list of BlockArgs to a list of strings. Args: blocks_args (list[namedtuples]): A list of BlockArgs namedtuples of block
backbone/EfficientNets.py:439
↓ 2 callersMethodextract_feature_onnx
(self, output_path, image_path)
addition_module/model_convertor/convert_to_onnx/model_convert.py:52
↓ 2 callersMethodextract_feature_pytorch
(self, model, image_path)
addition_module/model_convertor/convert_to_onnx/model_convert.py:40
↓ 2 callersMethodextract_online
Extract and return features. Args: model(object): initialized model. data_loader(object): load data to be
test_protocol/utils/extractor/feature_extractor.py:25
↓ 2 callersMethodextract_online
Extract and return features. Args: model(object): initialized model. data_loader(object): load data to be
addition_module/face_lightning/KDF/test_protocol/utils/extractor/feature_extractor.py:25
↓ 2 callersFunctionfixed_batch_process
(im_data, model)
addition_module/DMUE/preprocess/mtcnn/detect_face.py:16
↓ 2 callersMethodforward
(self, data, label)
training_mode/swin_training/train.py:52
↓ 2 callersMethodforward
(self, data, label)
training_mode/distributed_training/train.py:48
↓ 2 callersMethodforward
(self, data, label)
training_mode/conventional_training/train_amp.py:46
↓ 2 callersMethodforward
(self, data, label)
addition_module/face_lightning/KDF/training_mode/kd_training/train.py:48
↓ 2 callersMethodforward
(self, data, label)
addition_module/face_lightning/KDF/training_mode/kd_training/train_ft.py:50
↓ 2 callersMethodfsp_matrix
(self, fm1, fm2)
addition_module/face_lightning/KDF/loss/fsp.py:19
↓ 2 callersFunctiongenerate_weight_map
(weight_map,heatmap)
addition_module/DMUE/preprocess/face_alignmenet/utils/utils.py:331
↓ 2 callersFunctionget_err_threhold_CASIA_Replay
(fpr, tpr, threshold)
addition_module/DSDG/DUM/utils.py:297
↓ 2 callersMethodget_kd_loss
(self)
addition_module/face_lightning/KDF/loss/loss_def.py:31
↓ 2 callersFunctionget_lr
Get the current learning rate from optimizer.
addition_module/face_lightning/KDF/training_mode/kd_training/train_ft.py:55
↓ 2 callersFunctionget_same_padding
(kernel_size)
backbone/TF_NAS.py:28
↓ 2 callersFunctionisPointInTri
Judge whether the point is in the triangle Method: http://blackpawn.com/texts/pointinpoly/ Args: point: [u, v] or [x, y]
addition_module/face_mask_adding/FMA-3D/utils/render.py:7
↓ 2 callersFunctionl2_norm
(input, axis=1)
addition_module/DMUE/pretrain/loss_def.py:14
↓ 2 callersMethodloader
(self, path)
addition_module/DSDG/data/recognition_dataset.py:144
↓ 2 callersFunctionmake_dataloader
(cfg)
addition_module/DMUE/datasets/make_dataloader.py:11
↓ 2 callersFunctionmoving_average
Update the gallery-set network in the momentum way.(MoCo)
training_mode/semi-siamese_training/train.py:34
↓ 2 callersFunctionmoving_average
Update the gallery-set network in the momentum way.(MoCo)
addition_module/HSST/train.py:34
↓ 2 callersFunctionpad
(boxes, w, h)
addition_module/DMUE/preprocess/mtcnn/detect_face.py:277
↓ 2 callersFunctionpdist
(vectors)
training_mode/siamese-triplet_training/pair_selector.py:7
↓ 2 callersFunctionperformances
(map_score_val_filename, map_score_test_filename)
addition_module/DSDG/DUM/utils.py:141
↓ 2 callersFunctionpower_transform
(img, power)
addition_module/DMUE/preprocess/face_alignmenet/utils/utils.py:252
↓ 2 callersFunctionramp_down
(epoch, alpha, lamda=1)
addition_module/DMUE/utils/ramp.py:10
↓ 2 callersFunctionramp_up
(epoch, alpha, lamda=1)
addition_module/DMUE/utils/ramp.py:3
↓ 2 callersFunctionremove_facescrub_noises
Remove the noise in facescrub. We use the class center of certain id as the feature of noise faces. Args: facescrub_noises_file(str):
test_protocol/remove_noises.py:24
↓ 2 callersFunctionremove_facescrub_noises
Remove the noise in facescrub. We use the class center of certain id as the feature of noise faces. Args: facescrub_noises_file(str):
addition_module/face_lightning/KDF/test_protocol/remove_noises.py:24
↓ 2 callersFunctionrender_texture
render mesh by z buffer Args: vertices: 3 x nver colors: 3 x nver triangles: 3 x ntri h: height w: width
addition_module/face_mask_adding/FMA-3D/utils/render.py:85
↓ 2 callersFunctionrerec
(bboxA)
addition_module/DMUE/preprocess/mtcnn/detect_face.py:292
↓ 2 callersFunctionsave_score_list
(score_file, score_list)
test_protocol/utils/pair_analysis.py:47
↓ 2 callersFunctionsave_score_list
(score_file, score_list)
addition_module/face_lightning/KDF/test_protocol/utils/pair_analysis.py:47
↓ 2 callersFunctionshuffle_BN
ShuffleBN for batch, the same as MoCo https://arxiv.org/abs/1911.05722 #######
training_mode/semi-siamese_training/train.py:46
↓ 2 callersFunctionshuffle_BN
ShuffleBN for batch, the same as MoCo https://arxiv.org/abs/1911.05722 #######
addition_module/HSST/train.py:46
↓ 2 callersFunctiontest
(cfg, val_loader, model, epoch, batch=None)
addition_module/DMUE/train.py:153
↓ 2 callersFunctiontest
(cfg, val_loader, model, epoch, batch=None)
addition_module/DMUE/train_ddp.py:207
↓ 2 callersFunctiontransform
Transform a image by cv2.
data_processor/train_dataset.py:14
↓ 2 callersFunctiontransform
(point, center, scale, resolution, rotation=0, invert=False)
addition_module/DMUE/preprocess/face_alignmenet/utils/utils.py:82
↓ 2 callersMethodupdate
(self, val, n=1)
addition_module/DMUE/pretrain/utils/AverageMeter.py:15
↓ 2 callersMethodupdate_queue
(self, g, cur_ids, batch_size)
head/SST_Prototype.py:50
↓ 2 callersFunctionwindow_partition
Args: x: (B, H, W, C) window_size (int): window size Returns: windows: (num_windows*B, window_size, window_size, C)
backbone/Swin_Transformer.py:38
↓ 2 callersFunctionwrite_config_into_log
(cfg)
addition_module/DMUE/utils/easylog.py:3
↓ 1 callersFunctionLightCNN
(depth, drop_ratio, out_h, out_w, feat_dim)
backbone/LightCNN.py:196
↓ 1 callersFunctionLightCNN_29Layers_v2
(drop_ratio, out_h, out_w, feat_dim)
backbone/LightCNN.py:192
↓ 1 callersFunctionLightCNN_9Layers
(drop_ratio, out_h, out_w, feat_dim)
backbone/LightCNN.py:184
↓ 1 callersMethod__init__
(self, num_blocks, width_multiplier, feat_dim=512, out_h=7, out_w=7, override_groups_map=None, deploy=False, u
backbone/RepVGG.py:160
↓ 1 callersMethod__init__
(self, radix, cardinality)
backbone/resnest/splat.py:85
↓ 1 callersMethod__init__
(self, p=3.0, eps=1e-6, freeze_p=True)
addition_module/DMUE/models/make_model.py:11
↓ 1 callersMethod__init__
(self, in_channels_s, in_channels_t, k, use_bn=True)
addition_module/face_lightning/KDF/utils/net_util.py:62
↓ 1 callersMethod__init__
(self, ResidualBlock = ResidualBlock)
addition_module/DSDG/DUM/models/ResNet_u.py:37
↓ 1 callersMethod__init__
Init priorBox settings related to the generation of anchors.
face_sdk/core/model_handler/face_detection/FaceDetModelHandler.py:168
↓ 1 callersMethod__len__
(self)
addition_module/DSDG/data/recognition_dataset.py:64
↓ 1 callersMethod__len__
(self)
addition_module/DSDG/DUM/Load_OULUNPUcrop_train.py:166
↓ 1 callersMethod__len__
(self)
addition_module/DSDG/DUM/Load_OULUNPUcrop_train.py:256
↓ 1 callersFunction_blend_labels
(image, labels, label_names_dict=None, default_alpha=0.6, color_offset=None)
face_sdk/utils/draw.py:53
↓ 1 callersMethod_check_branches
(self, num_branches, blocks, num_blocks, num_inchannels, num_channels)
backbone/HRNet.py:126
↓ 1 callersMethod_decode_block_string
Get a block through a string notation of arguments. Args: block_string (str): A string notation of arguments.
backbone/EfficientNets.py:364
↓ 1 callersFunction_draw_hwc
(image: torch.Tensor, data: Dict[str, torch.Tensor])
face_sdk/utils/draw.py:104
↓ 1 callersMethod_encode_block_string
Encode a block to a string. Args: block (namedtuple): A BlockArgs type argument. Returns: block_string: A St
backbone/EfficientNets.py:399
↓ 1 callersMethod_forward
(self, level, inp)
addition_module/DMUE/preprocess/face_alignmenet/core/models.py:118
↓ 1 callersFunction_gaussian
( size=3, sigma=0.25, amplitude=1, normalize=False, width=None, height=None, sigma_horz=None,
addition_module/DMUE/preprocess/face_alignmenet/utils/utils.py:17
↓ 1 callersFunction_gen_random_colors
(N, bright=True)
face_sdk/utils/draw.py:11
↓ 1 callersMethod_generate_network
(self, level)
addition_module/DMUE/preprocess/face_alignmenet/core/models.py:106
↓ 1 callersMethod_initialization
(self)
backbone/TF_NAS.py:469
↓ 1 callersMethod_make_bbox_head
(self,fpn_num=3,inchannels=64,anchor_num=2)
face_sdk/models/network_def/retinaface_def.py:210
← previousnext →101–200 of 1,054, ranked by callers