如何构建一个深度学习图像处理服务器

我正在构建一个应用程序来在服务器上处理用户的照片。基本上,用户上传照片到服务器,并使用深度学习模型进行一些过滤处理。一旦过滤完成,用户就可以下载新照片。过滤程序基于深度学习算法,使用 torch 框架,在 python/lua 上运行。我目前在本地 Ubuntu 机器上运行这个过滤代码。只是想知道如何将其转化为一个 Web 服务。我没有任何服务器端的知识,我做了一些研究,也许我应该使用 Flask 或 Tornado,或其他架构?

点赞
用户5839007
用户5839007

如果你熟悉 Python 并且使用 AWS 数据库服务,我建议使用 Django!它相当直观易用,且网上有很多资源和例子可供参考。例如,这里是文件上传的文档

2016-12-06 17:33:22
用户3791995
用户3791995

将下面翻译成中文并且保留原本的 markdown 格式

It does make sense to look at the whole task and how it fits to your actual server, Nginx or Lighttpd or Apache since you are serving static content. If you are going to call a library to create the static content, the integration of your library to your web framework would be simpler if you use Flask but it might be a fit for AWS S3 and Lambda services.
It may be worth it to roughly design the whole site and match your content to the tools at hand.

在提供静态内容时,查看整个任务及其与您实际的服务器(Nginx、Lighttpd或Apache)的匹配是有意义的。如果您要调用库创建静态内容,则如果您使用Flask,则您的库与Web框架的集成会更加简单,但它可能适合AWS S3和Lambda服务。

大致设计整个站点,并将内容与手头的工具匹配可能是值得的。

2018-02-16 02:37:32