This project is based on top of MNIST example project from BentoML.
-
This project is dependent on
python
and runs perfectly on version3.6
,3.7
and3.8
-
You can always install required python version using
pyenv
tool. -
After setting up
python
, installrequirements
-
Next, setup
zenml
by runningzenml init
in the root folder. This creates a.zen
folder in the root directory that tracks your progress. -
Inspect the file
zenml_pipeline.py
. Observe the different steps the pipeline is composed of. -
Run the training pipeline that ends up saving the model to registry using
zenml integration install mlflow
python3 zenml_pipeline.py
- Run the generated model via:
bentoml serve service:svc --reload
- With the
--reload
flag, the API server will automatically restart when the source fileservice.py
is being edited, to boost your development productivity. - Verify the endpoint can be accessed locally:
curl -H "Content-Type: multipart/form-data" -F'fileobj=@samples/1.png;type=image/png' http://127.0.0.1:5000/predict_image