Context of the issue.
I'm getting discrepancies on your nn4.small2.v1.t7 model related to the Inception(3a) layer. The actual model posted to your website does not match up with your GitHub definition.
Expected behavior.
According to your definition, on line 67 you have pool = nn.SpatialMaxPooling(3, 3, 1, 1, 1, 1), indicating parameters:
kW=3
kH=3
dW=1
dH=1
pW=1
pH=1
Actual behavior.
When I actually load and print the model from your website on Torch, I get different numbers:
nn.Sequential {
[input -> (1) -> (2) -> (3) -> (4) -> (5) -> (6) -> (7) -> (8) -> (9) -> (10) -> (11) -> (12) -> (13) -> (14) -> (15) -> (16) -> (17) -> (18) -> (19) -> (20) -> (21) -> (22) -> (23) -> (24) -> (25) -> (26) -> output]
(1): nn.SpatialConvolutionMM(3 -> 64, 7x7, 2,2, 3,3)
(2): nn.SpatialBatchNormalization (4D) (64)
(3): nn.ReLU
(4): nn.SpatialMaxPooling(3x3, 2,2, 1,1)
(5): nn.SpatialCrossMapLRN
(6): nn.SpatialConvolutionMM(64 -> 64, 1x1)
(7): nn.SpatialBatchNormalization (4D) (64)
(8): nn.ReLU
(9): nn.SpatialConvolutionMM(64 -> 192, 3x3, 1,1, 1,1)
(10): nn.SpatialBatchNormalization (4D) (192)
(11): nn.ReLU
(12): nn.SpatialCrossMapLRN
(13): nn.SpatialMaxPooling(3x3, 2,2, 1,1)
(14): nn.Inception @ nn.DepthConcat {
input
|`-> (1): nn.Sequential {
| [input -> (1) -> (2) -> (3) -> (4) -> (5) -> (6) -> output]
| (1): nn.SpatialConvolution(192 -> 96, 1x1)
| (2): nn.SpatialBatchNormalization (4D) (96)
| (3): nn.ReLU
| (4): nn.SpatialConvolution(96 -> 128, 3x3, 1,1, 1,1)
| (5): nn.SpatialBatchNormalization (4D) (128)
| (6): nn.ReLU
| }
|`-> (2): nn.Sequential {
| [input -> (1) -> (2) -> (3) -> (4) -> (5) -> (6) -> output]
| (1): nn.SpatialConvolution(192 -> 16, 1x1)
| (2): nn.SpatialBatchNormalization (4D) (16)
| (3): nn.ReLU
| (4): nn.SpatialConvolution(16 -> 32, 5x5, 1,1, 2,2)
| (5): nn.SpatialBatchNormalization (4D) (32)
| (6): nn.ReLU
| }
|`-> (3): nn.Sequential {
| [input -> (1) -> (2) -> (3) -> (4) -> output]
| (1): nn.SpatialMaxPooling(3x3, 2,2)
.
.
.
Where nn.SpatialMaxPooling:
kW = 3
kH = 3
dW = 2
dH = 2
padW = 0
padH = 0
The error may be occuring on other layers too, but I haven't had time to check yet.
Steps to reproduce.
#!/usr/bin/env th
require 'torch'
require 'nn'
require 'dpnn'
torch.setdefaulttensortype('torch.FloatTensor')
local net = torch.load('/path/to/nn4.small2.v1.t7'):float()
print(net)
OS and hardware information.
- Operating system: Ubuntu 16.04 LTS
- Torch version: 7
Context of the issue.
I'm getting discrepancies on your
nn4.small2.v1.t7model related to the Inception(3a) layer. The actual model posted to your website does not match up with your GitHub definition.Expected behavior.
According to your definition, on line 67 you have
pool = nn.SpatialMaxPooling(3, 3, 1, 1, 1, 1), indicating parameters:Actual behavior.
When I actually load and print the model from your website on Torch, I get different numbers:
Where nn.SpatialMaxPooling:
The error may be occuring on other layers too, but I haven't had time to check yet.
Steps to reproduce.
OS and hardware information.