Skip to content

davidkryzaniak/serverless-image-tag-processor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serverless Image Tag Processor

Based off of https://github.com/RaghavPrabhu/Deep-Learning/tree/master/serverless_image_tensorflow/backend_api but tuned for easy for AWS SAM deployment.

Just a simple API endpoint that returns the "tags" for an image. Uses TensorFlow and mobilenet.

To Deploy

  • git clone https://github.com/davidkryzaniak/serverless-image-tag-processor
  • cd serverless-image-tag-processor
  • npm install
  • sam deploy --guided

The API Gateway that is created will be in the displayed in the sam deploy output. Base64 encode your JPG image (current limitation) and POST it in the body of the request to your new endpoint.

Results

IMSA SportsCar Championship race at Road America

{
  "result":[
    {"className":"racer, race car, racing car","probability":0.9504339694976807},
    {"className":"sports car, sport car","probability":0.028354940935969353},
    {"className":"ambulance","probability":0.018328115344047546}
  ]
}

Seattle Aquarium

{
  "result":[
    {"className":"anemone fish","probability":0.9829691052436829},
    {"className":"sea anemone, anemone","probability":0.016800260171294212},
    {"className":"coral reef","probability":0.00014219412696547806}
  ]
}

Port of Seattle

{
  "result":[
    {"className":"fireboat","probability":0.9550132751464844},
    {"className":"dock, dockage, docking facility","probability":0.03869175910949707},
    {"className":"liner, ocean liner","probability":0.002760218223556876}
  ]
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published