Skip to content

Commit 71d233c

Browse files
typo in model structure
- the final model structure uses 3 channel input. - no data transformation was done to transform input images from 3 channel (RGB) to 1 channel (Grayscale).
1 parent 2793639 commit 71d233c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: beginner_source/introyt/introyt1_tutorial.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,9 @@ class LeNet(nn.Module):
176176

177177
def __init__(self):
178178
super(LeNet, self).__init__()
179-
# 1 input image channel (black & white), 6 output channels, 5x5 square convolution
179+
# 3 input image channel (RGB image), 6 output channels, 5x5 square convolution
180180
# kernel
181-
self.conv1 = nn.Conv2d(1, 6, 5)
181+
self.conv1 = nn.Conv2d(3, 6, 5)
182182
self.conv2 = nn.Conv2d(6, 16, 5)
183183
# an affine operation: y = Wx + b
184184
self.fc1 = nn.Linear(16 * 5 * 5, 120) # 5*5 from image dimension

0 commit comments

Comments
 (0)