NORLIE JHON MALAGDAO commited on
Commit
eabb9c4
·
verified ·
1 Parent(s): 4f56c6f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -193,14 +193,15 @@ test_images = test_generator.flow_from_dataframe(
193
 
194
  # Data Augmentation Step
195
  augment = tf.keras.Sequential([
196
- layers.experimental.preprocessing.Resizing(224, 224),
197
- layers.experimental.preprocessing.Rescaling(1./255),
198
- layers.experimental.preprocessing.RandomFlip("horizontal"),
199
- layers.experimental.preprocessing.RandomRotation(0.1),
200
- layers.experimental.preprocessing.RandomZoom(0.1),
201
- layers.experimental.preprocessing.RandomContrast(0.1),
202
  ])
203
 
 
204
  # Load the pretrained model
205
  pretrained_model = tf.keras.applications.efficientnet_v2.EfficientNetV2L(
206
  input_shape=(224, 224, 3),
 
193
 
194
  # Data Augmentation Step
195
  augment = tf.keras.Sequential([
196
+ tf.keras.layers.Resizing(224, 224),
197
+ tf.keras.layers.Rescaling(1./255),
198
+ tf.keras.layers.RandomFlip("horizontal"),
199
+ tf.keras.layers.RandomRotation(0.1),
200
+ tf.keras.layers.RandomZoom(0.1),
201
+ tf.keras.layers.RandomContrast(0.1),
202
  ])
203
 
204
+
205
  # Load the pretrained model
206
  pretrained_model = tf.keras.applications.efficientnet_v2.EfficientNetV2L(
207
  input_shape=(224, 224, 3),