dcrey7 commited on
Commit
dfbef66
·
verified ·
1 Parent(s): 6656678

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -614,7 +614,7 @@ def calculate_metrics(pred_mask, gt_mask):
614
  f1 = 2 * precision * recall / (precision + recall) if (precision + recall) > 0 else 0
615
 
616
  metrics = {
617
- "IoU": float(iou),
618
  "Precision": float(precision),
619
  "Recall": float(recall),
620
  "F1 Score": float(f1)
@@ -710,7 +710,7 @@ def process_images(input_image=None, input_tiff=None, gt_mask_file=None):
710
 
711
  # Add cloud detection results
712
  result_text += f"Cloud Detection: {cloud_result['prediction']} "
713
- result_text += f"({cloud_result['probability']*100:.2f}% confidence)\n\n"
714
 
715
  # Add segmentation metrics if available
716
  if metrics_text:
 
614
  f1 = 2 * precision * recall / (precision + recall) if (precision + recall) > 0 else 0
615
 
616
  metrics = {
617
+ "Wetlands IoU": float(iou),
618
  "Precision": float(precision),
619
  "Recall": float(recall),
620
  "F1 Score": float(f1)
 
710
 
711
  # Add cloud detection results
712
  result_text += f"Cloud Detection: {cloud_result['prediction']} "
713
+ result_text += f"({cloud_result['probability']*100:.2f}% Cloud probability)\n\n"
714
 
715
  # Add segmentation metrics if available
716
  if metrics_text: