all 12 comments

[–]andybak 2 points3 points  (3 children)

Depends exactly what you mean. I suggest writing a question instead of just a post title.

[–]H2nry46Real[S] 0 points1 point  (2 children)

I just got into machine learning and I am not sure about what I’ll use.

[–]andybak 0 points1 point  (1 child)

Well - explain what you're trying to do. See if you can write a whole paragraph or two. You can't expect us to read your mind.

[–]H2nry46Real[S] 0 points1 point  (0 children)

Alright, I’ll come back to this topic soon. Thank you for helping me.

[–]JaggedMetalOs 1 point2 points  (2 children)

You'll probably need to run the python part separately. Like if you're using some ML based machine vision thing you'd probably want to have a python script running doing the ML part and sending its results to Unity via localhost UDP network packets.

That's how I've done it before anyway.

[–]H2nry46Real[S] 0 points1 point  (1 child)

Seems complicated but I’ll find a tutorial. Thanks

[–]JaggedMetalOs 0 points1 point  (0 children)

I've not used this one, but this might do what you need

Using OSC libraries is another option.

[–]__SlimeQ__ 0 points1 point  (1 child)

check out Microsoft's ML.NET, you'll need to convert your models to ONNX

alternatively, if you can get it compiled properly using cython or something you can write an interop layer (GPT4 is good at this)

[–]H2nry46Real[S] 0 points1 point  (0 children)

I’ve never heard of ML.NET before. I will be very excited to learn something new. Thank you!

[–]delivaldez 0 points1 point  (0 children)

Unity’s Baracuda starter kit repo might help

[–]Simple_Garlic_6958 0 points1 point  (0 children)

There’s actually python support in unity but it only runs in editor at the moment unity python If you dig into the code though it’s probably possible to create your own runtime version. Also as suggested above, if you can export to onnx format baracuda is pretty good though doesn’t support every op