mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-06 21:12:07 -07:00
修正小問題與加上設定檔機制。
This commit is contained in:
parent
cd83f6fedf
commit
a50ea84b3d
5 changed files with 82 additions and 6 deletions
|
@ -4,6 +4,8 @@ import copy
|
|||
from facelib import FaceType
|
||||
from core.interact import interact as io
|
||||
|
||||
import ymauto.MergeDefault as MD
|
||||
md = MD.MergeArgs('config.json')
|
||||
|
||||
class MergerConfig(object):
|
||||
TYPE_NONE = 0
|
||||
|
@ -189,12 +191,14 @@ class MergerConfigMasked(MergerConfig):
|
|||
self.bicubic_degrade_power = np.clip ( self.bicubic_degrade_power+diff, 0, 100)
|
||||
|
||||
def ask_settings(self):
|
||||
print("mode: " + md.g('mode'))
|
||||
|
||||
s = """Choose mode: \n"""
|
||||
for key in mode_dict.keys():
|
||||
s += f"""({key}) {mode_dict[key]}\n"""
|
||||
io.log_info(s)
|
||||
mode = io.input_int ("", mode_str_dict.get(self.default_mode, 1) )
|
||||
|
||||
|
||||
self.mode = mode_dict.get (mode, self.default_mode )
|
||||
|
||||
if 'raw' not in self.mode:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue