Upload model
Browse files- model.safetensors +1 -1
- modeling_lenet.py +5 -5
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 247728
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1afa15c915cfba02cf65f9fda685e845a333113fdf807050238d1d8136c8a7ec
|
| 3 |
size 247728
|
modeling_lenet.py
CHANGED
|
@@ -11,18 +11,18 @@ class LeNet(torch.nn.Module):
|
|
| 11 |
self.model = torch.nn.Sequential(
|
| 12 |
OrderedDict(
|
| 13 |
[
|
| 14 |
-
("conv1", torch.nn.
|
| 15 |
("pooling1", torch.nn.AvgPool2d(2, stride=2)),
|
| 16 |
("sigmoid1", torch.nn.Sigmoid()),
|
| 17 |
-
("conv2", torch.nn.
|
| 18 |
("pooling2", torch.nn.AvgPool2d(2, stride=2)),
|
| 19 |
("sigmoid1", torch.nn.Sigmoid()),
|
| 20 |
("flatten", torch.nn.Flatten()),
|
| 21 |
-
("dense1", torch.nn.
|
| 22 |
("sigmoid3", torch.nn.Sigmoid()),
|
| 23 |
-
("dense2", torch.nn.
|
| 24 |
("sigmoid4", torch.nn.Sigmoid()),
|
| 25 |
-
("dense3", torch.nn.
|
| 26 |
]
|
| 27 |
)
|
| 28 |
)
|
|
|
|
| 11 |
self.model = torch.nn.Sequential(
|
| 12 |
OrderedDict(
|
| 13 |
[
|
| 14 |
+
("conv1", torch.nn.Conv2d(1, 6, 5, padding=2)),
|
| 15 |
("pooling1", torch.nn.AvgPool2d(2, stride=2)),
|
| 16 |
("sigmoid1", torch.nn.Sigmoid()),
|
| 17 |
+
("conv2", torch.nn.Conv2d(6, 16, 5)),
|
| 18 |
("pooling2", torch.nn.AvgPool2d(2, stride=2)),
|
| 19 |
("sigmoid1", torch.nn.Sigmoid()),
|
| 20 |
("flatten", torch.nn.Flatten()),
|
| 21 |
+
("dense1", torch.nn.Linear(400, 120)),
|
| 22 |
("sigmoid3", torch.nn.Sigmoid()),
|
| 23 |
+
("dense2", torch.nn.Linear(120, 84)),
|
| 24 |
("sigmoid4", torch.nn.Sigmoid()),
|
| 25 |
+
("dense3", torch.nn.Linear(84, 10)),
|
| 26 |
]
|
| 27 |
)
|
| 28 |
)
|