Eric2983 commited on
Commit
af8d2aa
1 Parent(s): adccabd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +34 -1
app.py CHANGED
@@ -35,4 +35,37 @@ validation_set = tf.keras.utils.image_dataset_from_directory(
35
  interpolation="bilinear",
36
  follow_links=False,
37
  crop_to_aspect_ratio=False
38
- )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  interpolation="bilinear",
36
  follow_links=False,
37
  crop_to_aspect_ratio=False
38
+ )
39
+
40
+ model = tf.keras.models.Sequential()
41
+
42
+ model.add(tf.keras.layers.Conv2D(filters=32,kernel_size=3,padding='same',activation='relu',input_shape=[64,64,3]))
43
+ model.add(tf.keras.layers.Conv2D(filters=32,kernel_size=3,activation='relu'))
44
+ model.add(tf.keras.layers.MaxPool2D(pool_size=2,strides=2))
45
+
46
+
47
+ model.add(tf.keras.layers.Dropout(0.25))
48
+
49
+
50
+ model.add(tf.keras.layers.Conv2D(filters=64,kernel_size=3,padding='same',activation='relu'))
51
+ model.add(tf.keras.layers.Conv2D(filters=64,kernel_size=3,activation='relu'))
52
+ model.add(tf.keras.layers.MaxPool2D(pool_size=2,strides=2))
53
+
54
+
55
+ model.add(tf.keras.layers.Dropout(0.25))
56
+
57
+
58
+ model.add(tf.keras.layers.Flatten())
59
+
60
+
61
+ model.add(tf.keras.layers.Dense(units=512,activation='relu'))
62
+
63
+
64
+ model.add(tf.keras.layers.Dense(units=256,activation='relu'))
65
+
66
+
67
+ model.add(tf.keras.layers.Dropout(0.5)) #To avoid overfitting
68
+
69
+
70
+ #Output Layer
71
+ model.add(tf.keras.layers.Dense(units=36,activation='softmax'))