dumdum788 commited on
Commit
9cf89ab
·
1 Parent(s): 569d04d

fix debug

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -141,8 +141,10 @@ def predict(data: PoseInput):
141
  print("Min :", np.min(features))
142
  print("Max :", np.max(features))
143
  print("Mean :", np.mean(features))
144
- print("First 20 values :")
145
- print(features.flatten()[:20])
 
 
146
  # -----------------------------
147
  # Predict
148
  # -----------------------------
@@ -157,7 +159,7 @@ def predict(data: PoseInput):
157
  print("Raw prediction :", prediction)
158
  print("Probability :", float(prediction[0][0]))
159
  print("=" * 60)
160
-
161
  probability = float(prediction[0][0])
162
 
163
  if probability >= 0.5:
 
141
  print("Min :", np.min(features))
142
  print("Max :", np.max(features))
143
  print("Mean :", np.mean(features))
144
+ flat = features.flatten()
145
+ print("All 66 features:")
146
+ for i, value in enumerate(flat):
147
+ print(f"{i:02d}: {value:.6f}")
148
  # -----------------------------
149
  # Predict
150
  # -----------------------------
 
159
  print("Raw prediction :", prediction)
160
  print("Probability :", float(prediction[0][0]))
161
  print("=" * 60)
162
+
163
  probability = float(prediction[0][0])
164
 
165
  if probability >= 0.5: