Spaces:
Runtime error
Runtime error
Update utils.py
Browse files
utils.py
CHANGED
|
@@ -10,7 +10,7 @@ def create_model():
|
|
| 10 |
inputs = layers.Input(shape=(224, 224, 3), name="input_layer")
|
| 11 |
|
| 12 |
x = baseModel(inputs)
|
| 13 |
-
x = layers.AveragePooling2D()(x)
|
| 14 |
x = layers.Flatten(name='Flatten')(x)
|
| 15 |
x = layers.Dense(units=128, activation='relu')(x)
|
| 16 |
x = layers.Dropout(rate=0.5)(x)
|
|
|
|
| 10 |
inputs = layers.Input(shape=(224, 224, 3), name="input_layer")
|
| 11 |
|
| 12 |
x = baseModel(inputs)
|
| 13 |
+
x = layers.AveragePooling2D(pool_size=(2, 2))(x)
|
| 14 |
x = layers.Flatten(name='Flatten')(x)
|
| 15 |
x = layers.Dense(units=128, activation='relu')(x)
|
| 16 |
x = layers.Dropout(rate=0.5)(x)
|