-
Notifications
You must be signed in to change notification settings - Fork 478
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there any example for this library? #42
Comments
Hi @Ostnie, All the examples are contained in the example folder of the repository. On the main page of the project you find links to videos and code for the head pose estimation algorithms:
Hope that helped you... |
Could I use it in images?I find some example about video . |
Yes of course, it is really easy to use it in images.
For images you simply have to add the path to your image and use the method 'imread()':
The viedeo call returns a streaming of frames, whereas the image call returns a single image that you can process as you like. |
Oh, I see, Many thanks! |
@mpatacchiola Hi,I have run your code successfully on my computer and it help me a lot, but now I met a problem that the picture I want to use are under a wide range of head poses ,such as the range of yaw is between -90 degree to 90 degree ,and the outcome I get from your code is relatively small ,how can I solve this problem? |
Hi @Ostnie The accuracy of the CNN fades out for angles at the limit of the range. There is not much we can do because it is due to the dataset used for the training. In that dataset the number of images having such extreme poses were quite limited, and for this reason the ability of the network to generalize to those positions is scarce. As a workaroud you can try to mix multiple methods to get a mixture of experts estimation. |
Hi @mpatacchiola ,I plan to train a model for big pose so I read your paper ,and I have some question,could your please help me? 2、I was just starting this research so I have some doubts about how we get the final angle ? In your paper I see you divided each degree to different groups by steps of 15 .You seem to be turning them into a classification problem,but your program can accurately estimate the angle between them such as 1-14 degree ,I don't know whether I describe the question clearly . For example ,assuming that my current angle is only 0 and 90, how do you estimate the median value of 45? Many thanks! |
Hi @Ostnie
|
I'm sorry to bother you again. By reading your paper I found that the CNN network you use is very simple, the most complex reference network is just Alexnet, more is the use of the Lenet and his variants, why did not try to Use more complex networks such as vgg or resnet? |
Hi @Ostnie I did not use any deeper model for a series of reasons. When I started working for that article ResNet was not a widely adopted architecture whereas VGG was a large model that did not fit into the datasets I was managing. For sure, an extension of my work can be the use of a ResNet. In regression you have a continous output from the network, instead of using a softmax you can use a sigmoid or a tanh function (in my article I used a tanh). The loss function is generally the mean squarred error between the target value and the output of the net. In thi end this is not so different from a classification problem. In my article you can find all the details and there is the code of the network available in Deepgaze that you can study. |
Hello,I used to do some job about head pose estimation . Your job are amazing , and I want to have a try ,but I don't find any example about how to use it , could you give me some advice ?
Many thanks!
The text was updated successfully, but these errors were encountered: