mirror of https://github.com/bmaltais/kohya_ss
fix "\\" to "/" for compatiblity
parent
b44644bcec
commit
a46a4781e8
|
|
@ -121,7 +121,7 @@ CANNY_DIR = "path/to/canny/images"
|
||||||
os.makedirs(CANNY_DIR, exist_ok=True)
|
os.makedirs(CANNY_DIR, exist_ok=True)
|
||||||
img_files = glob.glob(IMAGES_DIR + "/*.png")
|
img_files = glob.glob(IMAGES_DIR + "/*.png")
|
||||||
for img_file in img_files:
|
for img_file in img_files:
|
||||||
can_file = CANNY_DIR + "\\" + os.path.basename(img_file)
|
can_file = CANNY_DIR + "/" + os.path.basename(img_file)
|
||||||
if os.path.exists(can_file):
|
if os.path.exists(can_file):
|
||||||
print("Skip: " + img_file)
|
print("Skip: " + img_file)
|
||||||
continue
|
continue
|
||||||
|
|
|
||||||
|
|
@ -126,7 +126,7 @@ CANNY_DIR = "path/to/canny/images"
|
||||||
os.makedirs(CANNY_DIR, exist_ok=True)
|
os.makedirs(CANNY_DIR, exist_ok=True)
|
||||||
img_files = glob.glob(IMAGES_DIR + "/*.png")
|
img_files = glob.glob(IMAGES_DIR + "/*.png")
|
||||||
for img_file in img_files:
|
for img_file in img_files:
|
||||||
can_file = CANNY_DIR + "\\" + os.path.basename(img_file)
|
can_file = CANNY_DIR + "/" + os.path.basename(img_file)
|
||||||
if os.path.exists(can_file):
|
if os.path.exists(can_file):
|
||||||
print("Skip: " + img_file)
|
print("Skip: " + img_file)
|
||||||
continue
|
continue
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue