Skip to content

Commit

Permalink
num gen corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
GaParmar committed Jun 18, 2022
1 parent 44979df commit e1bc9c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ figures/*

setup.cfg
examples/*
notebooks/*

tests/*
scripts/tmp/*
Expand Down
2 changes: 1 addition & 1 deletion cleanfid/fid.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def get_model_features(G, model, mode="clean", z_dim=512,
resized_batch = img_batch
feat = get_batch_features(resized_batch, model, device)
l_feats.append(feat)
np_feats = np.concatenate(l_feats)
np_feats = np.concatenate(l_feats)[:num_gen]
if return_z:
latents = torch.cat(latents, 0)
return np_feats, latents
Expand Down

0 comments on commit e1bc9c3

Please sign in to comment.