smaerdlatigid / BodySegmentation

A body segmentation algorithm for the webcam with TensorFlow Lite in Unity 2019.3. Compatible with android, iOS and the Universal Render Pipeline.
15 stars 4 forks source link

ArgumentNullException: Value cannot be null #1

Open WestbrookZero opened 3 years ago

WestbrookZero commented 3 years ago

ArgumentNullException: Value cannot be null. Parameter name: shader UnityEngine.Material..ctor (UnityEngine.Shader shader) (at <9ab4ea689a4f4e68aced38ff0340a79f>:0) TensorFlowLite.TextureToTensor.Resize (UnityEngine.Texture texture, TensorFlowLite.TextureToTensor+ResizeOptions options) (at Assets/Samples/Common/TextureToTensor.cs:57) TensorFlowLite.BaseImagePredictor`1[T].ToTensor (UnityEngine.Texture inputTex, System.Single[,,] inputs) (at Assets/Samples/Common/BaseImagePredictor.cs:60) TensorFlowLite.DeepLab.Invoke (UnityEngine.Texture inputTex) (at Assets/Samples/DeepLab/DeepLab.cs:91) DeepLabVFX.Update () (at Assets/Samples/DeepLab/DeepLabVFX.cs:48)

ROBYER1 commented 3 years ago

Slap this in your project, it's just looking for a shader which is missing https://gist.github.com/asus4/215cc8a85d2fb16aceae0d0185e10db3