Tensorflow: How can I assign numpy pre-trained weights to subsections of graph?

前端 未结 2 1757
孤街浪徒
孤街浪徒 2021-02-20 02:00

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

2条回答
  •  我在风中等你
    2021-02-20 02:34

    You can get variable values using eval method of tf.Variable-s from the first network and load that values into variables of the second network using load method (also method of the tf.Variable).

提交回复
热议问题