Cache bug fix (#1513)

* Caching bug fix #1508

* np.zeros((0,5)) x2
This commit is contained in:
Glenn Jocher authored and GitHub committed 2020-11-25 20:33:14 +01:00
1 parent b3ceffb513
commit e9a0ae6f19
3 files changed
+6 -21

No files matched your search

+1 -1
View File
@@ -209,7 +209,7 @@ def test(data,
f = save_dir / f'test_batch{batch_i}_labels.jpg' # filename
plot_images(img, targets, paths, f, names) # labels
f = save_dir / f'test_batch{batch_i}_pred.jpg'
plot_images(img, output_to_target(output, width, height), paths, f, names) # predictions
plot_images(img, output_to_target(output), paths, f, names) # predictions
# Compute statistics
stats = [np.concatenate(x, 0) for x in zip(*stats)] # to numpy