mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-15 09:33:44 -07:00
fix last PR
This commit is contained in:
parent
c707fc0658
commit
5c0c79e528
1 changed files with 2 additions and 2 deletions
|
@ -277,7 +277,7 @@ def previewThread (input_queue, output_queue):
|
||||||
|
|
||||||
cv2.destroyAllWindows()
|
cv2.destroyAllWindows()
|
||||||
|
|
||||||
def main (training_data_src_dir, training_data_dst_dir, model_path, model_name, preview, **in_options):
|
def main (training_data_src_dir, training_data_dst_dir, model_path, model_name, disable_preview, **in_options):
|
||||||
print ("Running trainer.\r\n")
|
print ("Running trainer.\r\n")
|
||||||
|
|
||||||
output_queue = queue.Queue()
|
output_queue = queue.Queue()
|
||||||
|
@ -286,5 +286,5 @@ def main (training_data_src_dir, training_data_dst_dir, model_path, model_name,
|
||||||
thread = threading.Thread(target=trainerThread, args=(output_queue, input_queue, training_data_src_dir, training_data_dst_dir, model_path, model_name), kwargs=in_options )
|
thread = threading.Thread(target=trainerThread, args=(output_queue, input_queue, training_data_src_dir, training_data_dst_dir, model_path, model_name), kwargs=in_options )
|
||||||
thread.start()
|
thread.start()
|
||||||
|
|
||||||
if preview:
|
if not disable_preview:
|
||||||
previewThread (input_queue, output_queue)
|
previewThread (input_queue, output_queue)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue