How to interpert ResNet50 Layer TypesHow does strided deconvolution works?How to user Keras's Embedding Layer properly?1x1 convolutionNeural net layer that preserves spatial informationHow to understand conv layer to another same conv layer in VGG16?What does depth mean in the SqueezeNet architectural dimensions table?How can this CNN for the portfolio management problem be implemented in keras?Do the filters in deconvolution layer same as filters in convolution?hidden layer weights calculationQuestion about “1x3 and 3x1 conv is equivalent to 3x3 conv”

Do I need an EFI partition for each 18.04 ubuntu I have on my HD?

Writing in a Christian voice

When did hardware antialiasing start being available?

Should I be concerned about student access to a test bank?

How to find the largest number(s) in a list of elements, possibly non-unique?

Why doesn't Gödel's incompleteness theorem apply to false statements?

Error in master's thesis, I do not know what to do

Output visual diagram of picture

What are the consequences of changing the number of hours in a day?

What is the tangent at a sharp point on a curve?

Is it okay for a cleric of life to use spells like Animate Dead and/or Contagion?

Are hand made posters acceptable in Academia?

Does fire aspect on a sword, destroy mob drops?

Naïve RSA decryption in Python

Air travel with refrigerated insulin

What (if any) is the reason to buy in small local stores?

categorizing a variable turns it from insignificant to significant

Why didn’t Eve recognize the little cockroach as a living organism?

How can a new country break out from a developed country without war?

Jem'Hadar, something strange about their life expectancy

PTIJ: Which Dr. Seuss books should one obtain?

Are stably rational surfaces all rational?

Why is indicated airspeed rather than ground speed used during the takeoff roll?

How do researchers send unsolicited emails asking for feedback on their works?



How to interpert ResNet50 Layer Types


How does strided deconvolution works?How to user Keras's Embedding Layer properly?1x1 convolutionNeural net layer that preserves spatial informationHow to understand conv layer to another same conv layer in VGG16?What does depth mean in the SqueezeNet architectural dimensions table?How can this CNN for the portfolio management problem be implemented in keras?Do the filters in deconvolution layer same as filters in convolution?hidden layer weights calculationQuestion about “1x3 and 3x1 conv is equivalent to 3x3 conv”













1












$begingroup$


I am trying to recreate the ResNet50 from scratch, but I don't quite understand how to interpret the matrices for the layers.



enter image description here



For instance:
[[1x1,64]
[3x3, 64]
[1x1, 4]] x 3



I know it's supposed to be a convolution layer but what do each of the numbers represent?










share|improve this question









$endgroup$
















    1












    $begingroup$


    I am trying to recreate the ResNet50 from scratch, but I don't quite understand how to interpret the matrices for the layers.



    enter image description here



    For instance:
    [[1x1,64]
    [3x3, 64]
    [1x1, 4]] x 3



    I know it's supposed to be a convolution layer but what do each of the numbers represent?










    share|improve this question









    $endgroup$














      1












      1








      1





      $begingroup$


      I am trying to recreate the ResNet50 from scratch, but I don't quite understand how to interpret the matrices for the layers.



      enter image description here



      For instance:
      [[1x1,64]
      [3x3, 64]
      [1x1, 4]] x 3



      I know it's supposed to be a convolution layer but what do each of the numbers represent?










      share|improve this question









      $endgroup$




      I am trying to recreate the ResNet50 from scratch, but I don't quite understand how to interpret the matrices for the layers.



      enter image description here



      For instance:
      [[1x1,64]
      [3x3, 64]
      [1x1, 4]] x 3



      I know it's supposed to be a convolution layer but what do each of the numbers represent?







      deep-learning keras






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jun 12 '18 at 12:19









      Rediculously SoutragesRediculously Soutrages

      162




      162




















          3 Answers
          3






          active

          oldest

          votes


















          1












          $begingroup$

          In order to make the explanation clear I will use the example of 34-layers:



          enter image description here



          • First you have a convolutional layer with 64 filters and kernel size of 7x7 (conv1 in your table) followed by a max pooling layer. Note that the stride is specified to be stride = 2 in both cases.



          • Next, in conv2_x you have the mentioned pooling layer and the following convolution layers. Here the layers are normally grouped in pairs (trios in bigger architectures) because is how the residuals are connected (the arrows jumping each two layers). The first matrix:



            beginequationbeginbmatrix
            3x3, & 64 \
            3x3, & 64
            endbmatrix*3endequation



          means that you have 2 layers of kernel_size = 3x3, num_filters = 64 and these are repeated x3. These correspond to the layers between pool,/2 and the filter 128 ones, 6 layers in total (one pair times 3).




          • Following, we have conv3_x:



            beginequationbeginbmatrix
            3x3, & 128 \
            3x3, & 128
            endbmatrix*4endequation



          2 layers of kernel_size = 3x3, num_filters = 128 and these are also repeated but on this occasion times 4. These are the following 8 green layers in the figure.



          This continues until the avg_pooling and the softmax.



          Be aware that the stride is always 1 except when the filter size increases. This is discusssed in the paper:




          Plain Network: Our plain baselines are
          mainly inspired by the philosophy of VGG nets. The convolutional layers mostly have 3×3 filters and
          follow two simple design rules: (i) for the same output
          feature map size, the layers have the same number of filters;
          and (ii) if the feature map size is halved, the number
          of filters is doubled so as to preserve the time complexity
          per layer. We perform downsampling directly by
          convolutional layers that have a stride of 2.



          Residual Networks: The baseline architectures
          are the same as the above plain nets, expect that a shortcut
          connection is added to each pair of 3×3 filters.




          That is why, each time the number of filters is doubled you will see that the first layer of a different colour specifies num_filters/2.






          share|improve this answer









          $endgroup$












          • $begingroup$
            Can you elaborate as to why ResNet-34 and ResNet-50 both define their architecture using the same number of convolutional blocks for each layer? They both define them as [3, 4, 6, 3]. Why is this and how does the architecture differ?
            $endgroup$
            – Joey Carson
            Jan 1 at 21:26



















          1












          $begingroup$

          Your example doesn't refer to a convolutional layer, but a stack of convolutional layers that create a residual block.



          Per Table 1 in the original paper, here is an example residual block with some notation:



          $[textN x N, C_1atoptextM x M, C_2] text x L $



          • $textN x N$ and $textM x M$ specify the size of the kernel used in that layer. In the paper the authors call them filters.

          • $textC_1$ and $textC_2$ refer to the number of channels in that convolutional layer.

          • $textL$ is the number of times this block is repeated for that residual layer.

          Good luck, hope this helps!






          share|improve this answer









          $endgroup$












          • $begingroup$
            Is there a specific way I'm supposed to make this using something like Keras? Or is it just as simple as: cnnModel.add(Conv2D( kernel_size= (3,3), input_shape=(256,256,3), filters = 64,)) cnnModel.add(Conv2D( kernel_size= (3,3), input_shape=(256,256,3), filters = 64,)) cnnModel.add(Conv2D( kernel_size= (3,3), input_shape=(256,256,3), filters = 64,)) cnnModel.add(Conv2D( kernel_size= (3,3), input_shape=(256,256,3), filters = 64,))
            $endgroup$
            – Rediculously Soutrages
            Jun 13 '18 at 19:56











          • $begingroup$
            That table glosses a lot of implementation detail. For example, and as TitoOrt mentions below, the first layer of each new block requires a stride of 2 to halve the feature map from the previous block. Additionally, you have to add the input of the residual block to its output, which is the piece that makes this a residual network and not just a convolutional neural network. If you're intent on trying to do it from scratch, all I can say is read the paper very closely. If you're new to Keras to boot, I'd suggest looking at some of tutorials on building neural nets in Keras.
            $endgroup$
            – tm1212
            Jun 13 '18 at 20:20











          • $begingroup$
            Have a look at how resnet* are defined in Kerala docs itself, they use different block funds and then seive them together!
            $endgroup$
            – Aditya
            Sep 11 '18 at 1:48


















          0












          $begingroup$

          I hope this notebook will help you to understand better. The implementation is in Keras so it's quick grasp!






          share|improve this answer









          $endgroup$












            Your Answer





            StackExchange.ifUsing("editor", function ()
            return StackExchange.using("mathjaxEditing", function ()
            StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
            StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
            );
            );
            , "mathjax-editing");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "557"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f33022%2fhow-to-interpert-resnet50-layer-types%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            3 Answers
            3






            active

            oldest

            votes








            3 Answers
            3






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            1












            $begingroup$

            In order to make the explanation clear I will use the example of 34-layers:



            enter image description here



            • First you have a convolutional layer with 64 filters and kernel size of 7x7 (conv1 in your table) followed by a max pooling layer. Note that the stride is specified to be stride = 2 in both cases.



            • Next, in conv2_x you have the mentioned pooling layer and the following convolution layers. Here the layers are normally grouped in pairs (trios in bigger architectures) because is how the residuals are connected (the arrows jumping each two layers). The first matrix:



              beginequationbeginbmatrix
              3x3, & 64 \
              3x3, & 64
              endbmatrix*3endequation



            means that you have 2 layers of kernel_size = 3x3, num_filters = 64 and these are repeated x3. These correspond to the layers between pool,/2 and the filter 128 ones, 6 layers in total (one pair times 3).




            • Following, we have conv3_x:



              beginequationbeginbmatrix
              3x3, & 128 \
              3x3, & 128
              endbmatrix*4endequation



            2 layers of kernel_size = 3x3, num_filters = 128 and these are also repeated but on this occasion times 4. These are the following 8 green layers in the figure.



            This continues until the avg_pooling and the softmax.



            Be aware that the stride is always 1 except when the filter size increases. This is discusssed in the paper:




            Plain Network: Our plain baselines are
            mainly inspired by the philosophy of VGG nets. The convolutional layers mostly have 3×3 filters and
            follow two simple design rules: (i) for the same output
            feature map size, the layers have the same number of filters;
            and (ii) if the feature map size is halved, the number
            of filters is doubled so as to preserve the time complexity
            per layer. We perform downsampling directly by
            convolutional layers that have a stride of 2.



            Residual Networks: The baseline architectures
            are the same as the above plain nets, expect that a shortcut
            connection is added to each pair of 3×3 filters.




            That is why, each time the number of filters is doubled you will see that the first layer of a different colour specifies num_filters/2.






            share|improve this answer









            $endgroup$












            • $begingroup$
              Can you elaborate as to why ResNet-34 and ResNet-50 both define their architecture using the same number of convolutional blocks for each layer? They both define them as [3, 4, 6, 3]. Why is this and how does the architecture differ?
              $endgroup$
              – Joey Carson
              Jan 1 at 21:26
















            1












            $begingroup$

            In order to make the explanation clear I will use the example of 34-layers:



            enter image description here



            • First you have a convolutional layer with 64 filters and kernel size of 7x7 (conv1 in your table) followed by a max pooling layer. Note that the stride is specified to be stride = 2 in both cases.



            • Next, in conv2_x you have the mentioned pooling layer and the following convolution layers. Here the layers are normally grouped in pairs (trios in bigger architectures) because is how the residuals are connected (the arrows jumping each two layers). The first matrix:



              beginequationbeginbmatrix
              3x3, & 64 \
              3x3, & 64
              endbmatrix*3endequation



            means that you have 2 layers of kernel_size = 3x3, num_filters = 64 and these are repeated x3. These correspond to the layers between pool,/2 and the filter 128 ones, 6 layers in total (one pair times 3).




            • Following, we have conv3_x:



              beginequationbeginbmatrix
              3x3, & 128 \
              3x3, & 128
              endbmatrix*4endequation



            2 layers of kernel_size = 3x3, num_filters = 128 and these are also repeated but on this occasion times 4. These are the following 8 green layers in the figure.



            This continues until the avg_pooling and the softmax.



            Be aware that the stride is always 1 except when the filter size increases. This is discusssed in the paper:




            Plain Network: Our plain baselines are
            mainly inspired by the philosophy of VGG nets. The convolutional layers mostly have 3×3 filters and
            follow two simple design rules: (i) for the same output
            feature map size, the layers have the same number of filters;
            and (ii) if the feature map size is halved, the number
            of filters is doubled so as to preserve the time complexity
            per layer. We perform downsampling directly by
            convolutional layers that have a stride of 2.



            Residual Networks: The baseline architectures
            are the same as the above plain nets, expect that a shortcut
            connection is added to each pair of 3×3 filters.




            That is why, each time the number of filters is doubled you will see that the first layer of a different colour specifies num_filters/2.






            share|improve this answer









            $endgroup$












            • $begingroup$
              Can you elaborate as to why ResNet-34 and ResNet-50 both define their architecture using the same number of convolutional blocks for each layer? They both define them as [3, 4, 6, 3]. Why is this and how does the architecture differ?
              $endgroup$
              – Joey Carson
              Jan 1 at 21:26














            1












            1








            1





            $begingroup$

            In order to make the explanation clear I will use the example of 34-layers:



            enter image description here



            • First you have a convolutional layer with 64 filters and kernel size of 7x7 (conv1 in your table) followed by a max pooling layer. Note that the stride is specified to be stride = 2 in both cases.



            • Next, in conv2_x you have the mentioned pooling layer and the following convolution layers. Here the layers are normally grouped in pairs (trios in bigger architectures) because is how the residuals are connected (the arrows jumping each two layers). The first matrix:



              beginequationbeginbmatrix
              3x3, & 64 \
              3x3, & 64
              endbmatrix*3endequation



            means that you have 2 layers of kernel_size = 3x3, num_filters = 64 and these are repeated x3. These correspond to the layers between pool,/2 and the filter 128 ones, 6 layers in total (one pair times 3).




            • Following, we have conv3_x:



              beginequationbeginbmatrix
              3x3, & 128 \
              3x3, & 128
              endbmatrix*4endequation



            2 layers of kernel_size = 3x3, num_filters = 128 and these are also repeated but on this occasion times 4. These are the following 8 green layers in the figure.



            This continues until the avg_pooling and the softmax.



            Be aware that the stride is always 1 except when the filter size increases. This is discusssed in the paper:




            Plain Network: Our plain baselines are
            mainly inspired by the philosophy of VGG nets. The convolutional layers mostly have 3×3 filters and
            follow two simple design rules: (i) for the same output
            feature map size, the layers have the same number of filters;
            and (ii) if the feature map size is halved, the number
            of filters is doubled so as to preserve the time complexity
            per layer. We perform downsampling directly by
            convolutional layers that have a stride of 2.



            Residual Networks: The baseline architectures
            are the same as the above plain nets, expect that a shortcut
            connection is added to each pair of 3×3 filters.




            That is why, each time the number of filters is doubled you will see that the first layer of a different colour specifies num_filters/2.






            share|improve this answer









            $endgroup$



            In order to make the explanation clear I will use the example of 34-layers:



            enter image description here



            • First you have a convolutional layer with 64 filters and kernel size of 7x7 (conv1 in your table) followed by a max pooling layer. Note that the stride is specified to be stride = 2 in both cases.



            • Next, in conv2_x you have the mentioned pooling layer and the following convolution layers. Here the layers are normally grouped in pairs (trios in bigger architectures) because is how the residuals are connected (the arrows jumping each two layers). The first matrix:



              beginequationbeginbmatrix
              3x3, & 64 \
              3x3, & 64
              endbmatrix*3endequation



            means that you have 2 layers of kernel_size = 3x3, num_filters = 64 and these are repeated x3. These correspond to the layers between pool,/2 and the filter 128 ones, 6 layers in total (one pair times 3).




            • Following, we have conv3_x:



              beginequationbeginbmatrix
              3x3, & 128 \
              3x3, & 128
              endbmatrix*4endequation



            2 layers of kernel_size = 3x3, num_filters = 128 and these are also repeated but on this occasion times 4. These are the following 8 green layers in the figure.



            This continues until the avg_pooling and the softmax.



            Be aware that the stride is always 1 except when the filter size increases. This is discusssed in the paper:




            Plain Network: Our plain baselines are
            mainly inspired by the philosophy of VGG nets. The convolutional layers mostly have 3×3 filters and
            follow two simple design rules: (i) for the same output
            feature map size, the layers have the same number of filters;
            and (ii) if the feature map size is halved, the number
            of filters is doubled so as to preserve the time complexity
            per layer. We perform downsampling directly by
            convolutional layers that have a stride of 2.



            Residual Networks: The baseline architectures
            are the same as the above plain nets, expect that a shortcut
            connection is added to each pair of 3×3 filters.




            That is why, each time the number of filters is doubled you will see that the first layer of a different colour specifies num_filters/2.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jun 12 '18 at 13:45









            TitoOrtTitoOrt

            762215




            762215











            • $begingroup$
              Can you elaborate as to why ResNet-34 and ResNet-50 both define their architecture using the same number of convolutional blocks for each layer? They both define them as [3, 4, 6, 3]. Why is this and how does the architecture differ?
              $endgroup$
              – Joey Carson
              Jan 1 at 21:26

















            • $begingroup$
              Can you elaborate as to why ResNet-34 and ResNet-50 both define their architecture using the same number of convolutional blocks for each layer? They both define them as [3, 4, 6, 3]. Why is this and how does the architecture differ?
              $endgroup$
              – Joey Carson
              Jan 1 at 21:26
















            $begingroup$
            Can you elaborate as to why ResNet-34 and ResNet-50 both define their architecture using the same number of convolutional blocks for each layer? They both define them as [3, 4, 6, 3]. Why is this and how does the architecture differ?
            $endgroup$
            – Joey Carson
            Jan 1 at 21:26





            $begingroup$
            Can you elaborate as to why ResNet-34 and ResNet-50 both define their architecture using the same number of convolutional blocks for each layer? They both define them as [3, 4, 6, 3]. Why is this and how does the architecture differ?
            $endgroup$
            – Joey Carson
            Jan 1 at 21:26












            1












            $begingroup$

            Your example doesn't refer to a convolutional layer, but a stack of convolutional layers that create a residual block.



            Per Table 1 in the original paper, here is an example residual block with some notation:



            $[textN x N, C_1atoptextM x M, C_2] text x L $



            • $textN x N$ and $textM x M$ specify the size of the kernel used in that layer. In the paper the authors call them filters.

            • $textC_1$ and $textC_2$ refer to the number of channels in that convolutional layer.

            • $textL$ is the number of times this block is repeated for that residual layer.

            Good luck, hope this helps!






            share|improve this answer









            $endgroup$












            • $begingroup$
              Is there a specific way I'm supposed to make this using something like Keras? Or is it just as simple as: cnnModel.add(Conv2D( kernel_size= (3,3), input_shape=(256,256,3), filters = 64,)) cnnModel.add(Conv2D( kernel_size= (3,3), input_shape=(256,256,3), filters = 64,)) cnnModel.add(Conv2D( kernel_size= (3,3), input_shape=(256,256,3), filters = 64,)) cnnModel.add(Conv2D( kernel_size= (3,3), input_shape=(256,256,3), filters = 64,))
              $endgroup$
              – Rediculously Soutrages
              Jun 13 '18 at 19:56











            • $begingroup$
              That table glosses a lot of implementation detail. For example, and as TitoOrt mentions below, the first layer of each new block requires a stride of 2 to halve the feature map from the previous block. Additionally, you have to add the input of the residual block to its output, which is the piece that makes this a residual network and not just a convolutional neural network. If you're intent on trying to do it from scratch, all I can say is read the paper very closely. If you're new to Keras to boot, I'd suggest looking at some of tutorials on building neural nets in Keras.
              $endgroup$
              – tm1212
              Jun 13 '18 at 20:20











            • $begingroup$
              Have a look at how resnet* are defined in Kerala docs itself, they use different block funds and then seive them together!
              $endgroup$
              – Aditya
              Sep 11 '18 at 1:48















            1












            $begingroup$

            Your example doesn't refer to a convolutional layer, but a stack of convolutional layers that create a residual block.



            Per Table 1 in the original paper, here is an example residual block with some notation:



            $[textN x N, C_1atoptextM x M, C_2] text x L $



            • $textN x N$ and $textM x M$ specify the size of the kernel used in that layer. In the paper the authors call them filters.

            • $textC_1$ and $textC_2$ refer to the number of channels in that convolutional layer.

            • $textL$ is the number of times this block is repeated for that residual layer.

            Good luck, hope this helps!






            share|improve this answer









            $endgroup$












            • $begingroup$
              Is there a specific way I'm supposed to make this using something like Keras? Or is it just as simple as: cnnModel.add(Conv2D( kernel_size= (3,3), input_shape=(256,256,3), filters = 64,)) cnnModel.add(Conv2D( kernel_size= (3,3), input_shape=(256,256,3), filters = 64,)) cnnModel.add(Conv2D( kernel_size= (3,3), input_shape=(256,256,3), filters = 64,)) cnnModel.add(Conv2D( kernel_size= (3,3), input_shape=(256,256,3), filters = 64,))
              $endgroup$
              – Rediculously Soutrages
              Jun 13 '18 at 19:56











            • $begingroup$
              That table glosses a lot of implementation detail. For example, and as TitoOrt mentions below, the first layer of each new block requires a stride of 2 to halve the feature map from the previous block. Additionally, you have to add the input of the residual block to its output, which is the piece that makes this a residual network and not just a convolutional neural network. If you're intent on trying to do it from scratch, all I can say is read the paper very closely. If you're new to Keras to boot, I'd suggest looking at some of tutorials on building neural nets in Keras.
              $endgroup$
              – tm1212
              Jun 13 '18 at 20:20











            • $begingroup$
              Have a look at how resnet* are defined in Kerala docs itself, they use different block funds and then seive them together!
              $endgroup$
              – Aditya
              Sep 11 '18 at 1:48













            1












            1








            1





            $begingroup$

            Your example doesn't refer to a convolutional layer, but a stack of convolutional layers that create a residual block.



            Per Table 1 in the original paper, here is an example residual block with some notation:



            $[textN x N, C_1atoptextM x M, C_2] text x L $



            • $textN x N$ and $textM x M$ specify the size of the kernel used in that layer. In the paper the authors call them filters.

            • $textC_1$ and $textC_2$ refer to the number of channels in that convolutional layer.

            • $textL$ is the number of times this block is repeated for that residual layer.

            Good luck, hope this helps!






            share|improve this answer









            $endgroup$



            Your example doesn't refer to a convolutional layer, but a stack of convolutional layers that create a residual block.



            Per Table 1 in the original paper, here is an example residual block with some notation:



            $[textN x N, C_1atoptextM x M, C_2] text x L $



            • $textN x N$ and $textM x M$ specify the size of the kernel used in that layer. In the paper the authors call them filters.

            • $textC_1$ and $textC_2$ refer to the number of channels in that convolutional layer.

            • $textL$ is the number of times this block is repeated for that residual layer.

            Good luck, hope this helps!







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jun 12 '18 at 13:45









            tm1212tm1212

            4657




            4657











            • $begingroup$
              Is there a specific way I'm supposed to make this using something like Keras? Or is it just as simple as: cnnModel.add(Conv2D( kernel_size= (3,3), input_shape=(256,256,3), filters = 64,)) cnnModel.add(Conv2D( kernel_size= (3,3), input_shape=(256,256,3), filters = 64,)) cnnModel.add(Conv2D( kernel_size= (3,3), input_shape=(256,256,3), filters = 64,)) cnnModel.add(Conv2D( kernel_size= (3,3), input_shape=(256,256,3), filters = 64,))
              $endgroup$
              – Rediculously Soutrages
              Jun 13 '18 at 19:56











            • $begingroup$
              That table glosses a lot of implementation detail. For example, and as TitoOrt mentions below, the first layer of each new block requires a stride of 2 to halve the feature map from the previous block. Additionally, you have to add the input of the residual block to its output, which is the piece that makes this a residual network and not just a convolutional neural network. If you're intent on trying to do it from scratch, all I can say is read the paper very closely. If you're new to Keras to boot, I'd suggest looking at some of tutorials on building neural nets in Keras.
              $endgroup$
              – tm1212
              Jun 13 '18 at 20:20











            • $begingroup$
              Have a look at how resnet* are defined in Kerala docs itself, they use different block funds and then seive them together!
              $endgroup$
              – Aditya
              Sep 11 '18 at 1:48
















            • $begingroup$
              Is there a specific way I'm supposed to make this using something like Keras? Or is it just as simple as: cnnModel.add(Conv2D( kernel_size= (3,3), input_shape=(256,256,3), filters = 64,)) cnnModel.add(Conv2D( kernel_size= (3,3), input_shape=(256,256,3), filters = 64,)) cnnModel.add(Conv2D( kernel_size= (3,3), input_shape=(256,256,3), filters = 64,)) cnnModel.add(Conv2D( kernel_size= (3,3), input_shape=(256,256,3), filters = 64,))
              $endgroup$
              – Rediculously Soutrages
              Jun 13 '18 at 19:56











            • $begingroup$
              That table glosses a lot of implementation detail. For example, and as TitoOrt mentions below, the first layer of each new block requires a stride of 2 to halve the feature map from the previous block. Additionally, you have to add the input of the residual block to its output, which is the piece that makes this a residual network and not just a convolutional neural network. If you're intent on trying to do it from scratch, all I can say is read the paper very closely. If you're new to Keras to boot, I'd suggest looking at some of tutorials on building neural nets in Keras.
              $endgroup$
              – tm1212
              Jun 13 '18 at 20:20











            • $begingroup$
              Have a look at how resnet* are defined in Kerala docs itself, they use different block funds and then seive them together!
              $endgroup$
              – Aditya
              Sep 11 '18 at 1:48















            $begingroup$
            Is there a specific way I'm supposed to make this using something like Keras? Or is it just as simple as: cnnModel.add(Conv2D( kernel_size= (3,3), input_shape=(256,256,3), filters = 64,)) cnnModel.add(Conv2D( kernel_size= (3,3), input_shape=(256,256,3), filters = 64,)) cnnModel.add(Conv2D( kernel_size= (3,3), input_shape=(256,256,3), filters = 64,)) cnnModel.add(Conv2D( kernel_size= (3,3), input_shape=(256,256,3), filters = 64,))
            $endgroup$
            – Rediculously Soutrages
            Jun 13 '18 at 19:56





            $begingroup$
            Is there a specific way I'm supposed to make this using something like Keras? Or is it just as simple as: cnnModel.add(Conv2D( kernel_size= (3,3), input_shape=(256,256,3), filters = 64,)) cnnModel.add(Conv2D( kernel_size= (3,3), input_shape=(256,256,3), filters = 64,)) cnnModel.add(Conv2D( kernel_size= (3,3), input_shape=(256,256,3), filters = 64,)) cnnModel.add(Conv2D( kernel_size= (3,3), input_shape=(256,256,3), filters = 64,))
            $endgroup$
            – Rediculously Soutrages
            Jun 13 '18 at 19:56













            $begingroup$
            That table glosses a lot of implementation detail. For example, and as TitoOrt mentions below, the first layer of each new block requires a stride of 2 to halve the feature map from the previous block. Additionally, you have to add the input of the residual block to its output, which is the piece that makes this a residual network and not just a convolutional neural network. If you're intent on trying to do it from scratch, all I can say is read the paper very closely. If you're new to Keras to boot, I'd suggest looking at some of tutorials on building neural nets in Keras.
            $endgroup$
            – tm1212
            Jun 13 '18 at 20:20





            $begingroup$
            That table glosses a lot of implementation detail. For example, and as TitoOrt mentions below, the first layer of each new block requires a stride of 2 to halve the feature map from the previous block. Additionally, you have to add the input of the residual block to its output, which is the piece that makes this a residual network and not just a convolutional neural network. If you're intent on trying to do it from scratch, all I can say is read the paper very closely. If you're new to Keras to boot, I'd suggest looking at some of tutorials on building neural nets in Keras.
            $endgroup$
            – tm1212
            Jun 13 '18 at 20:20













            $begingroup$
            Have a look at how resnet* are defined in Kerala docs itself, they use different block funds and then seive them together!
            $endgroup$
            – Aditya
            Sep 11 '18 at 1:48




            $begingroup$
            Have a look at how resnet* are defined in Kerala docs itself, they use different block funds and then seive them together!
            $endgroup$
            – Aditya
            Sep 11 '18 at 1:48











            0












            $begingroup$

            I hope this notebook will help you to understand better. The implementation is in Keras so it's quick grasp!






            share|improve this answer









            $endgroup$

















              0












              $begingroup$

              I hope this notebook will help you to understand better. The implementation is in Keras so it's quick grasp!






              share|improve this answer









              $endgroup$















                0












                0








                0





                $begingroup$

                I hope this notebook will help you to understand better. The implementation is in Keras so it's quick grasp!






                share|improve this answer









                $endgroup$



                I hope this notebook will help you to understand better. The implementation is in Keras so it's quick grasp!







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered yesterday









                anuanu

                1686




                1686



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Data Science Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    Use MathJax to format equations. MathJax reference.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f33022%2fhow-to-interpert-resnet50-layer-types%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Adding axes to figuresAdding axes labels to LaTeX figuresLaTeX equivalent of ConTeXt buffersRotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?TikZ scaling graphic and adjust node position and keep font sizeNumerical conditional within tikz keys?adding axes to shapesAlign axes across subfiguresAdding figures with a certain orderLine up nested tikz enviroments or how to get rid of themAdding axes labels to LaTeX figures

                    Tähtien Talli Jäsenet | Lähteet | NavigointivalikkoSuomen Hippos – Tähtien Talli

                    Do these cracks on my tires look bad? The Next CEO of Stack OverflowDry rot tire should I replace?Having to replace tiresFishtailed so easily? Bad tires? ABS?Filling the tires with something other than air, to avoid puncture hassles?Used Michelin tires safe to install?Do these tyre cracks necessitate replacement?Rumbling noise: tires or mechanicalIs it possible to fix noisy feathered tires?Are bad winter tires still better than summer tires in winter?Torque converter failure - Related to replacing only 2 tires?Why use snow tires on all 4 wheels on 2-wheel-drive cars?