Spaces:
Running

aditya-rAj19 commited on
Commit
f25d3bf
·
1 Parent(s): 74dd70d

Make glasses transfer opt-in — it was disfiguring glasses-wearing sources

Browse files

transfer_glasses warps the source's spectacles onto the swapped face using a
two-point eye transform. Run against a real source who wears glasses, that lands
as a semi-transparent, misaligned lens shape floating over the face rather than
as spectacles: clearly worse than the clean swap beside it, which simply doesn't
carry the glasses over.

It was on by default, so every glasses-wearing user got that. Now opt-in via
keep_glasses=1, matching how head swap and hair transfer are already gated. Both
the request default and the worker default were changed, or one would have
overridden the other.

14 tests pass.

1 file changed +7 -3
web_app.py+7-3