Skip to main content

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


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


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

If you're not sure about the file name format, learn more about wheel file names.

starfruitai-0.0.3-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file starfruitai-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: starfruitai-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5

File hashes

Hashes for starfruitai-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4c3f6bc59517d9f6f62f3522ed5936bf537a9d93fc10a2505bfed3f2989d2d08
MD5 45d05de7b1ee5e6abeb5e2def2579567
BLAKE2b-256 6d33943fd904eb42abbbfdee1e45766b0d1c5c5bd9e59f8ddd626a173de6fb15

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page