Fully-convolutional-neural-network-FCN-for-semantic-segmentation-Tensorflow-implementation icon indicating copy to clipboard operation
Fully-convolutional-neural-network-FCN-for-semantic-segmentation-Tensorflow-implementation copied to clipboard

getting error while running train.py file

Open neelima1719 opened this issue 6 years ago • 4 comments

I am getting following error

from ._conv import register_converters as _register_converters npy file loaded build model started WARNING:tensorflow:From /home/dtrl/Downloads/FCN/Fully-convolutional-neural-network-FCN-for-semantic-segmentation-Tensorflow-implementation-master/BuildNetVgg16.py:110: calling argmax (from tensorflow.python.ops.math_ops) with dimension is deprecated and will be removed in a future version. Instructions for updating: Use the axis argument instead FCN model built Setting up Saver...

Kernel died, restarting

neelima1719 avatar May 09 '18 09:05 neelima1719

All these messages are standard so I cant deduce much from it. In which line of the code the program crashed?

sagieppel avatar May 09 '18 19:05 sagieppel

The code basically giving error here:

Net = BuildNetVgg16.BUILD_NET_VGG16(vgg16_npy_path=model_path) #Create class for the network Net.build(image, NUM_CLASSES,keep_prob)# Create the net and load intial weights #......................................Get loss functions for neural net work one loss f

Thanks and Regards Neelima Chauhan SRF DTRL, DRDO New Delhi

On Wed, May 9, 2018 at 3:29 PM, sagieppel [email protected] wrote:

All these messages are standard so I cant deduce much from it. In which line of the code the program crashed?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sagieppel/Fully-convolutional-neural-network-FCN-for-semantic-segmentation-Tensorflow-implementation/issues/5#issuecomment-387849566, or mute the thread https://github.com/notifications/unsubscribe-auth/AUBC14gtlVc9pdvkLsdKjsXu0YSs3GF0ks5tw0OqgaJpZM4T4BLR .

neelima1719 avatar May 10 '18 05:05 neelima1719

Sorry for the prvs reply but now it is coming in this code: print("Setting up Saver...") saver = tf.train.Saver() sess.run(tf.global_variables_initializer()) #Initialize variables

  • ckpt = tf.train.get_checkpoint_state(logs_dir)*
  • if ckpt and ckpt.model_checkpoint_path: # if train model exist restore it*
  •    saver.restore(sess, ckpt.model_checkpoint_path)*
      print("Model restored...")
    

Thanks and Regards Neelima Chauhan SRF DTRL, DRDO New Delhi

On Thu, May 10, 2018 at 1:28 AM, neelima chauhan < [email protected]> wrote:

The code basically giving error here:

Net = BuildNetVgg16.BUILD_NET_VGG16(vgg16_npy_path=model_path) #Create class for the network Net.build(image, NUM_CLASSES,keep_prob)# Create the net and load intial weights #......................................Get loss functions for neural net work one loss f

Thanks and Regards Neelima Chauhan SRF DTRL, DRDO New Delhi

On Wed, May 9, 2018 at 3:29 PM, sagieppel [email protected] wrote:

All these messages are standard so I cant deduce much from it. In which line of the code the program crashed?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sagieppel/Fully-convolutional-neural-network-FCN-for-semantic-segmentation-Tensorflow-implementation/issues/5#issuecomment-387849566, or mute the thread https://github.com/notifications/unsubscribe-auth/AUBC14gtlVc9pdvkLsdKjsXu0YSs3GF0ks5tw0OqgaJpZM4T4BLR .

neelima1719 avatar May 10 '18 05:05 neelima1719

Not sure I understand. Does the program crush in the line: saver.restore(sess, ckpt.model_checkpoint_path)?

sagieppel avatar May 10 '18 10:05 sagieppel