gregmerritt commited on
Commit
dcbc1c4
·
verified ·
1 Parent(s): 05c0ede

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -17,14 +17,14 @@ class EmotionModel(nn.Module):
17
  def __init__(self):
18
  super(EmotionModel, self).__init__()
19
  self.model = nn.Sequential(
20
- nn.Conv2d(1, 16, kernel_size=3, stride=1, padding=1),
21
  nn.ReLU(),
22
  nn.MaxPool2d(2, 2),
23
- nn.Conv2d(16, 32, kernel_size=3, stride=1, padding=1),
24
  nn.ReLU(),
25
  nn.MaxPool2d(2, 2),
26
  nn.Flatten(),
27
- nn.Linear(32 * 12 * 12, 128),
28
  nn.ReLU(),
29
  nn.Linear(128, 7)
30
  )
 
17
  def __init__(self):
18
  super(EmotionModel, self).__init__()
19
  self.model = nn.Sequential(
20
+ nn.Conv2d(1, 32, 3, padding=1), # Match 32 out_channels
21
  nn.ReLU(),
22
  nn.MaxPool2d(2, 2),
23
+ nn.Conv2d(32, 64, 3, padding=1), # Match 64 out_channels
24
  nn.ReLU(),
25
  nn.MaxPool2d(2, 2),
26
  nn.Flatten(),
27
+ nn.Linear(64 * 12 * 12, 128), # 64 filters * 12x12 features = 9216
28
  nn.ReLU(),
29
  nn.Linear(128, 7)
30
  )