↓ 1 callersMethoddetect(self, image, threshold, dilation, crop_factor, drop_size=1, detailer_hook=None)
scripts/r_masking/subcore.py:67
↓ 1 callersMethodexecute(self, enabled, input_image, swap_model, detect_gender_source, detect_gender_input, source_faces_index, input_
nodes.py:320
↓ 1 callersFunctiongenerate_detection_hints(image, seg, center, detection_hint, dilated_bbox, mask_hint_threshold, use_small_negative,
scripts/r_masking/core.py:404
↓ 1 callersFunctionintersect We resize both tensors to [A,B,2] without new malloc:
[A,2] -> [A,1,2] -> [A,B,2]
[B,2] -> [1,B,2] -> [A,B,2]
Then we compute the area
r_facelib/detection/retinaface/retinaface_utils.py:79
↓ 1 callersFunctionnon_max_suppression_facePerforms Non-Maximum Suppression (NMS) on inference results
Returns:
detections with shape: nx6 (x1, y1, x2, y2, conf, cls)
r_facelib/detection/yolov5face/utils/general.py:89