tensorflow / tensorflow/models

How can I save a frozen inference graph in TF2?

Open
#9,270 1 comment 0 reactions 3 assignees View on GitHub

@pkulzc is already working on this.

Since Sep 21, 2020.

models:research:odapi type:support
Dominant language
Python
Stars
77.7k
Forks
44.8k
PR merge metrics
No merged PRs in 30d

Description

I have trained a network to be able to use it in tensorflow.js but it works very slow because it has been converted from a saved model instead of a frozen graph as they have done with the pretrained models provided here.

to check that it was not my thing, I have taken the ssdlite_mobilenet_v2 (TF1.x) from this repository and I have tried to convert the graph as indicated here and the saved model and it has the same problem, the saved model is very slow with respect to the graph. so I would like to know how to export the frozen inference graph

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.