marta-marta commited on
Commit
abcddc5
·
1 Parent(s): 78a2f2b

Created input widgets for image size and density list

Browse files
Files changed (1) hide show
  1. app.py +10 -3
app.py CHANGED
@@ -18,17 +18,24 @@ import numpy
18
 
19
  import streamlit as st
20
  from Data_Generation.Dataset_Generation_Functions import make_boxes
21
-
22
 
23
  image_size = st.slider('Select a value for the image size')
24
  # st.write(x, 'squared is', x * x)
25
 
26
 
27
- density_selection = st.slider('Select a value for the number of equally spaced density values')
 
 
 
28
 
29
- densities = np.linspace(0,1, num=density_selection)[1:]
30
 
 
31
  st.write(densities)
 
 
 
 
32
  '''
33
  # Testing
34
  image_size = 100
 
18
 
19
  import streamlit as st
20
  from Data_Generation.Dataset_Generation_Functions import make_boxes
21
+ from Data_Generation.Piecewise_Box_Functions import basic_box_array
22
 
23
  image_size = st.slider('Select a value for the image size')
24
  # st.write(x, 'squared is', x * x)
25
 
26
 
27
+ density_selection = st.slider('Select a value for the number of equally spaced density values (0, 1]', min_value=1, max_value=10)
28
+
29
+ densities = pd.DataFrame(np.linspace(0,1, num=density_selection+1)[1:])
30
+ densities.columns = ["Density Values"]
31
 
 
32
 
33
+ st.write("Here are the density values that would exist in your dataset:")
34
  st.write(densities)
35
+
36
+
37
+ example_density = basic_box_array(image_size, 1)
38
+
39
  '''
40
  # Testing
41
  image_size = 100