Skip to content

Commit

Permalink
Merge pull request #95 from Dobiasd/master
Browse files Browse the repository at this point in the history
Fix UnboundLocalError in alignment_procedure, closes #94
  • Loading branch information
serengil authored Mar 20, 2024
2 parents 29d593f + 6de5306 commit 059fcdf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions retinaface/commons/postprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ def alignment_procedure(

img = Image.fromarray(img)
img = np.array(img.rotate(direction * angle))
else:
angle = 0.0 # Dummy value for undefined angle

# -----------------------

Expand Down

0 comments on commit 059fcdf

Please sign in to comment.