ludusc commited on
Commit
d49c6b3
1 Parent(s): 2422d19

tried fixing shapes

Browse files
Files changed (1) hide show
  1. pages/1_Omniart_Disentanglement.py +1 -1
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.T, separation_vector) * 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)
 
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)