Spaces:
Sleeping
Sleeping
debugging api
Browse files
app.py
CHANGED
|
@@ -131,7 +131,18 @@ def predict(data: PoseInput):
|
|
| 131 |
66,
|
| 132 |
1
|
| 133 |
)
|
| 134 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 135 |
# -----------------------------
|
| 136 |
# Predict
|
| 137 |
# -----------------------------
|
|
|
|
| 131 |
66,
|
| 132 |
1
|
| 133 |
)
|
| 134 |
+
# =============================
|
| 135 |
+
# DEBUG INPUT
|
| 136 |
+
# =============================
|
| 137 |
+
print("=" * 60)
|
| 138 |
+
print("DEBUG INPUT CNN")
|
| 139 |
+
print("=" * 60)
|
| 140 |
+
print("Shape :", features.shape)
|
| 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 |
# -----------------------------
|