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

Add ability to export and import alignment data #1383

Merged
merged 19 commits into from
Apr 15, 2024
Merged

Conversation

torzdf
Copy link
Collaborator

@torzdf torzdf commented Apr 15, 2024

This PR adds the ability to export and import alignment data (Bounding boxes + Landmark data) to and from a json file

Export

Alignment data can be exported using the Alignment Tool's Export job. Data is output in top-left origin format

Import

Alignment data can be imported into a Faceswap's .fsa alignments file from an external json import file. Centering and origin point can be set in plugin config.

More information:
https://forum.faceswap.dev/viewtopic.php?p=10028#p10028

@pep8speaks
Copy link

pep8speaks commented Apr 15, 2024

Hello @torzdf! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 482:17: E731 do not assign a lambda expression, use a def
Line 487:17: E731 do not assign a lambda expression, use a def

Comment last updated at 2024-04-15 11:03:34 UTC

@torzdf torzdf merged commit 1c081ae into deepfakes:staging Apr 15, 2024
11 checks passed
@torzdf torzdf deleted the import branch April 16, 2024 10:18
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