Thompson001 commited on
Commit
eaea67f
·
verified ·
1 Parent(s): 56b32ab

Upload model.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. model.py +1 -2
model.py CHANGED
@@ -1,4 +1,3 @@
1
-
2
  import torch
3
  import torch.nn as nn
4
 
@@ -10,7 +9,7 @@ class SimpleCNN(nn.Module):
10
  nn.Conv2d(32, 64, 3, padding=1), nn.ReLU(), nn.MaxPool2d(2),
11
  nn.Conv2d(64, 128, 3, padding=1), nn.ReLU(), nn.AdaptiveAvgPool2d(1),
12
  )
13
- self.fc = nn.Linear(128, 2)
14
 
15
  def forward(self, x):
16
  x = self.net(x)
 
 
1
  import torch
2
  import torch.nn as nn
3
 
 
9
  nn.Conv2d(32, 64, 3, padding=1), nn.ReLU(), nn.MaxPool2d(2),
10
  nn.Conv2d(64, 128, 3, padding=1), nn.ReLU(), nn.AdaptiveAvgPool2d(1),
11
  )
12
+ self.fc = nn.Linear(128, 2) # crack / no_crack
13
 
14
  def forward(self, x):
15
  x = self.net(x)