-
-
Notifications
You must be signed in to change notification settings - Fork 192
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
When looking at a face from the side, the landmark detector may give the same position for both eyes.
In that case, retinaface.commons.postprocess.alignment_procedure crashes with UnboundLocalError: cannot access local variable 'angle' where it is not associated with a value.
Some IDEs also highlight this problem:
Here is a minimal example to reproduce the problem:
import numpy as np
from retinaface.commons import postprocess
postprocess.alignment_procedure(np.zeros([123, 123, 3], dtype=np.uint8), (10, 10), (10, 10), (33, 33))Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
