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

Unable to retrieve multiple predictions from maDLC trained network

Open FabianPlum opened this issue 3 years ago • 9 comments

Hi there,

I'm working on a little Blender addon to make use of DLC-Live for multi-animal motion capture in foraging experiments where individuals freely enter and leave the scene. I'm passing cropped detections from a separate network (Yolo v4) to DLC-Live via OpenCV as the number of animals and joints are otherwise prohibitively large and not constant. The addon is taking shape and your DLC-Live implementation works great for the most part!

At the moment, however, I fail to retrieve multiple predictions at the same time.

Loading the graph and passing an image to initialise the network shows that there is only a single set of output predictions from sess with shape (num_keypoints , 3)

I have attached the pose_cfg.yaml file below, in case you can spot some issues in there that are not immediately obvious to me. Thanks a lot for your help!

Fabi

pose_cfg.yaml.txt

FabianPlum avatar Nov 25 '21 22:11 FabianPlum

Indeed, currently DLC-Live only supports single animals.

AlexEMG avatar Nov 26 '21 18:11 AlexEMG

Ah! Thanks for clarifying! I'll try to find a workaround with more elaborate cropping for now and report back if I find a nicer solution.

All the best Fabi

FabianPlum avatar Nov 26 '21 18:11 FabianPlum

Indeed, currently DLC-Live only supports single animals.

May I ask for the progress of the mobilenet that support the multi-animal project? It would be of great help to my studies!

nizheyi avatar Feb 18 '22 17:02 nizheyi

Indeed, currently DLC-Live only supports single animals.

Are there any plans for multi animal support in DLC-Live?

thomasilmer avatar Apr 08 '22 08:04 thomasilmer

I don't know the DLC internals well enough to answer this, but wonder if any of the other maintainers could comment on what this might take? we could give a sketch for a PR maybe?

sneakers-the-rat avatar Apr 08 '22 08:04 sneakers-the-rat

Hey there, it is currently a WIP in the lab (sorry, long list these days), but we just released 3D maDLC, which goes along this path too, see 2.2.1

MMathisLab avatar Apr 22 '22 11:04 MMathisLab

Hey there, it is currently a WIP in the lab (sorry, long list these days), but we just released 3D maDLC, which goes along this path too, see 2.2.1

Thanks for the answer.

Is there any rough estimate for when this will be done? And is there any possibility to offer financial compensation to speedup the implementation of this in DLC-live?

thomasilmer avatar Apr 28 '22 12:04 thomasilmer

Would be great! really need this feature. @FabianPlum did you manage to make a good working workaround? How do you train the model to perform best?

niels-ilmer avatar Jun 03 '22 07:06 niels-ilmer

Guys, work is in progress here #72. It is functional (in my hands 😄), but will definitely require some polishing.

jeylau avatar Jun 09 '22 19:06 jeylau