Commit
·
561ccb3
1
Parent(s):
9540bec
updates
Browse files
app.py
CHANGED
@@ -43,6 +43,7 @@ n_patches=len(keep)
|
|
43 |
pred=np.load('pred.npy')
|
44 |
pred_all=np.load('pred_all.npy').reshape(-1,64)
|
45 |
|
|
|
46 |
|
47 |
|
48 |
#st.set_page_config(
|
@@ -179,8 +180,14 @@ with col1:
|
|
179 |
#subcol1, subcol2 = st.columns(2)
|
180 |
#with subcol1:
|
181 |
#st.button('Previous Frame', on_click=button_click)
|
182 |
-
st.
|
183 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
184 |
|
185 |
#st.write(st.session_state["img"])
|
186 |
#st.write(st.session_state["point"])
|
|
|
43 |
pred=np.load('pred.npy')
|
44 |
pred_all=np.load('pred_all.npy').reshape(-1,64)
|
45 |
|
46 |
+
random_i=np.load('random.npy')
|
47 |
|
48 |
|
49 |
#st.set_page_config(
|
|
|
180 |
#subcol1, subcol2 = st.columns(2)
|
181 |
#with subcol1:
|
182 |
#st.button('Previous Frame', on_click=button_click)
|
183 |
+
scol1, scol2 = st.columns(2)
|
184 |
+
with scol1:
|
185 |
+
st.button('Change Image', on_click=button_click)
|
186 |
+
|
187 |
+
with scol2:
|
188 |
+
st.button('Find similar parts', on_click=find)
|
189 |
+
|
190 |
+
st.write("Currently viewing frame "+random_i[st.session_state["img"]%20]+" in batch "+st.session_state["img"]//20)
|
191 |
|
192 |
#st.write(st.session_state["img"])
|
193 |
#st.write(st.session_state["point"])
|