Starfruit AI - Deep Learning Deployments Made Simple
Project description
Starfruit AI
Starfruit AI: Deep Learning Deployments Made Simple
Starfruit AI allows you to deploy deep learning models with one line of code. We handle all the deployment setup, maintenance, auto-scaling and regionalization. You just pay per call.
Installation
Create an account
API Key
Usage
Installation
- Starfruit AI can be installed via PIP:
python -m pip install starfruitai
- Then used in your code with an import:
import starfruit as sf
Create an account
- Go to https://starfruitai.com and create an account.
Get an API key
- After creating your account, your API key will be displayed at the top of the screen.
Example Usage
-
Download a sample densenet model
import torch model = torch.hub.load('pytorch/vision:v0.6.0', 'densenet121', pretrained=True)
-
Use Starfruit AI to deploy the model
import starfruit as sf # Authenticate with your API key sf.auth('API KEY GOES HERE') # Deploy your model to Starfruit AI's servers sf.pt_deploy(model, 'modelName', 'image_classifier') # Sucessfully Uploaded!: modelName # Timestamp: 1616644525649
-
Use the returned timestamp to make prediction; we'll be using this image of a cat.
# Make a prediction sf.predict('modelName', '1616644525649', 'cat.jpg')
-
Get back a prediction in JSON format
{ "data": { "Egyptian_cat": 0.7224083542823792, "tabby": 0.17468667030334473, "Siamese_cat": 0.02608460746705532, "lynx": 0.02026565931737423, "tiger_cat": 0.01653680019080639 } }
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for starfruitai-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c3f6bc59517d9f6f62f3522ed5936bf537a9d93fc10a2505bfed3f2989d2d08 |
|
MD5 | 45d05de7b1ee5e6abeb5e2def2579567 |
|
BLAKE2b-256 | 6d33943fd904eb42abbbfdee1e45766b0d1c5c5bd9e59f8ddd626a173de6fb15 |