I’m just starting out with Sensis. And my first experience is to import the examples, which then completely floods my console with “Obsolete” messages:
warning CS0618: 'TextureConverter.ToTexture(Tensor<float>, int, int, int, bool)' is obsolete:
'`RenderTexture ToTexture(Tensor<float> tensor, int width = -1, int height = -1, int channels = -1, bool broadcastChannels = false)` is deprecated,
please use `void RenderToTexture(Tensor<float> tensor, RenderTexture renderTexture, TextureTransform transform = default)` instead.'
Perhaps time to update the Samples?
Which sample gives you these errors? We updated the ones in sentis-samples to Sentis 2.1.
Unity 6000.0.40f1 with Sentis 2.1.2. It’s the package samples, it seems to be just these:
- Convert tensors to textures
- Convert textures to tensors
- Copy a texture tensor to the screen
- Use a compute buffer
- Use tensor indexing methods
- Use the functional API with an existing model
Also related to the package samples. The “Copy a texture tensor to the screen” is using a TextureConverter.RenderToScreen() method that is meant to be used in OnRenderImage(). But OnRenderImage is only supported in BiRP as far as I know. Most people opening this sample will be in URP, and the example will do nothing.