All Projects → second-state → tencent-tensorflow-scf

second-state / tencent-tensorflow-scf

Licence: Apache-2.0 license
A template project for serverless functions for Tensorflow inference on Tencent Cloud.

Programming Languages

HTML
75241 projects
rust
11053 projects
shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to tencent-tensorflow-scf

serverless-fission
Use Fission through Serverless Framework https://serverless.com
Stars: ✭ 19 (-50%)
Mutual labels:  faas, serverless-functions, serverless-framework
tencent-cam-role
Easily provision Tencent CAM roles using Serverless Components
Stars: ✭ 19 (-50%)
Mutual labels:  serverless-framework, tencent, tencent-cloud
serverless-tencent-scf
Add support for Tencent Cloud's serverless infrastructure to the Serverless Framework via this plugin
Stars: ✭ 53 (+39.47%)
Mutual labels:  serverless-framework, tencent, tencent-cloud
tencent-apigateway
Easily provision Tencent API Gateway using Serverless Components
Stars: ✭ 33 (-13.16%)
Mutual labels:  serverless-framework, tencent, tencent-cloud
tencent-cam-policy
Easily create an Tencent CAM Policy with Serverless Components
Stars: ✭ 20 (-47.37%)
Mutual labels:  serverless-framework, tencent, tencent-cloud
tencent-scf
Deploy Tencent Cloud Serverless Cloud Function in seconds with Serverless Components.
Stars: ✭ 86 (+126.32%)
Mutual labels:  serverless-framework, tencent, tencent-cloud
openwhisk-runtime-python
Apache OpenWhisk Runtime Python supports Apache OpenWhisk functions written in Python
Stars: ✭ 39 (+2.63%)
Mutual labels:  faas, serverless-functions
openwhisk-package-kafka
Apache OpenWhisk package for communicating with Kafka or Message Hub
Stars: ✭ 35 (-7.89%)
Mutual labels:  faas, serverless-functions
openwhisk-runtime-java
Apache OpenWhisk Runtime Java supports Apache OpenWhisk functions written in Java and other JVM-hosted languages
Stars: ✭ 43 (+13.16%)
Mutual labels:  faas, serverless-functions
openwhisk-catalog
Curated catalog of Apache OpenWhisk packages to interface with event producers and consumers
Stars: ✭ 30 (-21.05%)
Mutual labels:  faas, serverless-functions
Components
The Serverless Framework's new infrastructure provisioning technology — Build, compose, & deploy serverless apps in seconds...
Stars: ✭ 2,259 (+5844.74%)
Mutual labels:  faas, serverless-framework
openwhisk-runtime-docker
Apache OpenWhisk SDK for building Docker "blackbox" runtimes
Stars: ✭ 23 (-39.47%)
Mutual labels:  faas, serverless-functions
serverless-scaleway-functions
Plugin for Serverless Framework to allow users to deploy their serverless applications on Scaleway Functions
Stars: ✭ 58 (+52.63%)
Mutual labels:  faas, serverless-framework
Jazz
Platform to develop and manage serverless applications at an enterprise scale!
Stars: ✭ 254 (+568.42%)
Mutual labels:  faas, serverless-framework
Openwhisk Deploy Kube
The Apache OpenWhisk Kubernetes Deployment repository supports deploying the Apache OpenWhisk system on Kubernetes and OpenShift clusters.
Stars: ✭ 231 (+507.89%)
Mutual labels:  faas, serverless-functions
e5-api-renew-scf
本项目已进入半废弃状态(因为我自己的开发者订阅在2020年12月掉了)所以这里可能只能提供基础技术指导——[腾讯云函数专用]通过重复调用MS Graph API来试图续订Office 365开发者试用
Stars: ✭ 39 (+2.63%)
Mutual labels:  tencent-cloud, tencent-scf
Malagu
Malagu is a Serverless First, component-based, platform-independent, progressive application framework based on TypeScript.
Stars: ✭ 184 (+384.21%)
Mutual labels:  faas, serverless-framework
flutter superplayer
适用于 Flutter 的腾讯云超级播放器插件
Stars: ✭ 13 (-65.79%)
Mutual labels:  tencent, tencent-cloud
openwhisk-runtime-go
Apache OpenWhisk Runtime Go supports Apache OpenWhisk functions written in Go
Stars: ✭ 31 (-18.42%)
Mutual labels:  faas, serverless-functions
Openwhisk Cli
Apache OpenWhisk Command Line Interface (CLI)
Stars: ✭ 73 (+92.11%)
Mutual labels:  faas, serverless-functions

English | 视频演示 | Live demo! | 教程

快速开始

Clone 这个 repo。从 repo 的根目录,您可以拉取我们预先配置的 dev Docker image 并登录进去。请见国内的 Docker hub 镜像

$ git clone https://gitee.com/secondstate/tencent-tensorflow-scf
$ cd tencent-tensorflow-scf

$ docker pull secondstate/tencent-tensorflow-scf
$ docker run --rm -it -v $(pwd):/app secondstate/tencent-tensorflow-scf
(docker) $

你不一定要使用我们的 Docker image。要在您自己的计算机或容器上构建,请确保您已经安装了Serverless 框架, Rust, 和rustwasmc.

在 Docker 容器中运行以下命令,以构建和部署整个应用程序。

(docker) $ cd /app
(docker) $ sls deploy
... ...
  website:       https://sls-website-ap-hongkong-kfdilz-1302315972.cos-website.ap-hongkong.myqcloud.com
  vendorMessage: null

63s › tencent-tensorflow-scf › "deploy" ran for 3 apps successfully.

在浏览器中加载网站 URL,就开始使用函数来识别照片中的对象啦。

在中国大陆,如果 GitHub 很慢,可以用我们在 Gitee 的镜像。git clone https://gitee.com/secondstate/tencent-tensorflow-scf.git

创建你自己的 Tensorflow 云函数

Fork 这个 repo,使用 Code | Open with Codespaces 按钮来在浏览器中打开 Github Codespaces IDE 。第一次启动时,需要花费几分钟。

低代码开发

一旦 Codespaces IDE 启动了, 你就可以根据自己的应用程序需求来对源代码进行修改,自定义函数。 查看教程

  • src/lib.rs 文件中更改 TensorFlow 模型以及数据预处理和后处理逻辑。
  • website/content/index.html 文件中对前端UI进行更改。

创建

在 Codespaces 打开 Terminal 窗口, 然后运行下面的命令行来创建云函数。

$ rustwasmc build --enable-aot

部署

Terminal 窗口,运行下面的命令行将 TensorFlow 云函数部署到腾讯云上。

$ cp pkg/scf.so scf/

$ sls deploy
... ...
  website:       https://sls-website-ap-hongkong-kfdilz-1302315972.cos-website.ap-hongkong.myqcloud.com

在浏览器内加载部署好的 URL。 Have fun!

在本地机器上部署

如果你不能或不想使用 Github Codespaces,那可以在自己的计算机(或Docker映像)上安装 rustwasmc 和 serverless framework 工具链来构建和部署 Tensorflow serverless 函数。 安装 rustwasmc 工具

通过 NPM 安装 Serverless Framework。

$ npm install -g serverless

准备工作已经做完了,现在你可以参照上文提到的 Codespaces 的创建和部署教程来创建自己的云函数。

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].