Update my_model/state_manager.py
Browse files
my_model/state_manager.py
CHANGED
@@ -222,9 +222,14 @@ class StateManager:
|
|
222 |
free_gpu_resources()
|
223 |
if self.is_model_loaded:
|
224 |
st.text("tttttt")
|
|
|
|
|
|
|
|
|
|
|
225 |
if st.session_state['detection_model'] == st.session_state['previous_state']['detection_model']\
|
226 |
and st.session_state['method'] == st.session_state['previous_state']['method'] \
|
227 |
-
and st.session_state['confidence_level'] != st.session_state['
|
228 |
st.text("aaaaa")
|
229 |
st.session_state['kbvqa'].detection_confidence = st.session_state.confidence_level
|
230 |
st.text("HHHHHH")
|
|
|
222 |
free_gpu_resources()
|
223 |
if self.is_model_loaded:
|
224 |
st.text("tttttt")
|
225 |
+
st.write(st.session_state['detection_model'] == st.session_state['previous_state']['detection_model'])
|
226 |
+
st.write(st.session_state['method'] == st.session_state['previous_state']['method'])
|
227 |
+
st.write(st.session_state['confidence_level'] != st.session_state['previous_state']['confidence_level'])
|
228 |
+
|
229 |
+
# check if only confidence is changed
|
230 |
if st.session_state['detection_model'] == st.session_state['previous_state']['detection_model']\
|
231 |
and st.session_state['method'] == st.session_state['previous_state']['method'] \
|
232 |
+
and st.session_state['confidence_level'] != st.session_state['previous_state']['confidence_level']:
|
233 |
st.text("aaaaa")
|
234 |
st.session_state['kbvqa'].detection_confidence = st.session_state.confidence_level
|
235 |
st.text("HHHHHH")
|