In this article, you will learn how to load and create image train and test dataset from custom data as an input for Deep learning models. You will learn to load the dataset using.
The dataset used here is Intel Image Classification from Kaggle.
Intel Image classification dataset is already split into train, test, and Val, and we will only use the training dataset to learn how to load the dataset using different libraries.
Each class is a folder containing images for that particular class.
Importing required libraries
import pandas as pd
import numpy as np
import os
import tensorflow as tf
import cv2
from tensorflow import keras
from tensorflow.keras import layers, Dense, Input, InputLayer, Flatten
from tensorflow.keras.models import Sequential, Model
from matplotlib import pyplot as plt
import matplotlib.image as mpimg
%matplotlib inline
#deep-learning #machine-learning #image-processing #python #opencv