-
Notifications
You must be signed in to change notification settings - Fork 75
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
Update faster_live_portrait_pipeline.py #87
base: master
Are you sure you want to change the base?
Conversation
Rethinking of tracking
It's just a initiative, to show need of retracking. |
also, src_lmk_pre should be driving_lmk_pre I guess. |
Direct without tracking different face.
Change name
yes, driving_lmk_pre indeed fits the context well |
|
I'm not familiar with trt and onnx, how to get its second-to-last confidence, or it's already wrapped? Or should I follow some transformation code. I don't understand the landmark model input, it can get either the bbx with 2 points, or the 203 points. I guess it may only use the left most or right most or some high dim combination? I mean, would it be faster for 203 input than 2 points? I have no idea even what the model is. |
confidence by pixel
I think it's perfect, I found the model tends to shrink to its crop, so I use axis1 diff as confidence, say 32 pixels at least, and it works perfectly when lose track. |
I also write another choice for lmk when it lose track, but it takes time to trigger the confidence alert, so it's both a bit wierd feeling lag ( thought it's correct). |
inconfident when shrink 20 pixels, or less than 32 pixels face
I feel that it's too tricky and not elegant enough. I checked the face_analysis model's prediction for landmarks (lmk) and indeed it doesn't have confidence scores. |
So what's the plan? At least so far this could retrack your face |
Rethinking of tracking. Realtime camera need reinitial points.
I still miss the error catching codes. As you would get error if you lost the the cropped face. Need another catch of restart in the run.py.