-
-
Save amankharwal/f2c3916426ad84f4aecf29ddb9ce074d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import cv2 | |
import numpy as np | |
#Encoding and Split data into Train/Test Sets | |
from sklearn.preprocessing import LabelEncoder | |
from tensorflow.keras.utils import to_categorical | |
from sklearn.model_selection import train_test_split | |
#Tensorflow Keras CNN Model | |
from tensorflow.keras.models import Sequential | |
from tensorflow.keras.layers import Dense, Dropout, Flatten, Activation, Conv2D, MaxPooling2D | |
from tensorflow.keras.preprocessing.image import ImageDataGenerator | |
from tensorflow.keras.optimizers import Adam,SGD,Adagrad,Adadelta,RMSprop | |
#Plot Images | |
import matplotlib.pyplot as plt | |
folder_dir = 'dataset path' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment