Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
daavoo committed Apr 27, 2022
1 parent 03751bd commit a24f437
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion demo/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ def get_confusion_image(predictions, dataset):
for n, pred in enumerate(predictions):
actual = pred["actual"]
predicted = pred["predicted"]
confusion[(actual, predicted)] = dataset[n]
image = np.array(dataset[n]) / 255
confusion[(actual, predicted)] = image

max_i, max_j = 0, 0
for (i, j) in confusion:
Expand Down

0 comments on commit a24f437

Please sign in to comment.