查看ckpt存放的数据

import os
from tensorflow.python import pywrap_tensorflow

checkpoint_path = os.path.join('ssd_vgg_300_weights.ckpt')
# Read data from checkpoint file
reader = pywrap_tensorflow.NewCheckpointReader(checkpoint_path)
var_to_shape_map = reader.get_variable_to_shape_map()
# Print tensor name and values
for key in var_to_shape_map:
    print("tensor_name: ", key)
    print(reader.get_tensor(key))

 

你可能感兴趣的:(深度学习)