Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
| import tensorflow as tf | |
| from tensorflow.python.platform import gfile | |
| with tf.Session() as sess: | |
| model_filename ='path/to/pb/file' | |
| with gfile.FastGFile(model_filename, 'rb') as f: | |
| graph_def = tf.GraphDef() | |
| graph_def.ParseFromString(f.read()) | |
| g_in = tf.import_graph_def(graph_def) | |
| LOGDIR="./" | |
| train_writer = tf.summary.FileWriter(LOGDIR) |
| import tensorflow as tf | |
| import argparse | |
| # command line arguments | |
| parser = argparse.ArgumentParser( | |
| description='Convert a checkpoint to frozen graph') | |
| parser.add_argument( | |
| '--checkpoint', | |
| type=str, |