0

如何在 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

4

1 回答 1

0

要在 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

于 2021-09-16T07:54:38.463 回答