Spaces:
Runtime error
Runtime error
Commit
·
d5aaa92
1
Parent(s):
5ad4787
Update utils/predict.py
Browse files- utils/predict.py +1 -1
utils/predict.py
CHANGED
@@ -62,7 +62,7 @@ def predict_batch(image_path):
|
|
62 |
num = random.randint(0,50)
|
63 |
for images, labels in slice:
|
64 |
for i,j in zip(range(num,num+3), range(9)):
|
65 |
-
ax = plt.subplot(
|
66 |
plt.imshow(images[i].numpy().astype("uint8"))
|
67 |
output = np.argmax(slice_pred[i])
|
68 |
|
|
|
62 |
num = random.randint(0,50)
|
63 |
for images, labels in slice:
|
64 |
for i,j in zip(range(num,num+3), range(9)):
|
65 |
+
ax = plt.subplot(3, 3, j + 1)
|
66 |
plt.imshow(images[i].numpy().astype("uint8"))
|
67 |
output = np.argmax(slice_pred[i])
|
68 |
|