Example #1
0
 def __init__(self, with_bp=True):
     super(CP, self).__init__(
         #conv1  = LX.Convolution2DCP(  1, 32, 5, with_bp=with_bp),
         conv1s=LX.Convolution2DCP(1, 32, 3, with_bp=with_bp),
         conv2=LX.Convolution2DCP(32, 256, 5, with_bp=with_bp, pad=1),
         conv2s=LX.Convolution2DCP(32, 256, 3, with_bp=with_bp),
     )
Example #2
0
 def __init__(self, with_bp=True):
     super(CP, self).__init__(
         #conv1  = LX.Convolution2DCP(  3, 128, 5, with_bp=with_bp),
         conv1s=LX.Convolution2DCP(3, 128, 3, with_bp=with_bp),
         #conv2l = LX.Convolution2DCP(128, 128, 7, with_bp=with_bp, pad=2),
         conv2=LX.Convolution2DCP(128, 128, 5, with_bp=with_bp, pad=1),
         conv2s=LX.Convolution2DCP(128, 128, 3, with_bp=with_bp),
     )
Example #3
0
 def __init__(self, with_bp=True):
     super(CP, self).__init__(
         conv1xl=LX.Convolution2DCP(3,
                                    256,
                                    11,
                                    stride=4,
                                    pad=1,
                                    with_bp=with_bp),
         conv1=LX.Convolution2DCP(3, 256, 9, stride=4, with_bp=with_bp),
         conv1m=LX.Convolution2DCP(3, 256, 7, stride=4, with_bp=with_bp),
         conv1s=LX.Convolution2DCP(3, 256, 5, stride=4, with_bp=with_bp),
         conv1xs=LX.Convolution2DCP(3, 256, 3, stride=4, with_bp=with_bp),
         conv2=LX.Convolution2DCP(1280, 1024, 5, pad=1, with_bp=with_bp),
         conv2s=LX.Convolution2DCP(1280, 1024, 3, with_bp=with_bp),
         conv3=LX.Convolution2DCP(2048, 1024, 5, pad=1, with_bp=with_bp),
         conv3s=LX.Convolution2DCP(2048, 1024, 3, with_bp=with_bp),
     )
     self.insize = 227