This commit is contained in:
Joshua Perry 2024-05-19 17:31:49 +01:00
parent 535558f128
commit 7b11c01c02
4 changed files with 6 additions and 4 deletions

BIN
example.odt Normal file

Binary file not shown.

View File

@ -50,15 +50,13 @@ test_data = test_data.prefetch(buffer_size=AUTOTUNE)
#Data Augmentation #Data Augmentation
data_augmentation = tf.keras.Sequential([ data_augmentation = tf.keras.Sequential([
tf.keras.layers.RandomFlip('horisontal'), tf.keras.layers.RandomFlip('horizontal'),
tf.keras.layers.RandomRotation(0.2) tf.keras.layers.RandomRotation(0.2)
]) ])
#Rescale Pixel Values #Preprocessing
preprocess_input = tf.keras.applications.mobilenet_v3.preprocess_input preprocess_input = tf.keras.applications.mobilenet_v3.preprocess_input
rescale = tf.keras.layers.Rescaling(1./127.5, offset=-1)
#Create Base Model From MobileNetV3 #Create Base Model From MobileNetV3
IMG_SHAPE = IMG_SIZE + (3,) IMG_SHAPE = IMG_SIZE + (3,)
base_model = tf.keras.applications.MobileNetV3Large( base_model = tf.keras.applications.MobileNetV3Large(

Binary file not shown.

4
test.py Normal file
View File

@ -0,0 +1,4 @@
#Load model
#Load test data
#Test
#Print results