Spaces:
Running
Running
Commit
·
cbc6443
1
Parent(s):
ebfa5b6
Show only the last confusion matrix image after training
Browse files
app.py
CHANGED
@@ -268,9 +268,10 @@ def main():
|
|
268 |
st.line_chart({tag: values})
|
269 |
# Show confusion matrix images if available
|
270 |
if 'confusion_matrix' in ea.Tags()['images']:
|
271 |
-
st.subheader("TensorBoard Confusion
|
272 |
-
|
273 |
-
|
|
|
274 |
else:
|
275 |
st.info("No TensorBoard logs found. Please upload logs to the 'logs' directory.")
|
276 |
|
|
|
268 |
st.line_chart({tag: values})
|
269 |
# Show confusion matrix images if available
|
270 |
if 'confusion_matrix' in ea.Tags()['images']:
|
271 |
+
st.subheader("TensorBoard Confusion Matrix (Last Epoch)")
|
272 |
+
imgs = ea.Images('confusion_matrix')
|
273 |
+
if imgs:
|
274 |
+
st.image(imgs[-1].encoded_image_string)
|
275 |
else:
|
276 |
st.info("No TensorBoard logs found. Please upload logs to the 'logs' directory.")
|
277 |
|