lmb-freiburg / hand3d

Network estimating 3D Handpose from single color images
GNU General Public License v2.0
802 stars 252 forks source link

Run.py error #5

Closed gsrujana closed 6 years ago

gsrujana commented 6 years ago

Hi,

I extracted data in the root folder. I am getting the following error. File "run.py", line 47, in keypoints_scoremap_tf, keypoint_coord3d_tf = net.inference(image_tf, hand_side_tf, evaluation) File "/home/alex/dev/projects/hand3d-master/net.py", line 37, in inference hand_mask = single_obj_scoremap(hand_scoremap) File "/home/alex/dev/projects/hand3d-master/utils.py", line 246, in single_obj_scoremap max_loc = find_max_location(scoremap_fg) File "/home/alex/dev/projects/hand3d-master/utils.py", line 228, in find_max_location xy_loc.append(tf.concat(0, [x_loc, y_loc])) File "/home/alex/anaconda3/lib/python3.6/site-packages/tensorflow/python/ops/array_ops.py", line 1062, in concat ).assert_is_compatible_with(tensor_shape.scalar()) File "/home/alex/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/tensor_shape.py", line 737, in assert_is_compatible_with raise ValueError("Shapes %s and %s are incompatible" % (self, other)) ValueError: Shapes (2, 1) and () are incompatible

gsrujana commented 6 years ago

Hi, It got resolved by following steps similar to https://github.com/lmb-freiburg/hand3d/issues/2. It works fot TF 1.3 now. Thanks!