Skip to content

Exported tflite model is incompatible with MediaPipe #1211

@Tachi107

Description

@Tachi107

Hi!

When exporting a model with python3 model_inspect.py --runmode=saved_model --tflite_path=model.tflite, the exported TensorFlow Lite model is incompatible with mobile libraries like MediaPipe and the TensorFlow Lite Task Library, since they require the model to have four output tensors (as described here), while the exported model is an EfficientDetNet model with only one output tensor.

If I understand correctly, the full model required by those libraries is EfficientDetModel, added in commit cedf982.

Would it be possible to improve the model_inspect.py script to export the TFLite model with all the four required tensors?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions