application_vnd.jupyter.stderr_output_1.png
from tensorflow.keras.preprocessing.image import ImageDataGenerator

import os

import pandas as pd

test = pd.read_csv('../input/histopathologic-cancer-detection/sample_submission.csv')

test['filename'] = test.id + '.tif'

test_path = '../input/histopathologic-cancer-detection/test'

BATCH_SIZE = 64
test_datagen = ImageDataGenerator(rescale=1 / 255)
test_loader = test_datagen.flow_from_dataframe(dataframe=test, directory=test_path, x_col='filename', batch_size=BATCH_SIZE, shuffle=False, class_mode=None, target_size=(32, 32))