pierDipi / ai-demo

An AI demo featuring Knative Event Mesh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Order of things:

  1. training
  • Train the model
  • Export it
  1. inference_test
  • Sanity check the exported model
  • Plot the detections onto test images
  1. tensorflow_serving_test
  • Use the exported model in a TensorFlow Serving container
  • Send inference requests to the container
    • Prepare input
    • Process output
  1. kserve_test
  • Use the exported model in KServe
  • Send inference requests to the KServe InferenceService
    • Prepare input
    • Process output
  1. prediction_backend
  • Use the exported model in a Flask app
  • Send inference requests to the Flask app from a HTML page

TODO:

  • Inference with KServe takes too long and needs too much CPU
    • Inference using a 100x83 image takes 1.5s with 5 CPU and 12Gi memory
    • Inference using a 960x540 image takes ~4.5s with 5 CPU and 12Gi memory
    • Inference using a 6000x8000 image (image to be posted by a phone) takes ~100s with 5 CPU and 12Gi memory
    • When CPU is set to 1, durations are ~2.5x longer
    • When TensorFlow Serving is used in a Docker container, durations are much shorter (no memory/CPU limit)
  • Use secrets for credentials in general

TODO:

About

An AI demo featuring Knative Event Mesh

License:Apache License 2.0


Languages

Language:Jupyter Notebook 50.3%Language:Python 48.1%Language:C++ 1.1%Language:Shell 0.2%Language:Starlark 0.2%Language:HTML 0.0%Language:Dockerfile 0.0%