models icon indicating copy to clipboard operation
models copied to clipboard

The checkpoint files of the object detection models cannot be imported

Open futurely opened this issue 9 years ago • 5 comments

System information

OS: Ubuntu 16.04.2 LTS (Xenial Xerus)

TensorFlow version: ('v1.2.0-rc2-21-g12f033d', '1.2.0')

Describe the problem

The checkpoint files of the object detection models cannot be imported. Related to https://github.com/tensorflow/models/issues/1564.

Source code / logs

meta_graph_def = tf.train.import_meta_graph(model.ckpt.meta)

Traceback (most recent call last):
  File "../../extract_graph_def.py", line 19, in <module>
    main()
  File "../../extract_graph_def.py", line 15, in main
    extract_graph_def(input, output)
  File "../../extract_graph_def.py", line 7, in extract_graph_def
    meta_graph_def = tf.train.import_meta_graph(input)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py", line 1686, in import_meta_graph
    **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/meta_graph.py", line 504, in import_scoped_meta_graph
    producer_op_list=producer_op_list)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/importer.py", line 283, in import_graph_def
    raise ValueError('No op named %s in defined operations.' % node.op)
ValueError: No op named SSTableReaderV2 in defined operations.

futurely avatar Jun 18 '17 18:06 futurely

@futurely - can you say what program you are trying to run and with what parameters please?

jch1 avatar Jun 19 '17 16:06 jch1

Thanks! I've successfully fine-tuned models initialized with the released checkpoints. This issue no longer needs to be addressed.

futurely avatar Jun 20 '17 02:06 futurely

futurely,

Can you share how you resolve this issue? I have encountered the same issue as described in #1564

Thanks,

On Mon, Jun 19, 2017 at 7:54 PM, futurely [email protected] wrote:

Thanks! I've successfully fine-tuned models initialized with the released checkpoints. This issue no longer needs to be addressed.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tensorflow/models/issues/1602#issuecomment-309630258, or mute the thread https://github.com/notifications/unsubscribe-auth/AMGg3iWbF4rJsN1hURlsuNCuZSx5fnz6ks5sFzRQgaJpZM4N9j_h .

kaishijeng avatar Jun 20 '17 04:06 kaishijeng

https://github.com/tensorflow/models/issues/1564#issuecomment-309703063

futurely avatar Jun 20 '17 09:06 futurely

/usr/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88 return f(*args, **kwds) /usr/lib/python3.6/importlib/_bootstrap.py:219: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88 return f(*args, **kwds) 1.4.0 Traceback (most recent call last): File "freezeGraph-WORKING.py", line 13, in saver = tf.train.import_meta_graph('/media/panamon/newvolumeD/tamizh3/object-detection/models/research/object_detection/ssd_mobilenet_v1_coco_11_06_2017/model.ckpt.meta') File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/training/saver.py", line 1810, in import_meta_graph **kwargs) File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/meta_graph.py", line 660, in import_scoped_meta_graph producer_op_list=producer_op_list) File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/framework/importer.py", line 285, in import_graph_def raise ValueError('No op named %s in defined operations.' % node.op) ValueError: No op named SSTableReaderV2 in defined operations.

tamizharasank avatar Jul 30 '18 08:07 tamizharasank