DeepLabCut-live icon indicating copy to clipboard operation
DeepLabCut-live copied to clipboard

Running the pose model with empty frame when low confidence detector output.

Open arturoptophys opened this issue 3 months ago • 1 comments

Addresses issue #137 with a quick-and-dirty trick: when low-confidence prediction from detector -> pass a tensor of zeros to the pose model instead of raw frame. This way this frame will not have valid predictions, but the DLCLive will not crash and continue with next frame.

arturoptophys avatar Dec 04 '25 17:12 arturoptophys

i can't really evaluate this, since i don't know how the pytorch model works, but it looks reasonable - doesn't seem like it should be possible to fall back to an array with a totally different shape dependent on quality of estimation

sneakers-the-rat avatar Dec 06 '25 05:12 sneakers-the-rat