Replies: 12 comments 15 replies
-
@ahwiggers
|
Beta Was this translation helpful? Give feedback.
-
Extra information: |
Beta Was this translation helpful? Give feedback.
-
I would also appreciate some help with installing and working with TorchSharp. |
Beta Was this translation helpful? Give feedback.
-
There are tensorflow.NET and ML.NET used in Unity repos. I doubt there is any TouchSharp used in public Unity repos. TorchSharp is now routinely used in Godot, as Godot provides the closest latest .NET (e.g. pretty much native .NET8 with VS2022 Test adaptors beyond e.g. NUnit and XUnit for test-deiven (TDD) game frame simulation developemt ) environment. Microsoft officially supports Unity through VS2022. Perhaps Microsoft needs to think the same for providing TorchSharp integration to the Unity Game Engine development using VS2022. |
Beta Was this translation helpful? Give feedback.
-
I saw the blog about using TF.NET on Unity. (Written with Chinese and I saw with translator) I think the Nuget is not capable with Unity is the real problem. And they are now working on but it might takes long time: Unity Blog |
Beta Was this translation helpful? Give feedback.
-
China reported way to modernize Unity to .net8 |
Beta Was this translation helpful? Give feedback.
-
Saw it on twitter |
Beta Was this translation helpful? Give feedback.
-
I focus on Godot and TorchSharp |
Beta Was this translation helpful? Give feedback.
-
If I have a time, Ill create some template of using TorchSharp with Unity. |
Beta Was this translation helpful? Give feedback.
-
Test driven Game (GODOT) development using VS2022 Next time I try sharing example using TorchSharp |
Beta Was this translation helpful? Give feedback.
-
Update May2024What works |
Beta Was this translation helpful? Give feedback.
-
This doesn't work, but I hope it can give you least clue that eventually solve the problem.I used the method of #874 and it worked. Then you need retrieve the following libraies (build a visual studio project, and add the reference through Nuget tool): Finally, you can add the TorchSharp examples libararies (from the TorchSharpExamples project, remember shift the framework to netstandard2.0): Anyway, you can retrieve the missing libraries and resolve conflicts, eventually you will be able to run when Unity prompts no exception. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I was wondering if anyone has had success using TorchSharp in Unity. I've seen some discussion elsewhere of people having mixed results trying to use TorchSharp in Unity, but none were very recent. Have others had success? How did you go about installing TorchSharp in Unity?
I'm looking to run a neural network that I've pretrained using Pytorch. I'm not using Unity's built in Barracuda because my model uses a 3D Transpose Convolution, which has not been implemented in Barracuda.
Beta Was this translation helpful? Give feedback.
All reactions