yaojieliu / CVPR2019-DeepTreeLearningForZeroShotFaceAntispoofing

MIT License
194 stars 55 forks source link

Mobile phone deployment #19

Open AlfonGio opened 3 years ago

AlfonGio commented 3 years ago

Great tutorial! how can I deploy it to mobile phone? Thanks.

umitkacar commented 3 years ago

I think he used tensorflow lite.

shayantabatabaee commented 2 years ago

check out my forked repository of DeepTree, I added a method to freeze graph with weights

darich10 commented 1 year ago

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 ?

shayantabatabaee commented 1 year ago

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 ?

Hi, I guess the error relates to tensorflow version, please make sure that you are using tensorflow==2.0.0 .

darich10 commented 1 year ago

@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.