Spaces:
Runtime error
Runtime error
shapess
Browse files
backend/disentangle_concepts.py
CHANGED
@@ -35,7 +35,7 @@ def regenerate_images(model, z, decision_boundary, min_epsilon=-3, max_epsilon=3
|
|
35 |
G = model.to(device) # type: ignore
|
36 |
|
37 |
if True:
|
38 |
-
decision_boundary = z - (np.dot(z, decision_boundary) / np.dot(decision_boundary, decision_boundary)) * decision_boundary
|
39 |
# Labels.
|
40 |
label = torch.zeros([1, G.c_dim], device=device)
|
41 |
|
|
|
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)
|
41 |
|