Skip to content

Commit 8473784

Browse files
committed
Pad integers in filenames for fixed width
1 parent 7be6e64 commit 8473784

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apply_factor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181

8282
grid = utils.save_image(
8383
torch.cat([img1, img, img2], 0),
84-
f"{args.out_prefix}_index-{args.index}_degree-{args.degree}.png",
84+
f"{args.out_prefix}_index-{args.index:02d}_degree-{args.degree}.png",
8585
normalize=True,
8686
range=(-1, 1),
8787
nrow=args.n_sample,

0 commit comments

Comments
 (0)