Spaces:
Runtime error
Runtime error
NORLIE JHON MALAGDAO
commited on
Update app.py
Browse files
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 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
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),
|