From 5c389b78b93edbaffc1ffdb18ef851ce253f167d Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Sat, 24 Jun 2017 00:12:14 +0200 Subject: [PATCH] Making DeepNet even bigger. --- cnn-svrt.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cnn-svrt.py b/cnn-svrt.py index fb1cad9..4481049 100755 --- a/cnn-svrt.py +++ b/cnn-svrt.py @@ -223,11 +223,11 @@ class DeepNet2(nn.Module): def __init__(self): super(DeepNet2, self).__init__() self.conv1 = nn.Conv2d( 1, 32, kernel_size=7, stride=4, padding=3) - self.conv2 = nn.Conv2d( 32, 128, kernel_size=5, padding=2) - self.conv3 = nn.Conv2d(128, 128, kernel_size=3, padding=1) - self.conv4 = nn.Conv2d(128, 128, kernel_size=3, padding=1) - self.conv5 = nn.Conv2d(128, 128, kernel_size=3, padding=1) - self.fc1 = nn.Linear(2048, 512) + self.conv2 = nn.Conv2d( 32, 256, kernel_size=5, padding=2) + self.conv3 = nn.Conv2d(256, 256, kernel_size=3, padding=1) + self.conv4 = nn.Conv2d(256, 256, kernel_size=3, padding=1) + self.conv5 = nn.Conv2d(256, 256, kernel_size=3, padding=1) + self.fc1 = nn.Linear(4096, 512) self.fc2 = nn.Linear(512, 512) self.fc3 = nn.Linear(512, 2) @@ -250,7 +250,7 @@ class DeepNet2(nn.Module): x = fn.max_pool2d(x, kernel_size=2) x = fn.relu(x) - x = x.view(-1, 2048) + x = x.view(-1, 4096) x = self.fc1(x) x = fn.relu(x) -- 2.39.5