shivalikasingh commited on
Commit
b256351
·
1 Parent(s): a9b208a

Update utils/predict.py

Browse files
Files changed (1) hide show
  1. utils/predict.py +1 -1
utils/predict.py CHANGED
@@ -61,7 +61,7 @@ def predict_batch(image_path):
61
  predictions_df = pd.DataFrame()
62
  num = random.randint(0,50)
63
  for images, labels in slice:
64
- for i in range(9): #zip(range(num,num+3), range(9)):
65
  ax = plt.subplot(3, 3, i + 1)
66
  plt.imshow(images[i].numpy().astype("uint8"))
67
  output = np.argmax(slice_pred[i])
 
61
  predictions_df = pd.DataFrame()
62
  num = random.randint(0,50)
63
  for images, labels in slice:
64
+ for i in range(6):
65
  ax = plt.subplot(3, 3, i + 1)
66
  plt.imshow(images[i].numpy().astype("uint8"))
67
  output = np.argmax(slice_pred[i])