Open AlfonGio opened 3 years ago
I think he used tensorflow lite.
check out my forked repository of DeepTree, I added a method to freeze graph with weights
check out my forked repository of DeepTree, I added a method to freeze graph with weights
@shayantabatabaee Hi, I was trying your method to save the model, but I get the following error:
"using a tf.Tensor
as a Python bool
is not allowed: AutoGraph did not convert this function. Try decorating it directly with @tf.function. "
Can you help me with some suggestion ?
check out my forked repository of DeepTree, I added a method to freeze graph with weights
@shayantabatabaee Hi, I was trying your method to save the model, but I get the following error: "using a
tf.Tensor
as a Pythonbool
is not allowed: AutoGraph did not convert this function. Try decorating it directly with @tf.function. "Can you help me with some suggestion ?
Hi, I guess the error relates to tensorflow version, please make sure that you are using tensorflow==2.0.0
.
@shayantabatabaee thanks for your response. I was working with the tensorflow==2.0.0 but getting the mentioned error. Then, I update the version to 2.5.0 and the problem was solved.
Great tutorial! how can I deploy it to mobile phone? Thanks.