Replaces Python 3.10+ type hint syntax (e.g., Frame | None) with Python 3.9 compatible syntax (e.g., Optional[Frame]) in modules/processors/frame/face_swapper.py. This resolves a TypeError encountered when running on Python 3.9. Specifically, the return type of _prepare_warped_source_material_and_mask was updated. |
||
---|---|---|
.. | ||
frame | ||
__init__.py |