yuxng / PoseCNN

A Convolutional Neural Network for 6D Object Pose Estimation in Cluttered Scenes
https://rse-lab.cs.washington.edu/projects/posecnn/
MIT License
761 stars 245 forks source link

problem when running the train.sh #83

Open iris0329 opened 5 years ago

iris0329 commented 5 years ago

when I train,

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 754, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/data/lirong/poseCNN2/tools/train_net.py", line 159, in render
    synthesizer.setup(cfg.TRAIN.SYN_WIDTH, cfg.TRAIN.SYN_HEIGHT)
RuntimeError: Pangolin X11: Failed to open X display

Context 'Synthesizer' doesn't exist for deletion.

and

iter: 1 / 1, loss: 3.8476, loss_cls: 3.0932, loss_vertex: 0.5590, loss_pose: 0.0000, lr: 0.00100000,  time: 11.93
Wrote snapshot to: /data/lirong/posecnn/output/lov/lov_train/vgg16_fcn_color_single_frame_2d_pose_add_lov_iter_1.ckpt
Traceback (most recent call last):
  File "/root/.pycharm_helpers/pydev/pydevd.py", line 1664, in <module>
    main()
  File "/root/.pycharm_helpers/pydev/pydevd.py", line 1658, in main
    globals = debugger.run(setup['file'], None, None, is_module)
  File "/root/.pycharm_helpers/pydev/pydevd.py", line 1068, in run
    pydev_imports.execfile(file, globals, locals)  # execute the script
  File "/data/lirong/posecnn/tools/train_net.py", line 330, in <module>
    max_iters=args.max_iters)
  File "/data/lirong/posecnn/tools/../lib/fcn/train.py", line 558, in train_net
    sw.train_model_vertex_pose(sess, train_op, loss, loss_cls, loss_vertex, loss_pose, learning_rate, max_iters, data_layer)
  File "/data/lirong/posecnn/tools/../lib/fcn/train.py", line 261, in train_model_vertex_pose
    coord.join([t])
  File "/data/lirong/py2/venv_python2.7/local/lib/python2.7/site-packages/tensorflow/python/training/coordinator.py", line 397, in join
    " ".join(stragglers))
RuntimeError: Coordinator stopped with threads still running: Thread-67

render() function seems fail, I don't know how to handle it can anyone help me? thanks for help