Skip to content

Commit 48cc53d

Browse files
committed
Bug fixed.
1 parent fcf12c9 commit 48cc53d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dataset_transfer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def transfer(src: str, destination: str) -> None:
3030
for j in listdir(f"{src}/{i}"):
3131
for n in range(300):
3232
copyfile(f"{src}/{i}/{j}/regular/left/{n}.png",
33-
f"{destination}/imagesTr/case_{(s := str(serial).zfill(3))}_0000.png")
33+
f"{destination}/imagesTr/case_{(s := str(serial).zfill(4))}_0000.png")
3434
imwrite(f"{destination}/labelsTr/case_{s}.png",
3535
load(f"{src}/{i}/{j}/ground_truth/left/{n}.npy").astype(uint8))
3636
serial += 1

0 commit comments

Comments
 (0)