TensorFlow.jl icon indicating copy to clipboard operation
TensorFlow.jl copied to clipboard

Import Frozen Networks from Python?

Open chelseas opened this issue 5 years ago • 3 comments

Can I import frozen networks that were trained with the Python API? These are saved as .pb files.

I saw this in the documentation: "The Python variable checkpointer and Julia checkpointer use different formats for the checkpoint file, since the Python format is proprietary. The TensorFlow developers have stated that they eventually settle on a format and document it, at which point Julia and Python-trained models can share parameters."

But I wanted to confirm whether or not this extends to Frozen or SavedModels.

Thanks!

chelseas avatar Apr 22 '19 19:04 chelseas

It's being slowly worked on, but isn't available yet. You can import a saved Python metagraph, though.

malmaud avatar Apr 22 '19 19:04 malmaud

Sorry what is a metagraph? Is that structure without weights?

chelseas avatar Apr 22 '19 19:04 chelseas

Oh that seems to contain everything I want: https://chromium.googlesource.com/external/github.com/tensorflow/tensorflow/+/r0.10/tensorflow/g3doc/how_tos/meta_graph/index.md

Thanks!

chelseas avatar Apr 22 '19 20:04 chelseas