MCPcopy Create free account
hub / github.com/PowerHouseMan/ComfyUI-AdvancedLivePortrait / get_face_bboxes

Method get_face_bboxes

nodes.py:220–223  ·  view source on GitHub ↗
(self, image_rgb)

Source from the content-addressed store, hash-verified

218 return self.detect_model
219
220 def get_face_bboxes(self, image_rgb):
221 detect_model = self.get_detect_model()
222 pred = detect_model(image_rgb, conf=0.7, device="")
223 return pred[0].boxes.xyxy.cpu().numpy()
224
225 def detect_face(self, image_rgb, crop_factor, sort = True):
226 bboxes = self.get_face_bboxes(image_rgb)

Callers 1

detect_faceMethod · 0.95

Calls 1

get_detect_modelMethod · 0.95

Tested by

no test coverage detected