It is a simple API Framework for serving your Machine Learning model.
Don't write glue code for API and Keras model! We did it for You!
.. toctree:: mlapi/app mlapi/helpers mlapi/images mlapi/api_users_methods mlapi/parsers/imageParser
.. toctree:: models/modelsHolder models/modelController
.. toctree:: manage db/config db/dbConnection db/dbModels
We will show by example how to run Your own project.
Suppose our project is "Cats recognition" - does the picture contain a cat or not?
If you use Keras library, the first step is to save model as below:
# import necessary package
import h5py
# Define simple example Keras model
model = Sequential()
(...)
model.save('catsRecognition.h5')
After this process you will receive in the main project directory file: catsRecognition.h5.
- Go to mlapi main directory
/API/models/computed
- Create Your own directory name for example "cats"
- Insert your model file into folder /cats
[CATS]
modelName: cats
modelFullName: Cats Recognition
modelFile: catsRecognition.h5
outputValueType: class_probability
contentType: image
modelControllerClassOverrideFile: cats
modelControllerClassName: CatsClass
Save above lines in your /cats
folder as config.ini
.. toctree:: models/modelController
Models which we plan to do. If you need model, just write to us [email protected] or edit this document and create pull request :)
- Marcel Odya (@marcel-odya)
- Szymon Płotka (@simongeek)
- Krzysztof Sopyła (@ksopyla)