From 9ee9a775ccd2391990b3ab226e73c86bd19bd36a Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Fri, 30 Jun 2017 10:47:43 +0200 Subject: [PATCH] And fix ... --- cnn-svrt.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cnn-svrt.py b/cnn-svrt.py index fab2772..7dc6dff 100755 --- a/cnn-svrt.py +++ b/cnn-svrt.py @@ -250,10 +250,10 @@ class DeepNet2(nn.Module): super(DeepNet2, self).__init__() self.nb_channels = 512 self.conv1 = nn.Conv2d( 1, 32, kernel_size=7, stride=4, padding=3) - self.conv2 = nn.Conv2d( 32, nb_channels, kernel_size=5, padding=2) - self.conv3 = nn.Conv2d(nb_channels, nb_channels, kernel_size=3, padding=1) - self.conv4 = nn.Conv2d(nb_channels, nb_channels, kernel_size=3, padding=1) - self.conv5 = nn.Conv2d(nb_channels, nb_channels, kernel_size=3, padding=1) + self.conv2 = nn.Conv2d( 32, self.nb_channels, kernel_size=5, padding=2) + self.conv3 = nn.Conv2d(self.nb_channels, self.nb_channels, kernel_size=3, padding=1) + self.conv4 = nn.Conv2d(self.nb_channels, self.nb_channels, kernel_size=3, padding=1) + self.conv5 = nn.Conv2d(self.nb_channels, self.nb_channels, kernel_size=3, padding=1) self.fc1 = nn.Linear(16 * self.nb_channels, 512) self.fc2 = nn.Linear(512, 512) self.fc3 = nn.Linear(512, 2) -- 2.39.5