tensorflowtensorflow.jstensorflowjs-converter

Distinguish types of on-disk models


Tensorflow has several types of model formats:

  1. TensorFlow SavedModel 2. Frozen Model 3. Session Bundle 4. Tensorflow Hub module

How can you distinguish between them on-disk? (to later use with tensorflowjs-converter)

And how is each model created?


Solution

  • Yup, there are a LOT of different model types, and they all have good reasons. I'm not going to claim that I have perfect clarity of each, but here's what I know (I think I know).

    A multi-exported grouping of files looks like this image. From here, you can see quite a few that you could turn into TFJS.

    Different TF file types