- A tensorflow supported python version (3.6-3.8)
- (Optionally) CUDA Drivers for your nvidia GPU
- A TF SavedModel to use
- Run
pip install -r requirements.txt
to install required packages (tensorflow, scipy) - A mat file with an array of proper size named 'x'
Assuming that you run python in a directory like:
<your directory>
│ predict.py
│ README.md
│ requirements.txt
│ input.mat
│
└───mymodel
│ saved_model.pb
│
├───assets
└───variables
variables.data-00000-of-00001
variables.index
python predict.py --input sample_input.mat --output output.mat --model mymodel
Absolute paths are also supported.