mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-18 01:30:02 +00:00
Merge pull request #429 from tsukimiya/hotfix/debug_dataset_linux_support
Refixed --debug_dataset option to work in non-Windows environments
This commit is contained in:
@@ -1445,8 +1445,8 @@ def debug_dataset(train_dataset, show_input_ids=False):
|
|||||||
im = im[:, :, ::-1] # RGB -> BGR (OpenCV)
|
im = im[:, :, ::-1] # RGB -> BGR (OpenCV)
|
||||||
if os.name == "nt": # only windows
|
if os.name == "nt": # only windows
|
||||||
cv2.imshow("img", im)
|
cv2.imshow("img", im)
|
||||||
k = cv2.waitKey()
|
k = cv2.waitKey()
|
||||||
cv2.destroyAllWindows()
|
cv2.destroyAllWindows()
|
||||||
if k == 27 or k == ord("s") or k == ord("e"):
|
if k == 27 or k == ord("s") or k == ord("e"):
|
||||||
break
|
break
|
||||||
steps += 1
|
steps += 1
|
||||||
|
|||||||
Reference in New Issue
Block a user