CODAIT / graph_def_editor

GraphDef Editor: A port of the TensorFlow contrib.graph_editor package that operates over serialized graphs
Apache License 2.0
31 stars 16 forks source link

New example of editing a graph for inference #31

Closed frreiss closed 5 years ago

frreiss commented 5 years ago

This PR adds a new example script to the GDE project. The example builds a graph for the object detection model currently used in MAX-Object-Detector. In particular, the example script starts from the raw graph from the TensorFlow models repository, grafts on preprocessing ops that perform image conversion and postprocessing ops that map category IDs to category names; then runs a series of the Graph Transform Tool and GraphDef Editor rewrites.

I added some minor improvements to existing GDE code along the way: