Skip to content

RuntimeError: batched_detect_faces use_origin_size=False #50

@azuredsky

Description

@azuredsky
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions