0

I'm training an inception model from scratch using the scripts provided here. The output of the training are these files:

checkpoint
events.out.tfevents.1499334145.fdbf-Dell
model.ckpt-5000.data-00000-of-00001
model.ckpt-5000.index
model.ckpt-5000.meta
...
model.ckpt-25000.data-00000-of-00001
model.ckpt-25000.index
model.ckpt-25000.meta

Does someone have a script to convert these files in something I can use to classify my images? I have already tried to modify the inception_train.py file to output the graph.pb, but nothing happens...

Any help would be appreciated, thank you!

Gabriele S
  • 29
  • 1
  • 6
  • There are tons of questions about this on S.O., you didn't search too long... – gdelab Jul 06 '17 at 10:51
  • 1
    There are tons of incomplete and partial answers everywhere. I was looking for a simple but complete script that could help me use these files. For instance, the "official" guide to train inception from scratch does explain how to train and how to evaluate the model, but does not explain how to use it to classify other images... why? – Gabriele S Jul 06 '17 at 11:18

1 Answers1

1

How to use your checkpoint directly is explained here.

To create a .pb file, you'll have to freeze the graph, as explained here.

To create the initial .pb (or .pbtxt) file needed for freeze_graph, you can use tf.train.write_graph()

gdelab
  • 6,124
  • 2
  • 26
  • 59
  • thanks. To freeze the graph it requires a graph.pbtxt file, which I cannot find anywhere... where should it be? – Gabriele S Jul 06 '17 at 11:12