https://github.com/ahmetb/tfjs-cloudrun
https://github.com/ahmetb/tfjs-cloudrun
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ahmetb/tfjs-cloudrun
- Owner: ahmetb
- License: apache-2.0
- Created: 2020-12-16T20:06:33.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-12T22:17:34.000Z (over 4 years ago)
- Last Synced: 2025-03-30T01:12:14.169Z (22 days ago)
- Language: JavaScript
- Homepage:
- Size: 24.2 MB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - ahmetb/tfjs-cloudrun - (JavaScript)
README
# Serving saved models with TensorFlow.js on Cloud Run
Use [tf.js](https://github.com/tensorflow/tfjs) to serve prediction
with saved models using Cloud Run.Adopted from [firebase-object-detection-node](https://github.com/tensorflow/tfjs-examples/tree/master/firebase-object-detection-node) example, mostly by removing code and fixing its bugs.
Build and deploy:
```sh
gcloud beta run deploy object-detection \
--platform=managed \
--region=us-central1 \
--allow-unauthenticated \
--memory=1Gi \
--max-instances=10 \
--concurrency=10 \
--port=8080 \
--source=.
```