From 6960694391122320d60642a96238c0b5e88ced4a Mon Sep 17 00:00:00 2001 From: Wok Date: Sat, 19 Sep 2020 22:02:52 +0200 Subject: [PATCH] Fix typo --- apply_factor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apply_factor.py b/apply_factor.py index 7599f520..4a0874a0 100755 --- a/apply_factor.py +++ b/apply_factor.py @@ -75,7 +75,7 @@ img_dict = dict() - for u in torch.linspace(- args.degree, args.degree, args.d_num): + for u in torch.linspace(- args.degree, args.degree, args.degree_num): img_batch, _ = g( [latent + u * direction], @@ -103,5 +103,5 @@ f"{args.out_prefix}_index-{args.index}_degree-{args.degree}.png", normalize=True, range=(-1, 1), - nrow=args.d_num, + nrow=args.degree_num, )