Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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,
|
| 21 |
nn.ReLU(),
|
| 22 |
nn.MaxPool2d(2, 2),
|
| 23 |
-
nn.Conv2d(
|
| 24 |
nn.ReLU(),
|
| 25 |
nn.MaxPool2d(2, 2),
|
| 26 |
nn.Flatten(),
|
| 27 |
-
nn.Linear(
|
| 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 |
)
|