Skip to content

Commit 4172c52

Browse files
committed
Pad integers in filenames for fixed width
1 parent bef283a commit 4172c52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: apply_factor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787

8888
grid = utils.save_image(
8989
torch.cat([img1, img, img2], 0),
90-
f"{args.out_prefix}_index-{args.index}_degree-{args.degree}.png",
90+
f"{args.out_prefix}_index-{args.index:02d}_degree-{args.degree}.png",
9191
normalize=True,
9292
range=(-1, 1),
9393
nrow=args.n_sample,

0 commit comments

Comments
 (0)