Skip to content

Commit

Permalink
Pad integers in filenames for fixed width
Browse files Browse the repository at this point in the history
  • Loading branch information
woctezuma committed Sep 18, 2020
1 parent 7be6e64 commit 8473784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apply_factor.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@

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

0 comments on commit 8473784

Please sign in to comment.