ludusc commited on
Commit
edcca83
1 Parent(s): a559676

nope no perp

Browse files
Files changed (1) hide show
  1. backend/disentangle_concepts.py +1 -1
backend/disentangle_concepts.py CHANGED
@@ -34,7 +34,7 @@ def regenerate_images(model, z, decision_boundary, min_epsilon=-3, max_epsilon=3
34
  device = torch.device('cpu')
35
  G = model.to(device) # type: ignore
36
 
37
- if True:
38
  decision_boundary = z - (np.dot(z, decision_boundary.T) / np.dot(decision_boundary, decision_boundary.T)) * decision_boundary
39
  # Labels.
40
  label = torch.zeros([1, G.c_dim], device=device)
 
34
  device = torch.device('cpu')
35
  G = model.to(device) # type: ignore
36
 
37
+ if False:
38
  decision_boundary = z - (np.dot(z, decision_boundary.T) / np.dot(decision_boundary, decision_boundary.T)) * decision_boundary
39
  # Labels.
40
  label = torch.zeros([1, G.c_dim], device=device)