JaredBailey commited on
Commit
5b8a177
·
verified ·
1 Parent(s): 48ba8ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -197,8 +197,6 @@ if st.session_state.screen == 2:
197
  st.session_state.tiles = tile_image(image=st.session_state.image, tile_size=640, overlap=40)
198
 
199
  with row5_col2:
200
- # st.image(st.session_state.image, use_column_width=True)
201
-
202
  st.session_state.boxed_image = np.array(st.session_state.image)
203
  # st.session_state.boxed_image = cv2.cvtColor(st.session_state.boxed_image, cv2.COLOR_RGB2BGR)
204
  height, width, channels = st.session_state.boxed_image.shape
@@ -242,7 +240,7 @@ if st.session_state.screen == 2:
242
  st.rerun()
243
 
244
  # plot predicted image
245
- st.markdown(f"<h4 style='text-align: center; color: black;'>Image {str(st.session_state.image_counter + 1)}</h4>", unsafe_allow_html=True)
246
  im_bgr = st.session_state.results[st.session_state.image_counter].plot() # BGR-order numpy array
247
  im_rgb = Image.fromarray(im_bgr[..., ::-1]) # RGB-order PIL image
248
  st.image(im_rgb)
 
197
  st.session_state.tiles = tile_image(image=st.session_state.image, tile_size=640, overlap=40)
198
 
199
  with row5_col2:
 
 
200
  st.session_state.boxed_image = np.array(st.session_state.image)
201
  # st.session_state.boxed_image = cv2.cvtColor(st.session_state.boxed_image, cv2.COLOR_RGB2BGR)
202
  height, width, channels = st.session_state.boxed_image.shape
 
240
  st.rerun()
241
 
242
  # plot predicted image
243
+ st.markdown(f"<h4 style='text-align: center; color: black;'>Image Tile {str(st.session_state.image_counter + 1)}</h4>", unsafe_allow_html=True)
244
  im_bgr = st.session_state.results[st.session_state.image_counter].plot() # BGR-order numpy array
245
  im_rgb = Image.fromarray(im_bgr[..., ::-1]) # RGB-order PIL image
246
  st.image(im_rgb)