# Machine Learning Detector + Babylon JS

**URL:** <https://forum.babylonjs.com/t/machine-learning-detector-babylon-js/62746>\
**Category:** Demos and projects\
**Created:** [March 11, 2026, 9:37am UTC](https://forum.babylonjs.com/t/machine-learning-detector-babylon-js/62746 "2026-03-11T09:37:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![HiteshSahu](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/hiteshsahu/32/50817_2.png) [@HiteshSahu](https://forum.babylonjs.com/u/HiteshSahu)\
**Post date:** [March 11, 2026, 9:37am UTC](https://forum.babylonjs.com/t/machine-learning-detector-babylon-js/62746/1 "2026-03-11T09:37:20Z")

</div>

\*\*Controlling a 3D model bones using Machine Learning Detector \*\*

> **[Machine Learning template](https://hiteshsahu.com/lab/ml-template/)**
>
> Machine Learning Template

i am trying to control a 3D model from the input of pose detection using video or webcam. SO far I made it this far. I can detect poses and map them to bone. But mapping is a hard problem. I tried everything but seems like bones are not moving or if they are moving they dont update the skinned mesh.

I appreciate if I can get some help.

---

<div class="post-metadata">

**Author:** ![HiteshSahu](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/hiteshsahu/32/50817_2.png) [@HiteshSahu](https://forum.babylonjs.com/u/HiteshSahu)\
**Post date:** [March 11, 2026, 9:38am UTC](https://forum.babylonjs.com/t/machine-learning-detector-babylon-js/62746/2 "2026-03-11T09:38:28Z")

</div>

I was able to achive it with babylon dude model but I am trying to use Mixamo model mapping and it does not work

> **[Babylon.js Playground](https://playground.babylonjs.com/#D4ZZ8%23565)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL and WebGPU 3D scenes

---

<div class="post-metadata">

**Author:** ![Cedric](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/cedric/32/2742_2.png) [@Cedric](https://forum.babylonjs.com/u/Cedric)\
**Post date:** [March 11, 2026, 10:36am UTC](https://forum.babylonjs.com/t/machine-learning-detector-babylon-js/62746/3 "2026-03-11T10:36:08Z")

</div>

I guess this can be a great use case for Motion retargetting. cc @Evgeni_Popov

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [March 11, 2026, 5:36pm UTC](https://forum.babylonjs.com/t/machine-learning-detector-babylon-js/62746/4 "2026-03-11T17:36:32Z")

</div>

If you use a mixamo model, you probably load it from a glTF file. In that case, you must change the transformations of the transform node linked to a bone, not the transformations of the bone itself. You can get the linked transform node by doing `bone.getTransformNode()`.

---

<div class="post-metadata">

**Author:** ![HiteshSahu](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/hiteshsahu/32/50817_2.png) [@HiteshSahu](https://forum.babylonjs.com/u/HiteshSahu)\
**Post date:** [March 12, 2026, 12:03pm UTC](https://forum.babylonjs.com/t/machine-learning-detector-babylon-js/62746/5 "2026-03-12T12:03:48Z")

</div>

Thanks for the tip. This is how it looks like now, it is a bit funny 😃

> **[Machine Learning template](https://hiteshsahu.com/lab/ml-template/)**
>
> Machine Learning Template

---

<div class="post-metadata">

**Author:** ![64jcl](https://avatars.discourse-cdn.com/v4/letter/6/d2c977/32.png) [@64jcl](https://forum.babylonjs.com/u/64jcl)\
**Post date:** [March 19, 2026, 2:00pm UTC](https://forum.babylonjs.com/t/machine-learning-detector-babylon-js/62746/6 "2026-03-19T14:00:40Z")

</div>

Very cool demo. Might I ask what pose detection you are using since it seems to run fully in the browser. And in your demo it doesn’t seem to have a z-value for depth, or are you just mapping only two axis? About the animation stuff, yeah bones can be tricky to map correctly - not gotten far myself with that, still fiddling with plain animations and trying to figure out smoothing between them.

---

<div class="post-metadata">

**Author:** ![HiteshSahu](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/hiteshsahu/32/50817_2.png) [@HiteshSahu](https://forum.babylonjs.com/u/HiteshSahu)\
**Post date:** [May 27, 2026, 11:35am UTC](https://forum.babylonjs.com/t/machine-learning-detector-babylon-js/62746/7 "2026-05-27T11:35:36Z")

</div>

> [@64jcl](#):
>
> it doesn’t seem to have a z-value for depth, or are you just mapping only two axis? About the animation stuff, yeah bones can be tricky to map correctly - not gotten far myself with that, still fiddling with plain animations and trying to figure out smoothing between them.

I am using **TensorFlow.js.** It is a 2D pose detector thats why Model Bones are animating weird. Also its hard to map 1:1 pose nodes with Mixamo bones.
