Skip to content

Fix issues and improve codebase#1646

Open
joshluberisse wants to merge 1 commit into
ageitgey:masterfrom
joshluberisse:codebase-improvements
Open

Fix issues and improve codebase#1646
joshluberisse wants to merge 1 commit into
ageitgey:masterfrom
joshluberisse:codebase-improvements

Conversation

@joshluberisse
Copy link
Copy Markdown

This commit addresses several issues found during a codebase review:

  • Fix typo in README.md ("a two simple" -> "two simple").
  • Fix bug in face_landmarks function in face_recognition/api.py:
    • Added checks for point indices to prevent IndexError.
    • Return empty lists for top_lip and bottom_lip if critical points are missing.
  • Fix code comment discrepancy in batch_face_locations in face_recognition/api.py.
  • Improve tests in tests/test_face_recognition.py:
    • Added more specific assertions for 'large' model landmarks.
    • Added test for 'small' model landmark keys.
    • Added test for invalid model name in face_landmarks.

This commit addresses several issues found during a codebase review:

- Fix typo in README.md ("a two simple" -> "two simple").
- Fix bug in face_landmarks function in face_recognition/api.py:
    - Added checks for point indices to prevent IndexError.
    - Return empty lists for top_lip and bottom_lip if critical points are missing.
- Fix code comment discrepancy in batch_face_locations in face_recognition/api.py.
- Improve tests in tests/test_face_recognition.py:
    - Added more specific assertions for 'large' model landmarks.
    - Added test for 'small' model landmark keys.
    - Added test for invalid model name in face_landmarks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant