Update app.py
Browse files
app.py
CHANGED
@@ -273,9 +273,19 @@ def main():
|
|
273 |
|
274 |
with col2:
|
275 |
predictions = models["KnochenAuge"](image)
|
|
|
|
|
|
|
|
|
|
|
276 |
filtered_preds = [p for p in predictions if p['score'] >= conf_threshold
|
277 |
and 'fracture' in p['label'].lower()]
|
278 |
|
|
|
|
|
|
|
|
|
|
|
279 |
if filtered_preds:
|
280 |
st.write("#### 🎯 Fraktur Lokalisation")
|
281 |
result_image = draw_boxes(image, filtered_preds)
|
|
|
273 |
|
274 |
with col2:
|
275 |
predictions = models["KnochenAuge"](image)
|
276 |
+
# Debug: Afficher toutes les prédictions avant filtrage
|
277 |
+
st.write("Debug - Toutes les prédictions:")
|
278 |
+
for p in predictions:
|
279 |
+
st.write(f"Label: {p['label']}, Score: {p['score']}")
|
280 |
+
|
281 |
filtered_preds = [p for p in predictions if p['score'] >= conf_threshold
|
282 |
and 'fracture' in p['label'].lower()]
|
283 |
|
284 |
+
# Debug: Afficher les prédictions filtrées
|
285 |
+
st.write("Debug - Prédictions filtrées:")
|
286 |
+
for p in filtered_preds:
|
287 |
+
st.write(f"Label: {p['label']}, Score: {p['score']}, Box: {p['box']}")
|
288 |
+
|
289 |
if filtered_preds:
|
290 |
st.write("#### 🎯 Fraktur Lokalisation")
|
291 |
result_image = draw_boxes(image, filtered_preds)
|