Pybunny commited on
Commit
923bec7
·
verified ·
1 Parent(s): db9df7d
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -353,7 +353,6 @@ def _score_demo_pt(weights_file, n_frames):
353
  fp = (~A & B).sum(axis=1).astype(np.float32)
354
  fn = (A & ~B).sum(axis=1).astype(np.float32)
355
  f1d = tp + 0.5 * (fp + fn)
356
- f1 = float(np.where(f1d > 0, tp / np.maximum(f1d, 1), np.nan))
357
  f1 = float(np.nanmean(np.where(f1d > 0, tp / np.maximum(f1d, 1), np.nan)))
358
  P = y_true.sum(axis=1)
359
  teca = float(np.nanmean(np.where(P > 0,
 
353
  fp = (~A & B).sum(axis=1).astype(np.float32)
354
  fn = (A & ~B).sum(axis=1).astype(np.float32)
355
  f1d = tp + 0.5 * (fp + fn)
 
356
  f1 = float(np.nanmean(np.where(f1d > 0, tp / np.maximum(f1d, 1), np.nan)))
357
  P = y_true.sum(axis=1)
358
  teca = float(np.nanmean(np.where(P > 0,