Tensorflow: How can I assign numpy pre-trained weights to subsections of graph?
问题 This is a simple thing which I just couldn't figure out how to do. I converted a pre-trained VGG caffe model to tensorflow using the github code from https://github.com/ethereon/caffe-tensorflow and saved it to vgg16.npy... I then load the network to my sess default session as "net" using: images = tf.placeholder(tf.float32, [1, 224, 224, 3]) net = VGGNet_xavier({'data': images, 'label' : 1}) with tf.Session() as sess: net.load("vgg16.npy", sess) After net.load, I get a graph with a list of