mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-11 23:57:03 -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):
|
def get_default_answer(self, answer_key):
|
||||||
#Scrivere su file answer key
|
#Scrivere su file answer key
|
||||||
f = open("/home/deepfake/interact.txt", "a")
|
f = open("/home/deepfake/interact.txt", "a")
|
||||||
f.write(s + def_ans + "\n")
|
f.write(answer_key + "\n")
|
||||||
f.close()
|
f.close()
|
||||||
if answer_key in self.default_answers:
|
if answer_key in self.default_answers:
|
||||||
return self.default_answers[answer_key]
|
return self.default_answers[answer_key]
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def input(self, s, answer_key):
|
def input(self, s, answer_key):
|
||||||
if "WARNING " in s:
|
|
||||||
return "\n"
|
|
||||||
|
|
||||||
ans = get_default_answer(answer_key)
|
ans = get_default_answer(answer_key)
|
||||||
if ans is not None:
|
if ans is not None:
|
||||||
return ans
|
return ans
|
||||||
|
|
|
@ -753,7 +753,7 @@ def main(detector=None,
|
||||||
io.log_err("Error in fetching the last index. Extraction cannot be continued.")
|
io.log_err("Error in fetching the last index. Extraction cannot be continued.")
|
||||||
return
|
return
|
||||||
elif input_path != output_path:
|
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:
|
for filename in output_images_paths:
|
||||||
Path(filename).unlink()
|
Path(filename).unlink()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue