text_plain_output_35.png text_plain_output_37.png text_plain_output_5.png text_plain_output_30.png text_plain_output_15.png text_plain_output_9.png text_plain_output_40.png text_plain_output_31.png text_plain_output_20.png text_plain_output_4.png text_plain_output_13.png text_plain_output_14.png text_plain_output_32.png text_plain_output_29.png text_plain_output_27.png text_plain_output_10.png text_plain_output_6.png text_plain_output_24.png text_plain_output_21.png text_plain_output_25.png text_plain_output_18.png text_plain_output_36.png text_plain_output_3.png text_plain_output_22.png text_plain_output_38.png text_plain_output_7.png text_plain_output_16.png text_plain_output_8.png text_plain_output_26.png text_plain_output_34.png text_plain_output_23.png text_plain_output_28.png text_plain_output_2.png text_plain_output_1.png text_plain_output_33.png text_plain_output_39.png text_plain_output_19.png text_plain_output_17.png text_plain_output_11.png text_plain_output_12.png
import tensorflow as tf

data_dir = '/kaggle/input/rgb-arabic-alphabets-sign-language-dataset-jpg/images_after'
images = tf.keras.utils.image_dataset_from_directory(data_dir, labels='inferred', label_mode='int', class_names=None, color_mode='rgb', batch_size=32, image_size=(256, 256), shuffle=True, seed=123, validation_split=0.2, subset='training', interpolation='bilinear')

class_names = images.class_names
class_names