tsaddev commited on
Commit
eaeac00
·
1 Parent(s): 1d38fea

Update app/Hackathon_setup/exp_recognition_model.py

Browse files
app/Hackathon_setup/exp_recognition_model.py CHANGED
@@ -20,9 +20,8 @@ class facExpRec(torch.nn.Module):
20
  self.conv1 = self.convlayer(in_channels=1, out_channels=64, kernel_size=3)
21
  self.conv2 = self.convlayer(in_channels=64, out_channels=128, kernel_size=5)
22
  self.conv3 = self.convlayer(in_channels=128, out_channels=512, kernel_size=3)
23
- self.conv4 = self.convlayer(in_channels=512, out_channels=512, kernel_size=3, max_pool=1)
24
 
25
- self.fc1 = self.fclayer(512, 256)
26
  self.fc2 = self.fclayer(256, 512)
27
  self.fc3 = nn.Linear(512, out_features)
28
 
@@ -48,8 +47,7 @@ class facExpRec(torch.nn.Module):
48
  x = self.conv1(x)
49
  x = self.conv2(x)
50
  x = self.conv3(x)
51
- x = self.conv4(x)
52
- x = x.view(-1, 512)
53
  x = self.fc1(x)
54
  x = self.fc2(x)
55
  x = self.fc3(x)
 
20
  self.conv1 = self.convlayer(in_channels=1, out_channels=64, kernel_size=3)
21
  self.conv2 = self.convlayer(in_channels=64, out_channels=128, kernel_size=5)
22
  self.conv3 = self.convlayer(in_channels=128, out_channels=512, kernel_size=3)
 
23
 
24
+ self.fc1 = self.fclayer(512*3*3, 256)
25
  self.fc2 = self.fclayer(256, 512)
26
  self.fc3 = nn.Linear(512, out_features)
27
 
 
47
  x = self.conv1(x)
48
  x = self.conv2(x)
49
  x = self.conv3(x)
50
+ x = x.view(-1, 512*3*3)
 
51
  x = self.fc1(x)
52
  x = self.fc2(x)
53
  x = self.fc3(x)