ROLO icon indicating copy to clipboard operation
ROLO copied to clipboard

Variable rnn/lstm_cell/weights/Adam/ does not exist, or was not created with tf.get_variable(). Did you mean to set reuse=None in VarScope?

Open NinetailsBear9 opened this issue 7 years ago • 5 comments

I want to retrain the model,but this error happens,please tell me how to solve it~

NinetailsBear9 avatar May 02 '17 14:05 NinetailsBear9

I have the same issue. How to sovle it??

johnpisces2 avatar Sep 07 '17 14:09 johnpisces2

I have the same issue when I try to train the model. Is there any updates ?

marcvdinh avatar Nov 07 '17 20:11 marcvdinh

I have the same issue. Have you solved the problem?

123liluky avatar Feb 26 '18 08:02 123liluky

referencing http://blog.csdn.net/qq_25737169/article/details/77856961. When I tried experiment 1, I revised

def train_20(self):
        print("TRAINING ROLO...")
        log_file = open("output/trainging-20-log.txt", "a") #open in append mode
        with tf.variable_scope('for_reuse_scope'):
            self.build_networks()
            ''' TUNE THIS'''
            num_videos = 20
            epoches = 20 * 100
            # Use rolo_input for LSTM training
            pred = self.LSTM_single('lstm_train', self.x, self.istate, self.weights, self.biases)
        self.pred_location = pred[0][:, 4097:4101]
        self.correct_prediction = tf.square(self.pred_location - self.y)
        self.accuracy = tf.reduce_mean(self.correct_prediction) * 100
        self.learning_rate = 0.00001. 

It worked.

123liluky avatar Feb 27 '18 07:02 123liluky

when I run ROLO_network_test_all.py: ValueError: Variable rnn/lstm_cell/kernel does not exist, or was not created with tf.get_variable(). Did you mean to set reuse=None in VarScope? how to sovle it?

Tomingz avatar Apr 13 '18 11:04 Tomingz

Thanks @123liluky , your solution worked for me.

chenharel1 avatar Apr 16 '19 12:04 chenharel1