diff --git a/library/train_util.py b/library/train_util.py index b249e61d..01d9343e 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