Spaces:
Runtime error
Runtime error
tried fixing shapes
Browse files
pages/1_Omniart_Disentanglement.py
CHANGED
@@ -170,7 +170,7 @@ else:
|
|
170 |
original_image_vec = annotations['w_vectors'][st.session_state.image_id]
|
171 |
|
172 |
if st.session_state.projection:
|
173 |
-
original_image_vec = original_image_vec - np.dot(original_image_vec
|
174 |
print(original_image_vec.shape)
|
175 |
|
176 |
img = generate_original_image(original_image_vec, model, latent_space=st.session_state.space_id)
|
|
|
170 |
original_image_vec = annotations['w_vectors'][st.session_state.image_id]
|
171 |
|
172 |
if st.session_state.projection:
|
173 |
+
original_image_vec = original_image_vec - np.dot(original_image_vec, separation_vector.T) * separation_vector
|
174 |
print(original_image_vec.shape)
|
175 |
|
176 |
img = generate_original_image(original_image_vec, model, latent_space=st.session_state.space_id)
|