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

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

Uploaded Python 3

Supported by

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