Circularmachines commited on
Commit
0b03953
1 Parent(s): 23f9025

app.py updates

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -72,10 +72,10 @@ def find():
72
  #st.write(pred_all[st.session_state["img"],point[0]*36+point[1]])
73
  i=st.session_state["img"]
74
  p=point[0]*36+point[1]
75
- diff=np.linalg.norm(pred_all[np.newaxis,np.newaxis,i,p]-pred_all,axis=-1)
76
  for ix in range(4):
77
  st.session_state["sideimg"][ix]=patch(diff.argsort()[ix])
78
- st.write(diff.argsort()[ix])
79
 
80
 
81
 
 
72
  #st.write(pred_all[st.session_state["img"],point[0]*36+point[1]])
73
  i=st.session_state["img"]
74
  p=point[0]*36+point[1]
75
+ diff=np.linalg.norm(pred_all[np.newaxis,np.newaxis,i,p]-pred_all,axis=-1).flatten()
76
  for ix in range(4):
77
  st.session_state["sideimg"][ix]=patch(diff.argsort()[ix])
78
+ #st.write(diff.argsort()[ix])
79
 
80
 
81