Update faster_live_portrait_pipeline.py#87
Update faster_live_portrait_pipeline.py#87YacratesWyh wants to merge 7 commits intowarmshao:masterfrom
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 |
|
Hi @YacratesWyh, Thank you for your contribution to improving the tracking mechanism in the Regarding your note on error handling for lost cropped faces, it would be beneficial to include this in the current PR or plan it for a future update to ensure robustness. Overall, the PR is clear in its intent, and the maintainers will review the code further. If you have any additional insights or updates, feel free to share them. Thanks again for your efforts! |
|
Thank you, @YacratesWyh, for your contribution to improving the tracking mechanism in the |
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.