Open azuredsky opened 2 months ago
bboxes = det_net.batched_detect_faces(batch_frames, conf_threshold=0.8, nms_threshold=0.15, use_origin_size=False)
File "python3.10/site-packages/facexlib/detection/retinaface.py", line 320, in batched_detect_faces frames = frames - self.mean_tensor RuntimeError: The size of tensor a (4) must match the size of tensor b (3) at non-singleton dimension 1
Maybe related:
TL;DR: RGBA vs. RGB.
File "python3.10/site-packages/facexlib/detection/retinaface.py", line 320, in batched_detect_faces frames = frames - self.mean_tensor RuntimeError: The size of tensor a (4) must match the size of tensor b (3) at non-singleton dimension 1