-
Notifications
You must be signed in to change notification settings - Fork 3
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
Question on single camera/single estimator smoothing #8
Comments
@jpoberhauser we haven't tried using EKS with a single estimator; the main motivation for using an ensemble is that we've found the confidence estimates for single pose estimators tend to not be calibrated super well. That being said, you could certainly hack around the code a bit and see what happens. To do so you can start at this line, which computes the ensemble mean/median and ensemble variance: You will need to replace the ensemble mean/median with the predictions from your single estimator. For the ensemble variance, you'll have to come up with a way of approximating this using the keypoint likelihood. For example, if the likelihood is 1, you can set the ensemble variance to 0; if the likelihood is 0, you can set the ensemble variance to some large value that makes sense in the context of your data (e.g. 400, or 1000; the scale is pixels^2). Then you can use the remainder of the Curious to hear how this works! (regardless of good or bad outcome) |
Thank so much for your response @themattinthehatt, I really appreciate it and I'm a big fan of you all's work. I will try that and I can report back. I am mostly looking for a way to add a fixed-interval smoother to predictions made in a single camera setting to try to offset the noise inherent in some pose estimators (jitter from frame to frame in videos). Curious if your work with pose-lightning made these estimates less noisy since you use temporal smoothing? Thanks again, appreciate the pointers. |
Thanks for the kind words! We found that the temporal loss in Lightning Pose actually didn't work so well unless we only penalized large jumps, so that loss doesn't contribute much to smoothing out small jitter. The context model I think does a better job at that since it can look at multiple frames to smooth over noise. I'll also note that the |
That all makes sense. Thanks again for the pointers. I will definitely try a couple of my models and see how far I can get with the ensemble smoother approach. |
Hello,
This is a general question around usage.
Thanks for releasing the eks code! I am wondering if there is a way to leverage a kalman smoother on a single camera, single estimator setting. So instead of aggregating different model predictions, if there is a way to use the spatially constrained kalman smoother to clean up the predictions on a single camera and single estimator ouputs?
Thank you in advance.
The text was updated successfully, but these errors were encountered: