mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-09 06:45:09 +00:00
fix "\\" to "/" for compatiblity
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user