I’m new to Sentis, so thanks in advance for bearing with me.
I’m trying to get started with converting Textures to Tensors and vice versa, but I’m running into a null-ref exception every time I try to call a TextureConverter operation.
NullReferenceException: Object reference not set to an instance of an object
Unity.Sentis.ComputeShaderSingleton.RegisterKernels (System.String shaderName, System.String[] kernelNames) (at ./Library/PackageCache/com.unity.sentis@1.2.0-exp.2/Runtime/Core/Backends/GPUCompute/ComputeShaderSingleton.cs:175)
Unity.Sentis.ComputeShaderSingleton.RegisterGeneratedKernels () (at ./Library/PackageCache/com.unity.sentis@1.2.0-exp.2/Runtime/Core/Backends/GPUCompute/ComputeShaderSingleton.gen.cs:9)
Unity.Sentis.ComputeShaderSingleton..ctor () (at ./Library/PackageCache/com.unity.sentis@1.2.0-exp.2/Runtime/Core/Backends/GPUCompute/ComputeShaderSingleton.cs:38)
Unity.Sentis.ComputeShaderSingleton..cctor () (at ./Library/PackageCache/com.unity.sentis@1.2.0-exp.2/Runtime/Core/Backends/GPUCompute/ComputeShaderSingleton.cs:20)
Rethrow as TypeInitializationException: The type initializer for 'Unity.Sentis.ComputeShaderSingleton' threw an exception.
Unity.Sentis.ComputeFunc..ctor (System.String kn) (at ./Library/PackageCache/com.unity.sentis@1.2.0-exp.2/Runtime/Core/Backends/GPUCompute/ComputeFunc.cs:24)
Unity.Sentis.ComputeFuncSingleton.Get (System.String name) (at ./Library/PackageCache/com.unity.sentis@1.2.0-exp.2/Runtime/Core/Backends/GPUCompute/ComputeFuncSingleton.cs:16)
Unity.Sentis.TextureConverter.ToTensor (UnityEngine.Texture texture, Unity.Sentis.TextureTransform transform) (at ./Library/PackageCache/com.unity.sentis@1.2.0-exp.2/Runtime/Core/Converters/TextureConverter.cs:52)
Unity.Sentis.TextureConverter.ToTensor (UnityEngine.Texture texture, System.Int32 width, System.Int32 height, System.Int32 channels)
Apologies if this is a duplicate but I’d really appreciate any help! Thanks so much.
BTW using Unity 2022.3.27f1 and Sentis 1.2