Refactors the usage of the update_status function to break a circular import dependency. - In modules/processors/frame/face_swapper.py: - Removed direct import of update_status from modules.core. - Modified pre_start(), process_image(), and process_video() to accept update_status as a Callable parameter (status_fn_callback). - Internal calls now use this passed callback. - In modules/core.py: - Updated the calls to pre_start(), process_image(), and process_video() for frame processors (specifically face_swapper) to pass the core.update_status function as the status_fn_callback argument. This change ensures that face_swapper.py no longer needs to import modules.core directly for status updates, resolving the ImportError. |
||
---|---|---|
.. | ||
frame | ||
__init__.py |