From e746829b5fd8ca83d1d62fdc411a19f0bfde2a79 Mon Sep 17 00:00:00 2001 From: tsukimiya <71832+tsukimiya@users.noreply.github.com> Date: Thu, 20 Apr 2023 06:20:02 +0900 Subject: [PATCH] =?UTF-8?q?=E3=81=8A=E3=81=9D=E3=82=89=E3=81=8Flibgtk2?= =?UTF-8?q?=E3=81=8C=E3=82=A4=E3=83=B3=E3=82=B9=E3=83=88=E3=83=BC=E3=83=AB?= =?UTF-8?q?=E3=81=95=E3=82=8C=E3=81=A6=E3=81=84=E3=81=AA=E3=81=84=E7=92=B0?= =?UTF-8?q?=E5=A2=83=E3=81=A7cv2.waitKey()=20=E3=81=8A=E3=82=88=E3=81=B3?= =?UTF-8?q?=20cv2.destroyAllWindows()=20=E3=81=8C=E5=8B=95=E4=BD=9C?= =?UTF-8?q?=E3=81=97=E3=81=AA=E3=81=84=E3=81=AE=E3=81=A7=E9=99=A4=E5=A4=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/train_util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/train_util.py b/library/train_util.py index b249e61d4..01d9343e2 100644 --- a/library/train_util.py +++ b/library/train_util.py @@ -1445,8 +1445,8 @@ def debug_dataset(train_dataset, show_input_ids=False): im = im[:, :, ::-1] # RGB -> BGR (OpenCV) if os.name == "nt": # only windows cv2.imshow("img", im) - k = cv2.waitKey() - cv2.destroyAllWindows() + k = cv2.waitKey() + cv2.destroyAllWindows() if k == 27 or k == ord("s") or k == ord("e"): break steps += 1