【问题标题】:how to make stylegan using tensorflow pretrained models in android如何在 android 中使用 tensorflow 预训练模型制作 stylegan
【发布时间】:2021-10-30 23:13:24
【问题描述】:

如何在 android 中使用 python 预训练模型。 我想在 android 中制作类似的卡通效果项目。在android中获得类似Cartoonify效果的步骤是什么?大多数项目都使用python。 以下是在 python 中引用该项目的链接。

卡通 - StyleGAN2

https://www.youtube.com/watch?v=7Oqpiaj0IUM

https://colab.research.google.com/drive/1s2XPNMwf6HDhrJ1FMwlW1jl-eQ2-_tlk?usp=sharing

【问题讨论】:

    标签: android tensorflow tensorflow-lite pre-trained-model stylegan


    【解决方案1】:

    要在 android 中部署机器学习模型,您可以执行以下选项:

     1.You can compress your models to smaller size Tensorflow lite files .
    

    参考。

    https://www.tensorflow.org/lite/convert

    https://github.com/margaretmz/Cartoonizer-with-TFLite

    2. You can put your model in TF-Serving/Flask/Django/AWS and use GET/POST method through REST-API to send images and receive results accordingly.
    

    参考: https://medium.com/analytics-vidhya/deploy-ml-models-using-flask-as-rest-api-and-access-via-flutter-app-7ce63d5c1f3b

    【讨论】:

    • 我一定会尝试这种使用方式..
    • 如果有帮助,您能否为上述答案投票!谢谢!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-17
    • 2018-05-25
    • 2019-01-20
    • 2019-01-29
    • 2017-08-19
    相关资源
    最近更新 更多