ZFTurbo/Keras-inference-time-optimizer

Reduced Model Export

JPery opened this issue · 2 comments

JPery commented

Is there any way to export the model so we can avoid converting the model each time?

Sure. You can just save it as any other Keras model:

from kito import reduce_keras_model
model_reduced = reduce_keras_model(model)
model_reduced.save(output_path)
JPery commented

Thank you for your fast answer.

This is a nice project. It reduced mi inference time from 120 to 50 seconds. Great job!