Replies: 12 comments 15 replies
|
@ahwiggers
|
|
Extra information: |
|
I would also appreciate some help with installing and working with TorchSharp. |
|
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. |
|
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 |
|
China reported way to modernize Unity to .net8 |
|
Saw it on twitter |
|
I focus on Godot and TorchSharp |
|
If I have a time, Ill create some template of using TorchSharp with Unity. |
|
Test driven Game (GODOT) development using VS2022 Next time I try sharing example using TorchSharp |
Update May2024What works |
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. |




Uh oh!
There was an error while loading. Please reload this page.
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.
All reactions