mirror of
https://github.com/iperov/DeepFaceLive
synced 2025-08-20 05:23:23 -07:00
fix FaceSwapper.py
This commit is contained in:
parent
7371a37b25
commit
9342ada240
1 changed files with 3 additions and 3 deletions
|
@ -156,9 +156,6 @@ class FaceSwapperWorker(BackendWorker):
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
def on_tick(self):
|
||||
state, cs = self.get_state(), self.get_control_sheet()
|
||||
|
||||
|
@ -166,12 +163,15 @@ class FaceSwapperWorker(BackendWorker):
|
|||
events = self.dfm_model_initializer.process_events()
|
||||
|
||||
if events.prev_status_downloading:
|
||||
self.set_busy(True)
|
||||
cs.model_dl_progress.disable()
|
||||
|
||||
if events.new_status_downloading:
|
||||
self.set_busy(False)
|
||||
cs.model_dl_progress.enable()
|
||||
cs.model_dl_progress.set_config( lib_csw.Progress.Config(title='@FaceSwapper.downloading_model') )
|
||||
cs.model_dl_progress.set_progress(0)
|
||||
|
||||
elif events.new_status_initialized:
|
||||
self.dfm_model = events.dfm_model
|
||||
self.dfm_model_initializer = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue