Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JDAI-CV/FaceX-Zoo
/ functions
Functions
1,054 in github.com/JDAI-CV/FaceX-Zoo
⨍
Functions
1,054
◇
Types & classes
307
↓ 1 callers
Method
_make_branches
(self, num_branches, block, num_blocks, num_channels)
backbone/HRNet.py:170
↓ 1 callers
Method
_make_class_head
(self,fpn_num=3,inchannels=64,anchor_num=2)
face_sdk/models/network_def/retinaface_def.py:204
↓ 1 callers
Method
_make_fuse_layers
(self)
backbone/HRNet.py:179
↓ 1 callers
Method
_make_head
(self, pre_stage_channels)
backbone/HRNet.py:317
↓ 1 callers
Method
_make_landmark_head
(self,fpn_num=3,inchannels=64,anchor_num=2)
face_sdk/models/network_def/retinaface_def.py:216
↓ 1 callers
Method
_make_one_branch
(self, branch_index, block, num_blocks, num_channels, stride=1)
backbone/HRNet.py:146
↓ 1 callers
Function
_meshgrid
(h, w)
face_sdk/utils/transform.py:82
↓ 1 callers
Method
_pad_1x1_to_3x3_tensor
(self, kernel1x1)
backbone/RepVGG.py:103
↓ 1 callers
Method
_postprocess
Postprecess the prediction result. Decode detection result, set the confidence threshold and do the NMS to keep the appropriate detect
face_sdk/core/model_handler/face_detection/FaceDetModelHandler.py:74
↓ 1 callers
Method
_postprocess
Process the predicted landmarks into the form of the original image. Returns: A numpy array, the landmarks based on the shape of
face_sdk/core/model_handler/face_alignment/FaceAlignModelHandler.py:99
↓ 1 callers
Method
_preprocess
Preprocess the image, such as standardization and other operations. Returns: A numpy array list, the shape is channel * h * w.
face_sdk/core/model_handler/face_detection/FaceDetModelHandler.py:58
↓ 1 callers
Method
_preprocess
Preprocess the image, such as standardization and other operations. Returns: A tensor, the shape is 1 x 3 x h x w. A
face_sdk/core/model_handler/face_parsing/FaceParsingModelHandler.py:44
↓ 1 callers
Method
_preprocess
Preprocess the input image, cutting the input image through the face detection information. Using the face detection result(dets) to get the f
face_sdk/core/model_handler/face_alignment/FaceAlignModelHandler.py:54
↓ 1 callers
Method
_preprocess
Preprocess the input image. Returns: A torch tensor, the input after preprecess, shape: (3, 112, 112).
face_sdk/core/model_handler/face_recognition/FaceRecModelHandler.py:51
↓ 1 callers
Method
_reparameterize
(self, mu, logvar)
addition_module/DSDG/DUM/models/ResNet_u.py:82
↓ 1 callers
Method
_reparameterize
(self, mu, logvar)
addition_module/DSDG/DUM/models/CDCNs_u.py:126
↓ 1 callers
Method
_reparameterize
(self, mu, logvar)
addition_module/DSDG/DUM/models/CDCNs_u.py:234
↓ 1 callers
Function
_standard_face_pts
()
face_sdk/utils/transform.py:43
↓ 1 callers
Function
add_gaussian_noise
(image_array, mean=0.0, var=30)
addition_module/DMUE/datasets/image_utils.py:5
↓ 1 callers
Method
add_margin
(self, cos_theta, label, batch_size)
head/SST_Prototype.py:29
↓ 1 callers
Method
add_margin
(self, cos_theta, label, batch_size)
addition_module/HSST/HSST_Prototype.py:31
↓ 1 callers
Method
add_mask
(self, face_root, image_name2lms, image_name2template_name, masked_face_root)
addition_module/face_mask_adding/FMA-3D/face_masker.py:122
↓ 1 callers
Function
adjust_learning_rate
(optimizer, lr1, lr2)
addition_module/DMUE/train.py:167
↓ 1 callers
Function
adjust_learning_rate
(optimizer, lr1, lr2)
addition_module/DMUE/train_ddp.py:224
↓ 1 callers
Function
align_crop
(lines, ori_root, dst_root)
addition_module/DMUE/preprocess/crop_msra.py:43
↓ 1 callers
Function
batched_nms_numpy
(boxes, scores, idxs, threshold, method)
addition_module/DMUE/preprocess/mtcnn/detect_face.py:260
↓ 1 callers
Function
bchw2hwc
make a grid image from an image batch. Args: images (torch.Tensor): input image batch. nrows: rows of grid. border: borde
face_sdk/utils/show.py:9
↓ 1 callers
Function
build_optimizer
Build optimizer, set weight decay of normalization to 0 by default.
training_mode/swin_training/optimizer.py:11
↓ 1 callers
Function
build_scheduler
(optimizer, n_iter_per_epoch, epoches, warm_up_epoches)
training_mode/swin_training/lr_scheduler.py:14
↓ 1 callers
Method
calc_margin
(self, x)
head/MagFace.py:27
↓ 1 callers
Function
check_batch
(label, num_classes)
addition_module/DMUE/train.py:188
↓ 1 callers
Function
check_batch
(label, num_classes)
addition_module/DMUE/train_ddp.py:245
↓ 1 callers
Function
check_keywords_in_name
(name, keywords=())
training_mode/swin_training/optimizer.py:52
↓ 1 callers
Function
concat_feat
(feat1, feat2)
test_protocol/utils/feat_concat.py:12
↓ 1 callers
Function
concat_feat
(feat1, feat2)
addition_module/face_lightning/KDF/test_protocol/utils/feat_concat.py:12
↓ 1 callers
Function
concat_save
(feat_m_dir, feat_e_dir, feat_dir_new)
test_protocol/utils/feat_concat.py:18
↓ 1 callers
Function
concat_save
(feat_m_dir, feat_e_dir, feat_dir_new)
addition_module/face_lightning/KDF/test_protocol/utils/feat_concat.py:18
↓ 1 callers
Function
convert
(ori_path, dst_path, num_classes)
addition_module/DMUE/convert_weights.py:14
↓ 1 callers
Function
crop_agedb
(agedb_root, target_folder)
test_protocol/lfw/face_cropper/crop_agedb_by_arcface.py:16
↓ 1 callers
Function
crop_agedb
(agedb_root, target_folder)
addition_module/face_lightning/KDF/test_protocol/lfw/face_cropper/crop_agedb_by_arcface.py:16
↓ 1 callers
Function
crop_calfw
(calfw_root, calfw_lmk_root, target_folder)
test_protocol/lfw/face_cropper/crop_calfw_by_arcface.py:15
↓ 1 callers
Function
crop_calfw
(calfw_root, calfw_lmk_root, target_folder)
addition_module/face_lightning/KDF/test_protocol/lfw/face_cropper/crop_calfw_by_arcface.py:15
↓ 1 callers
Function
crop_cplfw
(cplfw_root, target_folder)
test_protocol/lfw/face_cropper/crop_cplfw_by_arcface.py:16
↓ 1 callers
Function
crop_cplfw
(cplfw_root, target_folder)
addition_module/face_lightning/KDF/test_protocol/lfw/face_cropper/crop_cplfw_by_arcface.py:16
↓ 1 callers
Function
crop_facescrub
(facescrub_root, facescrub_lms_file, target_folder)
test_protocol/lfw/face_cropper/crop_lfw_by_arcface.py:16
↓ 1 callers
Function
crop_facescrub
(facescrub_root, facescrub_lms_file, target_folder)
test_protocol/megaface/face_cropper/crop_megaface_by_arcface.py:16
↓ 1 callers
Function
crop_facescrub
(facescrub_root, facescrub_lms_file, target_folder)
test_protocol/megaface/face_cropper/crop_facescrub_by_arcface.py:16
↓ 1 callers
Function
crop_facescrub
(facescrub_root, facescrub_img_list, target_folder)
test_protocol/megaface/face_cropper/crop_eye.py:10
↓ 1 callers
Function
crop_facescrub
(facescrub_root, facescrub_lms_file, target_folder)
addition_module/face_lightning/KDF/test_protocol/lfw/face_cropper/crop_lfw_by_arcface.py:16
↓ 1 callers
Function
crop_facescrub
(facescrub_root, facescrub_lms_file, target_folder)
addition_module/face_lightning/KDF/test_protocol/megaface/face_cropper/crop_megaface_by_arcface.py:16
↓ 1 callers
Function
crop_facescrub
(facescrub_root, facescrub_lms_file, target_folder)
addition_module/face_lightning/KDF/test_protocol/megaface/face_cropper/crop_facescrub_by_arcface.py:16
↓ 1 callers
Function
crop_facescrub
(facescrub_root, facescrub_img_list, target_folder)
addition_module/face_lightning/KDF/test_protocol/megaface/face_cropper/crop_eye.py:10
↓ 1 callers
Function
crop_ijbc
(ijbc_root, pts_score_file, target_folder)
test_protocol/ijbc/face_cropper/crop_ijbc_by_arcface.py:16
↓ 1 callers
Function
crop_ijbc
(ijbc_root, pts_score_file, target_folder)
addition_module/face_lightning/KDF/test_protocol/ijbc/face_cropper/crop_ijbc_by_arcface.py:16
↓ 1 callers
Function
crop_resize
(img, box, image_size)
addition_module/DMUE/preprocess/mtcnn/detect_face.py:309
↓ 1 callers
Method
decode
Decode a list of string notations to specify blocks inside the network. Args: string_list (list[str]): A list of strings, each st
backbone/EfficientNets.py:423
↓ 1 callers
Method
decode
Decode locations from predictions using priors to undo the encoding we did for offset regression at train time. Args: loc
face_sdk/core/model_handler/face_detection/FaceDetModelHandler.py:110
↓ 1 callers
Function
define_IP
(is_train=False)
addition_module/DSDG/networks/__init__.py:22
↓ 1 callers
Function
define_paraphraser
(in_channels_t, k, use_bn=True, cuda=True)
addition_module/face_lightning/KDF/utils/net_util.py:4
↓ 1 callers
Function
define_translator
(in_channels_s, in_channels_t, k, use_bn=True, cuda=True)
addition_module/face_lightning/KDF/utils/net_util.py:53
↓ 1 callers
Function
detect_face
(imgs, minsize, pnet, rnet, onet, threshold, factor, device)
addition_module/DMUE/preprocess/mtcnn/detect_face.py:25
↓ 1 callers
Function
draw_bchw
(images, data)
face_sdk/utils/draw.py:136
↓ 1 callers
Function
drop_connect
Drop connect. Args: input (tensor: BCWH): Input of this structure. p (float: 0.0~1.0): Probability of drop connection. tr
backbone/EfficientNets.py:127
↓ 1 callers
Function
estimate_norm
(lmk, image_size = 112, mode='arcface')
face_sdk/core/image_cropper/arcface_cropper/FaceRecImageCropper.py:70
↓ 1 callers
Method
extract
(self, img, batch_boxes, save_path)
addition_module/DMUE/preprocess/mtcnn/mtcnn.py:454
↓ 1 callers
Function
extract_face
Extract face + margin from PIL Image given bounding box. Arguments: img {PIL.Image} -- A PIL Image. box {numpy.ndarray} -- Fo
addition_module/DMUE/preprocess/mtcnn/detect_face.py:342
↓ 1 callers
Method
extract_features
use convolution layer to extract feature . Args: inputs (tensor): Input tensor. Returns: Output of the final
backbone/EfficientNets.py:895
↓ 1 callers
Function
fan_NME
Calculate total NME for a batch of data Args: pred_heatmaps: torch tensor of size [batch, points, height, width]
addition_module/DMUE/preprocess/face_alignmenet/utils/utils.py:188
↓ 1 callers
Method
file_reader
(self)
addition_module/DSDG/data/generation_dataset.py:71
↓ 1 callers
Function
fixed_image_standardization
(image_tensor)
addition_module/DMUE/preprocess/mtcnn/mtcnn.py:508
↓ 1 callers
Method
flops
(self)
backbone/Swin_Transformer.py:406
↓ 1 callers
Method
forward
(self, data, label)
training_mode/siamese-triplet_training/train.py:49
↓ 1 callers
Method
forward
(self, data, label)
addition_module/DMUE/pretrain/loss_def.py:146
↓ 1 callers
Method
forward
(self)
face_sdk/core/model_handler/face_detection/FaceDetModelHandler.py:179
↓ 1 callers
Method
forward_features
(self, x)
backbone/Swin_Transformer.py:566
↓ 1 callers
Method
from_name
create an efficientnet model according to name. Args: model_name (str): Name for efficientnet. in_channels (int): Inp
backbone/EfficientNets.py:943
↓ 1 callers
Function
gen_train_file
Generate the train file, which has the following format. relative_path0 label0 relative_path1 label1 relative_path2 label2
utils/gen_train_file.py:9
↓ 1 callers
Function
gen_train_file
(data_root, train_file)
addition_module/DMUE/pretrain/gen_train_file.py:3
↓ 1 callers
Function
generateBoundingBox
(reg, probs, scale, thresh)
addition_module/DMUE/preprocess/mtcnn/detect_face.py:203
↓ 1 callers
Method
getThreshold
Get the best threshold by train_score_list and train_label_list. Args: score_list(ndarray): the score list of all pairs.
test_protocol/lfw/lfw_evaluator.py:86
↓ 1 callers
Method
getThreshold
Get the best threshold by train_score_list and train_label_list. Args: score_list(ndarray): the score list of all pairs.
addition_module/face_lightning/KDF/test_protocol/lfw/lfw_evaluator.py:86
↓ 1 callers
Function
get_blocks
(num_layers)
backbone/ResNets.py:86
↓ 1 callers
Function
get_blocks
(num_layers)
addition_module/face_lightning/KDF/backbone/ResNets.py:86
↓ 1 callers
Method
get_colors_from_texture
(self, texture)
addition_module/face_mask_adding/FMA-3D/face_masker.py:76
↓ 1 callers
Function
get_depth_buffer
Args: vertices: 3 x nver triangles: 3 x ntri h: height w: width Returns: depth_buffer: height x width
addition_module/face_mask_adding/FMA-3D/utils/render.py:190
↓ 1 callers
Method
get_equivalent_kernel_bias
(self)
backbone/RepVGG.py:97
↓ 1 callers
Method
get_facescrub_feature_list
Get the feature list of facescrub. Returns: A numpy array, the shape is N * feat_dim, N is the number of images in facescrub.
test_protocol/megaface/megaface_evaluator.py:102
↓ 1 callers
Method
get_facescrub_feature_list
Get the feature list of facescrub. Returns: A numpy array, the shape is N * feat_dim, N is the number of images in facescrub.
addition_module/face_lightning/KDF/test_protocol/megaface/megaface_evaluator.py:102
↓ 1 callers
Method
get_facescrub_id2feature_list
Get the feature list of each id in facescrub. Returns: A dict,key is the id in facescrub,value is the feature list of this id.
test_protocol/megaface/megaface_evaluator.py:117
↓ 1 callers
Method
get_facescrub_id2feature_list
Get the feature list of each id in facescrub. Returns: A dict,key is the id in facescrub,value is the feature list of this id.
addition_module/face_lightning/KDF/test_protocol/megaface/megaface_evaluator.py:117
↓ 1 callers
Method
get_id_set
(self)
head/SST_Prototype.py:57
↓ 1 callers
Method
get_id_set
(self)
addition_module/HSST/HSST_Prototype.py:65
↓ 1 callers
Method
get_idx
(self)
addition_module/DSDG/DUM/Load_OULUNPUcrop_train.py:189
↓ 1 callers
Function
get_index_fromhm
(hm)
addition_module/DMUE/preprocess/face_alignmenet/utils/utils.py:288
↓ 1 callers
Function
get_lmd
(model_ft, img)
addition_module/DMUE/preprocess/face_alignmenet/get_landmark.py:54
↓ 1 callers
Function
get_lms_templateName
Generate to do task list. Args: face_info_file: The file which contains image_name and landmarks. image_name2template_name_file:
addition_module/face_mask_adding/FMA-3D/add_mask_all.py:10
↓ 1 callers
Function
get_lr
Get the current learning rate from optimizer.
training_mode/semi-siamese_training/train.py:28
↓ 1 callers
Function
get_lr
Get the current learning rate from optimizer.
training_mode/swin_training/train.py:57
↓ 1 callers
Function
get_lr
Get the current learning rate from optimizer.
training_mode/distributed_training/train.py:53
↓ 1 callers
Function
get_lr
Get the current learning rate from optimizer.
training_mode/siamese-triplet_training/train.py:54
← previous
next →
201–300 of 1,054, ranked by callers