-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathreport_gen.sh
33 lines (23 loc) · 961 Bytes
/
report_gen.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
# Add plots to the report
echo "### Accuracy" >> report.md
echo '' >> report.md
echo "### Loss" >> report.md
echo '' >> report.md
echo "### Train Confusion matrix" >> report.md
echo '' >> report.md
echo "### Test Confusion matrix" >> report.md
echo '' >> report.md
echo "### Infer Images" >> report.md
# Directory containing images
image_dir="infer_images"
# Report file
report_file="report.md"
# Loop through all images in the directory
for image in "$image_dir"/*; do
# Get the image filename
image_filename=$(basename "$image")
# Append the image to the report file
echo "" >> "$report_file"
done
echo "All images have been appended to $report_file"