MarvinTeichmann / KittiSeg

A Kitti Road Segmentation model implemented in tensorflow.
MIT License
911 stars 403 forks source link

train error-ValueError: No variables provided. #166

Open DetectionIIT opened 6 years ago

DetectionIIT commented 6 years ago

File "train.py", line 131, in tf.app.run() File "/home/emma/anaconda3/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 126, in run _sys.exit(main(argv)) File "train.py", line 127, in main train.do_training(hypes) File "incl/tensorvision/train.py", line 377, in do_training tv_graph = core.build_training_graph(hypes, queue, modules) File "incl/tensorvision/core.py", line 100, in build_training_graph global_step, learning_rate) File "/home/emma/fcn/KittiSeg/hypes/../optimizer/generic_optimizer.py", line 91, in training global_step=global_step) File "/home/emma/anaconda3/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/training/optimizer.py", line 529, in apply_gradients raise ValueError("No variables provided.") ValueError: No variables provided.

I don't know how to do with this,thanks with you help

yuleaf612 commented 6 years ago

@emmra I met with the same error, have u solved it?

yanchunhui commented 6 years ago

@emmra @yuleaf612 I meet the same problem,too,so do you solved it?

yuleaf612 commented 6 years ago

@yanchunhui yeah, I uninstalled everything. And I eventually intalled python 2.7 and tensorflow as it exactlly requried by this project

yanchunhui commented 6 years ago

@yuleaf612 thx for your reply. I also get the method like this, I will try it.

yanchunhui commented 6 years ago

amazing, I've found a solution to this problem from here, https://stackoverflow.com/a/43538898 now, it works very well.