Answers.Body: <p>I will try to do it part by part :</p>
  
  <blockquote>
    <p>We employ the residual network, which is trained on ImageNet dataset for image classication task, to extract the deep features to represent the density of the crowd.</p>
  </blockquote>
  
  <p>If you look at the figure 2, you can see that they use the Neural network architecture ResNet. This is a deep network, <a href="https://arxiv.org/pdf/1512.03385.pdf" rel="nofollow noreferrer">here</a> is the paper. It has good performance and do image classification.</p>
  
  <blockquote>
    <p>This pre-trained CNN network created a residual item for every three convolution layer to bring the layer of the network to 152</p>
  </blockquote>
  
  <p>If you are in the layer k, it means this layer has in input, the ouput of the k-3th layer. See the paper, figure 5 explains it well without much explications needed. Furthermore, Resnet has 3 different architectures wih different number of layers, and they take the deeper one, the 152 layers deep Resnet.</p>
  
  <blockquote>
    <p>We resize the image patches to the size of 224 × 224 as the input of the model and extract the output of the fc1000 layer to get the 1000 dimensional features</p>
  </blockquote>
  
  <p>The input of Resnet is images of size 224x224, so they need to resize them to fit the input requirement of Resnet. The output of Resnet is 1000 because Imagenet is a dataset of 1000 classes.</p>
  
  <blockquote>
    <p>The features are then used to train 5 layers fully connected neural network. The network's input is 1000dimensional, and the number of neurons in the network is given by 100-100-50-50-1.</p>
  </blockquote>
  
  <p>Then they give the output of Resnet to their own Network, which is 5 layer deep. See figure 2 of their paper. Obviously, the input layer has 1000 inputs because of the output of Resnet. The network have layers of 100, 100, 50 and finally 1 neuron. See figure 2.</p>
  
  <blockquote>
    <p>The network's output is the local crowd count</p>
  </blockquote>
  
  <p>I don't think I need to explain it, they want only the number of people in the crowd, so they need only one output. This is obviously not a classifcation problem, but a regression problem.</p>
  
  <p>Has you don't really point out what you don't understand, I don't explain it in details. Feel free to ask more precise question if some part are still blurred to you !</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-09-13T10:36:18.643Z
Answers.Text: Thank you very much. Actually, I also  wanted an explanation of how exactly they are using MRF for Image Counting. To be specific, I wanted to know how exactly can I implement the method described in section 3.2, Images Counting.
Answers.UserDisplayName: Ronith 
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-09-13T10:39:29.007Z
Answers.Text: @Ronith Then, maybe edit your question or ask another for this part of the paper
Answers.UserDisplayName: Jérémy Blain
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-09-13T10:40:23.017Z
Answers.Text: Okay, I'll do that in a minute.
Answers.UserDisplayName: Ronith 
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-09-13T10:53:57.323Z
Answers.Text: Check out this question: https://ai.stackexchange.com/questions/7952/doubt-regarding-research-paper. Hoping to see an answer soon.
Answers.UserDisplayName: Ronith 
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-09-11T07:44:07.353Z
Answers.LastActivityDate: 2018-09-11T07:49:36.617Z
Answers.LastEditDate: 2018-09-11T07:49:36.617Z
Answers.UserDisplayName: Jérémy Blain
Body: <p>I am currently reading the research paper <a href="https://arxiv.org/pdf/1706.03686.pdf" rel="nofollow noreferrer">Image Crowd Counting Using Convolutional Neural Network and Markov Random Field</a>  by Kang Han, Wanggen Wan, Haiyan Yao, and Li Hou. <br/>
  I did not understand the following context properly: </p>
  
  <blockquote>
    <p>We employ the residual network, which is trained on ImageNet dataset for image classication task, to extract the deep features to represent the density of the crowd. This pre-trained CNN network created a residual item for every three convolution layer to bring the layer of the network to 152. We resize the image patches to the size of 224 × 224 as the input of the model and extract the output of the fc1000 layer to get the 1000 dimensional features. The features are then used to train 5 layers fully connected neural network. The network's input is 1000dimensional, and the number of neurons in the network is given by 100-100-50-50-1. The network's output is the local crowd count</p>
  </blockquote>
  
  <p>Can anyone explain the above part in detail? </p>
  
Tags: <deep-learning><convolutional-neural-networks>
Title: Clarification regarding "Image Crowd Counting Using Convolutional Neural Network and Markov Random Field"
UserDisplayName: Ronith 
ThreadText: # Clarification regarding "Image Crowd Counting Using Convolutional Neural Network and Markov Random Field"
  
  (Asked by: username_0 on 2018-09-11)
  
  I am currently reading the research paper [Image Crowd Counting Using Convolutional Neural Network and Markov Random Field](https://arxiv.org/pdf/1706.03686.pdf) by Kang Han, Wanggen Wan, Haiyan Yao, and Li Hou.   
  I did not understand the following context properly:
  
  > We employ the residual network, which is trained on ImageNet dataset for image classication task, to extract the deep features to represent the density of the crowd. This pre-trained CNN network created a residual item for every three convolution layer to bring the layer of the network to 152. We resize the image patches to the size of 224 × 224 as the input of the model and extract the output of the fc1000 layer to get the 1000 dimensional features. The features are then used to train 5 layers fully connected neural network. The network's input is 1000dimensional, and the number of neurons in the network is given by 100-100-50-50-1. The network's output is the local crowd count
  
  Can anyone explain the above part in detail?
  
  **Tags:** deep-learning, convolutional-neural-networks
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-09-11. Score: 3 | Accepted answer
  
  I will try to do it part by part :
  
  > We employ the residual network, which is trained on ImageNet dataset for image classication task, to extract the deep features to represent the density of the crowd.
  
  If you look at the figure 2, you can see that they use the Neural network architecture ResNet. This is a deep network, [here](https://arxiv.org/pdf/1512.03385.pdf) is the paper. It has good performance and do image classification.
  
  > This pre-trained CNN network created a residual item for every three convolution layer to bring the layer of the network to 152
  
  If you are in the layer k, it means this layer has in input, the ouput of the k-3th layer. See the paper, figure 5 explains it well without much explications needed. Furthermore, Resnet has 3 different architectures wih different number of layers, and they take the deeper one, the 152 layers deep Resnet.
  
  > We resize the image patches to the size of 224 × 224 as the input of the model and extract the output of the fc1000 layer to get the 1000 dimensional features
  
  The input of Resnet is images of size 224x224, so they need to resize them to fit the input requirement of Resnet. The output of Resnet is 1000 because Imagenet is a dataset of 1000 classes.
  
  > The features are then used to train 5 layers fully connected neural network. The network's input is 1000dimensional, and the number of neurons in the network is given by 100-100-50-50-1.
  
  Then they give the output of Resnet to their own Network, which is 5 layer deep. See figure 2 of their paper. Obviously, the input layer has 1000 inputs because of the output of Resnet. The network have layers of 100, 100, 50 and finally 1 neuron. See figure 2.
  
  > The network's output is the local crowd count
  
  I don't think I need to explain it, they want only the number of people in the crowd, so they need only one output. This is obviously not a classifcation problem, but a regression problem.
  
  Has you don't really point out what you don't understand, I don't explain it in details. Feel free to ask more precise question if some part are still blurred to you !
  
  > **Comments:**
  > **username_0**: Thank you very much. Actually, I also  wanted an explanation of how exactly they are using MRF for Image Counting. To be specific, I wanted to know how exactly can I implement the method described in section 3.2, Images Counting.  
  > **username_1**: @username_0Then, maybe edit your question or ask another for this part of the paper  
  > **username_0**: Okay, I'll do that in a minute.  
  > **username_0**: Check out this question: https://ai.stackexchange.com/questions/7952/doubt-regarding-research-paper. Hoping to see an answer soon.  
  
  ---
  
  