mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-07 21:42:08 -07:00
fix
This commit is contained in:
parent
407ce3b1ca
commit
2a9a579436
5 changed files with 10 additions and 3 deletions
|
@ -84,8 +84,6 @@ class ConvertSubprocessor(Subprocessor):
|
||||||
#therefore forcing active_DeviceConfig to CPU only
|
#therefore forcing active_DeviceConfig to CPU only
|
||||||
nnlib.active_DeviceConfig = nnlib.DeviceConfig (cpu_only=True)
|
nnlib.active_DeviceConfig = nnlib.DeviceConfig (cpu_only=True)
|
||||||
|
|
||||||
print(nnlib.backend)
|
|
||||||
|
|
||||||
self.fanseg_by_face_type = {}
|
self.fanseg_by_face_type = {}
|
||||||
self.fanseg_input_size = 256
|
self.fanseg_input_size = 256
|
||||||
|
|
||||||
|
@ -247,6 +245,7 @@ class ConvertSubprocessor(Subprocessor):
|
||||||
self.dcscn_host.process_messages()
|
self.dcscn_host.process_messages()
|
||||||
|
|
||||||
go_prev_frame = False
|
go_prev_frame = False
|
||||||
|
go_prev_frame_overriding_cfg = False
|
||||||
go_next_frame = self.process_remain_frames
|
go_next_frame = self.process_remain_frames
|
||||||
go_next_frame_overriding_cfg = False
|
go_next_frame_overriding_cfg = False
|
||||||
|
|
||||||
|
@ -346,9 +345,10 @@ class ConvertSubprocessor(Subprocessor):
|
||||||
cur_frame.is_done = False
|
cur_frame.is_done = False
|
||||||
cur_frame.is_shown = False
|
cur_frame.is_shown = False
|
||||||
else:
|
else:
|
||||||
if chr_key == ',':
|
if chr_key == ',' or chr_key == 'm':
|
||||||
self.process_remain_frames = False
|
self.process_remain_frames = False
|
||||||
go_prev_frame = True
|
go_prev_frame = True
|
||||||
|
go_prev_frame_overriding_cfg = chr_key == 'm'
|
||||||
elif chr_key == '.' or chr_key == '/':
|
elif chr_key == '.' or chr_key == '/':
|
||||||
self.process_remain_frames = False
|
self.process_remain_frames = False
|
||||||
go_next_frame = True
|
go_next_frame = True
|
||||||
|
@ -365,12 +365,19 @@ class ConvertSubprocessor(Subprocessor):
|
||||||
if cur_frame is not None and cur_frame.is_done:
|
if cur_frame is not None and cur_frame.is_done:
|
||||||
cur_frame.image = None
|
cur_frame.image = None
|
||||||
|
|
||||||
|
|
||||||
if len(self.frames_done_idxs) > 0:
|
if len(self.frames_done_idxs) > 0:
|
||||||
prev_frame = self.frames[self.frames_done_idxs.pop()]
|
prev_frame = self.frames[self.frames_done_idxs.pop()]
|
||||||
self.frames_idxs.insert(0, prev_frame.idx)
|
self.frames_idxs.insert(0, prev_frame.idx)
|
||||||
prev_frame.is_shown = False
|
prev_frame.is_shown = False
|
||||||
io.progress_bar_inc(-1)
|
io.progress_bar_inc(-1)
|
||||||
|
|
||||||
|
if go_prev_frame_overriding_cfg:
|
||||||
|
if cur_frame is not None:
|
||||||
|
if prev_frame.cfg != cur_frame.cfg:
|
||||||
|
prev_frame.cfg = cur_frame.cfg
|
||||||
|
prev_frame.is_done = False
|
||||||
|
|
||||||
elif go_next_frame:
|
elif go_next_frame:
|
||||||
if cur_frame is not None and cur_frame.is_done:
|
if cur_frame is not None and cur_frame.is_done:
|
||||||
cur_frame.image = None
|
cur_frame.image = None
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 115 KiB After Width: | Height: | Size: 129 KiB |
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 259 KiB After Width: | Height: | Size: 270 KiB |
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue