Advertisement
lamiastella

ValueError: Shapes (2, 1) and () are incompatible

May 10th, 2017
333
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. (py35) E:\opensource_codes\gesture_recognition\hand3d-master>python run.py
  2. Traceback (most recent call last):
  3. File "run.py", line 47, in <module>
  4. keypoints_scoremap_tf, keypoint_coord3d_tf = net.inference(image_tf, hand_side_tf, evaluation)
  5. File "E:\opensource_codes\gesture_recognition\hand3d-master\net.py", line 37, in inference
  6. hand_mask = single_obj_scoremap(hand_scoremap)
  7. File "E:\opensource_codes\gesture_recognition\hand3d-master\utils.py", line 246, in single_obj_scoremap
  8. max_loc = find_max_location(scoremap_fg)
  9. File "E:\opensource_codes\gesture_recognition\hand3d-master\utils.py", line 228, in find_max_location
  10. xy_loc.append(tf.concat(0, [x_loc, y_loc]))
  11. File "C:\Users\mona6\AppData\Local\conda\conda\envs\py35\lib\site-packages\tensorflow\python\ops\array_ops.py", line 1030, in concat
  12. ).assert_is_compatible_with(tensor_shape.scalar())
  13. File "C:\Users\mona6\AppData\Local\conda\conda\envs\py35\lib\site-packages\tensorflow\python\framework\tensor_shape.py", line 735, in assert_is_compatible_with
  14. raise ValueError("Shapes %s and %s are incompatible" % (self, other))
  15. ValueError: Shapes (2, 1) and () are incompatible
  16.  
  17. (py35) E:\opensource_codes\gesture_recognition\hand3d-master>python
  18. Python 3.5.3 |Continuum Analytics, Inc.| (default, Feb 22 2017, 21:28:42) [MSC v.1900 64 bit (AMD64)] on win32
  19. Type "help", "copyright", "credits" or "license" for more information.
  20. >>> import tensorflow as tf
  21. >>> tf.__version__
  22. '1.1.0'
  23. >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement