Closed luanle-padua closed 1 year ago
Hi Luan. I am not the developer, but I have seen this error show up before when I move the location of the model file and forget to update the path in the options. Check that your line FileUtil.LoadFile(filename)
is pointing to the correct place.
Thank you, I will try.
@luanle-padua . is your issue fixed?
hi Ale1,
Thank you so much. I could not fix it properly, then I changed my workflow to ONNX. And it is okay with me now.
Best regards Thanh Luan
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Environment (please complete the following information):
Describe the bug
Hi, My name is Luan, and I am very new to Unity. I am trying to make predictions by a deep-learning model in Unity. I train a model in GG colab using TF. I follow this tutorial on Youtube:
https://www.youtube.com/watch?v=s42RTgKSXis&list=PLlPnLTVCBE5VX_-1yze2ustaJwkAGcZo1&index=36&t=547s&ab_channel=Alkr
The code for prediction is as below:
`using System.Collections; using System.Collections.Generic; using UnityEngine; using TensorFlowLite; using UnityEngine.UI;
public class predict : MonoBehaviour { [SerializeField] string fileName = "model.tflite"; [SerializeField] Text outputTextWiew = null; [SerializeField] Button button = null; [SerializeField] InputField inputField = null;
} `
when I play in Unity, it comes with this error. Could you please help me to solve this problem?