Circularmachines
commited on
Commit
·
6000267
1
Parent(s):
584248d
updates
Browse files
app.py
CHANGED
@@ -64,7 +64,7 @@ def find():
|
|
64 |
#st.write(point)
|
65 |
#st.write(pred_all[st.session_state["img"],point[0]*36+point[1]])
|
66 |
i=st.session_state["img"]
|
67 |
-
p=point[
|
68 |
diff=np.linalg.norm(pred_all[np.newaxis,i*n_patches+p,:]-pred_all,axis=-1)
|
69 |
#re_pred=pred_all.reshape(20,20,256,64)
|
70 |
#diff_re=diff.reshape((20,20,256)).argmin(axis=[])
|
|
|
64 |
#st.write(point)
|
65 |
#st.write(pred_all[st.session_state["img"],point[0]*36+point[1]])
|
66 |
i=st.session_state["img"]
|
67 |
+
p=point[1]*gridsize+point[0]
|
68 |
diff=np.linalg.norm(pred_all[np.newaxis,i*n_patches+p,:]-pred_all,axis=-1)
|
69 |
#re_pred=pred_all.reshape(20,20,256,64)
|
70 |
#diff_re=diff.reshape((20,20,256)).argmin(axis=[])
|