torinmb / mediapipe-touchdesigner

GPU Accelerated MediaPipe Plugin for TouchDesigner
MIT License
637 stars 31 forks source link

Fixed: Sometimes ML not running. #43

Closed jossevessies closed 12 months ago

jossevessies commented 12 months ago

Hi there. Again, so in love with this implementation and how smoothly you can install. No worries about running servers ourselves or anything. Really beautiful.

One Issue I keep having for a couple of days now is that sometimes the ML won't run.

Video-feed (through ndi in my case) runs fine. And I am checking the port in localhost in the browser. And indeed I see the models start running in the console outputs.

Not that I have a lot of slack in my wits, So I am at their end. hehe.

I have also checked the resolution. it is 1280x720. So I don't think this is the problem too?

Thank you very much!

jossevessies commented 12 months ago

To clarify, sometimes the ML runs, sometimes it won't

jossevessies commented 12 months ago

Hello again!

Bypassed my issues by using spout.

After clearing my head I realized I hadn’t tested the original webcamfeed, just the NDI.

the original feed worked fine, directly. So it got me wondering. I still don’t know why the NDI of that feed doesn’t work (and sometimes does) I suspect something changes in the resolution and byte settings.

After some fiddling with the spout settings (I didn’t realize, but mediapipe seems to prefer the stream in 8-bit fixed rgba) spout works like a charm!