mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-11 15:47:01 -07:00
added sumbmodules
This commit is contained in:
parent
d4279606f4
commit
6d68692e74
2 changed files with 2 additions and 5 deletions
|
@ -220,16 +220,13 @@ class InteractBase(object):
|
|||
def get_default_answer(self, answer_key):
|
||||
#Scrivere su file answer key
|
||||
f = open("/home/deepfake/interact.txt", "a")
|
||||
f.write(s + def_ans + "\n")
|
||||
f.write(answer_key + "\n")
|
||||
f.close()
|
||||
if answer_key in self.default_answers:
|
||||
return self.default_answers[answer_key]
|
||||
return None
|
||||
|
||||
def input(self, s, answer_key):
|
||||
if "WARNING " in s:
|
||||
return "\n"
|
||||
|
||||
ans = get_default_answer(answer_key)
|
||||
if ans is not None:
|
||||
return ans
|
||||
|
|
|
@ -753,7 +753,7 @@ def main(detector=None,
|
|||
io.log_err("Error in fetching the last index. Extraction cannot be continued.")
|
||||
return
|
||||
elif input_path != output_path:
|
||||
io.input(f"\n WARNING !!! \n {output_path} contains files! \n They will be deleted. \n Press enter to continue.\n")
|
||||
io.input(f"\n WARNING !!! \n {output_path} contains files! \n They will be deleted. \n Press enter to continue.\n", "4")
|
||||
for filename in output_images_paths:
|
||||
Path(filename).unlink()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue