Skip to content

Commit 396792b

Browse files
committed
fix: IndentationError
1 parent c6644c2 commit 396792b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

train_mnist.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ def forward(self, x):
9999
sample_imgs = save_test_samples_images(model, test_loader, device, out_dir="images", num_samples=5)
100100
test_log += "\n### Sample Images\n"
101101
for i, (idx, label, pred, img_path) in enumerate(sample_imgs, start=1):
102-
test_log += "![Test Accuracy](images/test_accuracy.png)\n"
102+
img_name = os.path.basename(img_path)
103+
test_log += f"![Sample {i:02d}](images/{img_name}) True: {label}, Pred: {pred}\n"
103104
save_markdown_log("test_output.md", test_log)
104105
# Mirror test log into docs/
105106
save_markdown_log(os.path.join("docs", "test_output.md"), test_log)

0 commit comments

Comments
 (0)