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

how to optimize and speed up the alignment code? #34

Closed
Jar7 opened this issue May 6, 2021 · 1 comment
Closed

how to optimize and speed up the alignment code? #34

Jar7 opened this issue May 6, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@Jar7
Copy link

Jar7 commented May 6, 2021

Hello, thank your for your work.
I read the alignment code and found there is a pytorch version alignment function. Can it be used for inference? Do you think it is possible to align faces by batch or any other ways to speed up the alignment process? like run in gpu?
Thank you!

@vitoralbiero
Copy link
Owner

Hello @Jar7,
Thanks for your interest in our work!

Right now on the run_alignment.py script, inference is running one image at a time, but you could easily modify it to run on a batch of images and then perform alignment on each one.
I haven't measured the time necessary for the alignment part of the script, but I believe it to be negligible compared to the inference time.
If you decide to make improvements, PRs are welcome!

Hope this helps.

@vitoralbiero vitoralbiero added the enhancement New feature or request label May 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants