Spaces:
Build error
Build error
Commit ·
1ac8545
1
Parent(s): ae7958c
app.py updates
Browse files
app.py
CHANGED
|
@@ -43,10 +43,12 @@ def find():
|
|
| 43 |
point=st.session_state["point"]
|
| 44 |
point=(point[0]//16,point[1]//16)
|
| 45 |
#point=point[0]*36+point[1]
|
| 46 |
-
st.write(point)
|
| 47 |
-
st.write(pred_all[st.session_state["img"],point[0]*36+point[1]])
|
| 48 |
-
|
| 49 |
-
|
|
|
|
|
|
|
| 50 |
|
| 51 |
# for i in range(4):
|
| 52 |
# st.session_state["sideimg"][i]+=1
|
|
|
|
| 43 |
point=st.session_state["point"]
|
| 44 |
point=(point[0]//16,point[1]//16)
|
| 45 |
#point=point[0]*36+point[1]
|
| 46 |
+
#st.write(point)
|
| 47 |
+
#st.write(pred_all[st.session_state["img"],point[0]*36+point[1]])
|
| 48 |
+
i=st.session_state["img"]
|
| 49 |
+
p=point[0]*36+point[1]
|
| 50 |
+
diff=np.linalg.norm(pred_all[np.newaxis,np.newaxis,i,p]-pred_all,axis=-1)
|
| 51 |
+
st.write(diff.argmin())
|
| 52 |
|
| 53 |
# for i in range(4):
|
| 54 |
# st.session_state["sideimg"][i]+=1
|