text_plain_output_1.png
import cv2

import matplotlib.pyplot as plt

import os

num_test_images = len(os.listdir('../input/cassava-leaf-disease-classification/test_images'))
num_test_images

num_train_images = len(os.listdir('../input/cassava-leaf-disease-classification/train_images'))
num_train_images

import cv2
image = cv2.imread('../input/cassava-leaf-disease-classification/test_images/2216849948.jpg')
plt.axis('off')

plant = os.listdir('../input/cassava-leaf-disease-classification/train_images')
plant_dir = '../input/cassava-leaf-disease-classification/train_images'
plt.figure(figsize=(20, 10))
for i in range(9):
    plt.subplot(3, 3, i + 1)
    img = plt.imread(os.path.join(plant_dir, plant[i]))
    plt.imshow(img)
    plt.axis('off')
plt.tight_layout()