The purpose of this tool is to provide an OpenSource option to evaluate Tensorflow models without Tensorflow installation issues.
- Local requirements:
- Docker installed (see Docker)
- docker-compose installed (see docker-compose)
- Features:
- Custom packages can be installed in python image.
- Download weights and/or model from Google Drive.
- Load model from pickle, native keras formats or tensorflow.
- Evaluate your model.
- First define the library requirements for loading and evaluating your model in
requierements.txt
. (Just as you would install withpip3 install <library>
) - Run
docker-compose build
to create the image with all the requierements and environment for your evaluation. - Add your model code to
model.py
and import it inevaluate.py
. - Upload weights or model to Googe Drive storage or locally if you prefer. (
.pkl
,.h5
orSavedModel
supported) - Update
config.json
according to your files. - Run evaluation with
docker-compose up web
Create empty model and load weights from .pkl
{
"drive":[
{ "file_id":"FILE_ID_HERE", "destination":"model_weights.pkl"}
],
"model":{
"required":false,
"location":"",
"pickle":false
},
"weights":{
"required":true,
"location":"model_weights.pkl",
"pickle":true
}
}