mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-07 05:22:06 -07:00
fix performance issue
This commit is contained in:
parent
4ffae1a954
commit
a8c987fa0f
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ class Interact(object):
|
||||||
has_capture_keys = True
|
has_capture_keys = True
|
||||||
|
|
||||||
if has_windows or has_capture_keys:
|
if has_windows or has_capture_keys:
|
||||||
wait_key_time = int(sleep_time / 1000) if sleep_time != 0 else 1
|
wait_key_time = max(1, int(sleep_time*1000) )
|
||||||
key = cv2.waitKey(wait_key_time) & 0xFF
|
key = cv2.waitKey(wait_key_time) & 0xFF
|
||||||
else:
|
else:
|
||||||
if sleep_time != 0:
|
if sleep_time != 0:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue