DhavalTaunk08 / Salient_Object_Detection

Implemented salient object detection in images using TensorFlow and OpenCV
0 stars 0 forks source link

we are getting a problem while executing,in cell 12 no G is declared and models doesnt saved or use of checkpointer is also wrong ,can you please reply and help us for executing this code.please... #1

Closed veertp10 closed 3 years ago

DhavalTaunk08 commented 3 years ago

Replace the code from:-

output_saliency_map = gfrn(input_image, ssp_out) A = tf.Variable(np.random.rand(256,256), dtype='float32', trainable=True) b = tf.Variable(np.random.rand(256,1), dtype='float32', trainable=True) output_saliency_map = tf.add(tf.matmul(A, G), b)

to:-

output_saliency_map = gfrn(input_image, ssp_out) A = tf.Variable(np.random.rand(256,256), dtype='float32', trainable=True) b = tf.Variable(np.random.rand(256,1), dtype='float32', trainable=True) output_saliency_map = tf.add(tf.matmul(A, output_saliency_map), b)

This should solve your issue.