Body tracking is too slow and inaccurate
Describe the bug
By all means Azure Kinect is the best Kinect so far, and will be probably the best depth sensor on the market. The sensor SDK is pretty stable and good, providing almost everything an average user would want. But the body tracking subsystem is ruining this positive user experience. In means of API this SDK is great too, but the DNN model performance is much worse than the body tracking of Kinect-v2. The joint positions are inaccurate by fast movements. The body index map is not very accurate, as well. It does not fully match the user's silhouette on the depth frame. On my GTX 1060 it takes 2-3 depth frame cycles to process a body frame. Hence, it works at about 10 fps.
To Reproduce
- Run Azure Kinect Body Tracking Viewer.
- Stand in front of the sensor.
- Make fast arm movements.
- Look at the arm joint positions with regard to the real arms.
- Look at the colorized body-index map with regard to the real body.
Expected behavior
- I expect the body tracking to work at least at 30 fps or more, i.e. faster than the depth frames arrive.
- I expect the body joint positions to match as precisely as possible the user's joints on the depth frame.
- I expect the body index map to match as precisely as possible the user's silhouette on the depth frame.
- I expect the body tracking to be less demanding, in means of hardware and 3rd party software requirements. GTX 1070 + CUDA + cuDNN + manually setting paths would be too much for the average user.
Please consider at least providing some option to the users, who don't have high end graphics cards and would like to get Kinect body tracking out of the box, without (or with minimum) extra installations. As far as I remember, Kinect-v2 used random forest model(s) for its body tracking. The performance was great and no extra installations were needed, back then in 2013/14.
Logs
Screenshots
Desktop (please complete the following information):
- OS with Version: Windows 1809
- Kinect SDK Version: 1.1.0
- Body tracking SDK Version: 0.9.0
Additional context
I believe most Kinect users would expect better, more accurate and more performant body tracking experience, not worse. And now, with Apple adding people segmentation and body tracking to their AR-Kit 3.0 I would expect Kinect (with all these years of experience) to provide a better user experience in all aspects than anybody else.
I understand that the body tracking is only a preview release, and will likely be improved over time. As a stopgap, if it's possible, perhaps the body tracking can expose a parameter that can be tuned to achieve higher accuracy for offline or remote processing on powerful systems for non-real time applications.
There are many use cases that might only need a 3-4 second clip and could afford to spend minutes/hours processing, but can't afford meter+ gaps between actual and reported joint positions.
Fully agree!
I have a feeling like the output data is also overly filtered/smoothed somewhere in the pipeline, possibly at the model fitting stage after the DNN? Maybe for certain use cases it could be useful to favor plausible poses over per-frame accuracy, but a user setting to tune this behavior could definitely improve usability in many more scenarios.
Another addition could be to output the 2D joint positions straight from the DNN when we need accurate points on the IR frame prior to any model fitting and post filtering stages.
I've had these 2 suggestions on the feedback page already in case you want to upvote: https://feedback.azure.com/forums/920053-azure-kinect-dk/suggestions/38027029-user-adjustable-skeleton-smoothing https://feedback.azure.com/forums/920053-azure-kinect-dk/suggestions/38031535-2d-joint-positions
Thank you for the feedback. Please note that the Body Tracking SDK is currently a preview release and we are actively working on many aspects of quality. The installation process and dependencies are a pain point that we are aware of and are working to fix.
As of the preview release the minimum recommended card is a GTX1070: https://docs.microsoft.com/en-us/azure/kinect-dk/system-requirements
Please keep sending us your feedback as new releases come out.
@Brekel I upvoted your first suggestion some days ago and now - the 2nd one as well. Anyway, I don't think a single hyperparameter tuning would solve the lag-issue. DNNs are notoriously slow, even on high end graphics processors.
Thanks for the upvote. Maybe you're right but I think this is not lag/slowness but filtering I'm seeing on my GTX1080ti, could be wrong.
In any case the DNN is still amazingly robust so not a critique just trying to help the team in making it more awesome and useful for more scenarios. The more controls we have the easier that will be.
@cdedmonds Thank you for the swift response! I know the system requirements and that BT SDK is still in preview. But I think it would be better (for both - you and us) to give such a feedback now, while in preview than when the official release is out.
I suppose the Azure Kinect-team is much different than the team developed the Kinect-v2 sensor and SDK, but anyway, you should have access to all the documentation and internal info from back then. It may be worth comparing the K4A body tracking to the body tracking of Kinect-v2, in means of performance, accuracy, features, extras, etc. It would be good to get a well performing, more accurate and more versatile body tracking in the end than the previous one.
Please keep this issue open, so we could comment when the new BT SDK releases come out. When do you plan to release the next preview version, by the way?
We appreciate the feedback. Keep it coming.
@cdedmonds I would say the key part is exposing as much control as possible to make things adaptable to a wide range of scenarios.
For example:
- for people identification/tracking/counting it may be enough to get the 2D output of the DNN and no 3D model fitting
- for interaction we do want a skeleton emphasizing smoothness and plausible poses (like we have now)
- for pose estimation (especially in multi-sensor/computer scenarios) we want a skeleton that may contain noise, missing limbs (with a confidence score) and less plausible poses at times but with no inter-frame smoothing at all
- for machine learning we probably want something in between, plausible poses but no inter-frame lag
- for offline tracking we may want to have a non-realtime version that favors accuracy over computation time
Again I don't know what is possible with the underlying algorithms and am just guessing, but the more that can be exposed the more wide the use cases. We're clever programmers using this you know :)
I definitely agree that if you can expose more control parameters, more possible use cases open up in a non-linear fashion, because then developers can work around the limitations by adapting their workflow, or by combining outputs from processing a stream more than once. I think this is particularly true for a device like the Kinect which feels like a revolutionary "general purpose" technology, with a lot of applications that haven't really been developed before. For instance, we would love to have low-latency, low computation positional accuracy. However, if that's not possible, we can always send the mkv files for remote processing on cloud GPUs and then send the data back to the end user.
Absolutely! Although cloud is not always an option since body tracking deals with people and possible privacy issues that may require local compute. :)
@cdedmonds Please also look at what the competition is doing: https://developer.apple.com/videos/play/wwdc2019/607
For my use cases, the tracking latency and the ability to recognize a person are the key concerns - positional accuracy within 6 inches (roughly 15cm) is sufficient. Multiple sensors can be used to increase accuracy, but there is no way to get around the latency and tracking delay. 60fps depth tracking would probably help alleviate the problem, but if that's not possible with the hardware then reduced latency is a priority. We can always add more cameras, but we can't subtract time. Though I note it would be easier to add more cameras if they didn't each require a PC with a Nvidia card; Intel NUCs would take far less space, and in fact the Azure Kinect fits atop them perfectly.
I must admit, v0.9.2 has significant improvements in means of performance and accuracy. In this regard, I have a question: do you change the model as well, or only the SDK internally?
@rfilkov Is there an MSI for 0.9.2? I can't seem to get my hands on it.
@hmexx here it is.
@rflikov v0.9.2 includes an updated model.
The new model does seem slightly better.
The main issue for us is that the model does not output confidence scores for the joints. Most 2D pose estimation have this feature, which makes it easy to deal with situations where the model has to fail (occluded joint). Is this something that can be added? I'll start a new issue with a feature request.
I'm agree for the confidence score fro each joint. This improvement seems to be under evaluation (https://feedback.azure.com/forums/920053-azure-kinect-dk/suggestions/38166871-joint-tracking-state). Another big limitation is the hardware requirement. We want to work in mobility with laptop but such hardware (e.g. GTX 1070 or RTX 2070) need to much power to work in mobility (in battery mode). We think it is very important to add more configuration possibilities for the body tracking. For example à lighter model compatible with lower grade graphics cards (GTX 1650 for example).
@hmexx Here is a feature request in this regard: https://feedback.azure.com/forums/920053-azure-kinect-dk/suggestions/38166871-joint-tracking-state Please upvote or comment there, too.
@PierrePlantard Please upvote this feature request, as well: https://feedback.azure.com/forums/920053-azure-kinect-dk/suggestions/38129473-body-tracking-without-cudnn