4

I have implemented a smile detection system based on deep learning. The bottom layer is the output of the system and has 10 output according to the amount of the person's smile.
I want to convert these ten output with a numeric output in the range of 1 to 10 with a regression layer.
How can I do this in caffe?
Thanks

Shai
  • 111,146
  • 38
  • 238
  • 371
MHS
  • 71
  • 4

1 Answers1

2

In order to convert the 10 outputs you have to a single one you need an "InnerProduct" layer with 10 inputs and a single output. To train this layer you also need to add a loss layer suitable for regression on top of the 10 output layer you already have.
Such loss layers can be, e.g., Euclidean loss layer or Ross Girshick's smooth L1 loss layer.

Shai
  • 111,146
  • 38
  • 238
  • 371