You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Thanks for posting the code for tfLite - but it's massive overkill. Though I tried many ways to go around it, the best was just to copy the code within the TextureResizer into a new Script file, and just use it directly. It has almost no dependencies on the tfLite package - except for the Dispose - which I remarked out below:
(Also - I copied the required Shader to a new Shader file under Custom/ResizeShader - it's easy to find
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
Hi,
Thanks for posting the code for tfLite - but it's massive overkill. Though I tried many ways to go around it, the best was just to copy the code within the TextureResizer into a new Script file, and just use it directly. It has almost no dependencies on the tfLite package - except for the Dispose - which I remarked out below:
(Also - I copied the required Shader to a new Shader file under Custom/ResizeShader - it's easy to find
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TextureResizer : MonoBehaviour
{
// taking the code from : https://github.com/paulorenanmelo/MonocularDepthSensing/blob/master/Assets/Scripts/tf-lite-unity-sample/Common/TextureResizer.cs
// and redoing it
}
The text was updated successfully, but these errors were encountered: