Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update _face_embedding.py #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mst-rajatmishra
Copy link

hello,
i tried making some improvements in code,
File Operations: In add_face, consider adding error handling for file operations (e.g., during saving/loading) to avoid crashes due to I/O issues.
Face Detection: Ensure that the detect_faces method gracefully handles cases where no faces are detected, returning an empty list instead of raising an unhandled exception.

@w4hns1nn
Copy link
Collaborator

Hey rajat,

thanks for your contribution. I just had a brief look and looks solid to me. 💯 I'll check-it out and test it this weekend and then approve the pr.
👍

@w4hns1nn
Copy link
Collaborator

w4hns1nn commented Sep 24, 2024

Hey Raj,

while i looked into it, i found some more bugs. For this reason I made some bigger changes:

  1. A face embedding now can hold only one face (was probably confusing anyway before). It simplified the downstream implementation quite a bit. Of course i have included your change.
  2. Removed upscaling as Standard setting for video swap
  3. Added better progress bar for video swap

I'd be great if you could check the new implementation and if it works for you.
I pushed everything to the dev branch.

Thanks!

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.

2 participants