Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ease the visualization of latent directions #120

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix typo
  • Loading branch information
woctezuma committed Nov 6, 2023
commit 5fa9f302676bc4f9297686e0e0d4d72e2480e83b
4 changes: 2 additions & 2 deletions apply_factor.py
Original file line number Diff line number Diff line change
@@ -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,
)