Commit
·
808eea5
1
Parent(s):
4fb2279
Update app.py
Browse files
app.py
CHANGED
@@ -10,10 +10,15 @@ st.header('Specify Model Options Below')
|
|
10 |
runtime_agent_device=st.radio("Choose runtime agent device combo",("TFLite-EdgeTPU","N2X-ORCA","N2X-ORCA1","OpenVINO-CPU"),index=2)
|
11 |
runtime_agent,device=runtime_agent_device.split('-')[0],runtime_agent_device.split('-')[1]
|
12 |
model_options=zoo.list_models(device=device,runtime=runtime_agent)
|
|
|
|
|
13 |
st.header('Choose and Run a Model')
|
14 |
st.text('Select a model and upload an image. Then click on the submit button')
|
15 |
with st.form("model_form"):
|
16 |
-
|
|
|
|
|
|
|
17 |
uploaded_file=st.file_uploader('input image')
|
18 |
submitted = st.form_submit_button("Submit")
|
19 |
if submitted:
|
|
|
10 |
runtime_agent_device=st.radio("Choose runtime agent device combo",("TFLite-EdgeTPU","N2X-ORCA","N2X-ORCA1","OpenVINO-CPU"),index=2)
|
11 |
runtime_agent,device=runtime_agent_device.split('-')[0],runtime_agent_device.split('-')[1]
|
12 |
model_options=zoo.list_models(device=device,runtime=runtime_agent)
|
13 |
+
activation_option=st.radio( 'Select activation function', ['SiLU', 'RELU6'])
|
14 |
+
dataset_option=st.radio( 'Select a dataset option', ['COCO', 'Face','License Plate','Car','Hand'])
|
15 |
st.header('Choose and Run a Model')
|
16 |
st.text('Select a model and upload an image. Then click on the submit button')
|
17 |
with st.form("model_form"):
|
18 |
+
act_filtered_model_options = [model if activation in model for model in model_options]
|
19 |
+
dataset_filtered_model_options=[model if dataset_option in model for model in act_filtered_model_options]
|
20 |
+
st.write('Number of models found = ', len(dataset_filtered_model_options))
|
21 |
+
model_name=st.selectbox("Choose a Model from the list", dataset_filtered_model_options)
|
22 |
uploaded_file=st.file_uploader('input image')
|
23 |
submitted = st.form_submit_button("Submit")
|
24 |
if submitted:
|