Daniel Cerda Escobar commited on
Commit
c1439f5
·
1 Parent(s): f988731

Fix model parameters

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -138,7 +138,7 @@ if submit:
138
  with st.spinner(text="Downloading model weights ... "):
139
  detection_model = get_model(postprocess_match_threshold)
140
 
141
- slice_size = 4960/(int(slice_number)**0.5)
142
  image_size = 4960
143
 
144
  with st.spinner(text="Performing prediction ... "):
 
138
  with st.spinner(text="Downloading model weights ... "):
139
  detection_model = get_model(postprocess_match_threshold)
140
 
141
+ slice_size = int(4960/(float(slice_number)**0.5))
142
  image_size = 4960
143
 
144
  with st.spinner(text="Performing prediction ... "):