I have to use Tensorflow 0.11 for this code repo and this is the error I get:
(py35) E:\opensource_codes\gesture_recognition\hand3d-master>python run.py
Traceback (most recent call last):File "run.py", line 47, in <module>keypoints_scoremap_tf, keypoint_coord3d_tf = net.inference(image_tf, hand_side_tf, evaluation)File "E:\opensource_codes\gesture_recognition\hand3d-master\net.py", line 37, in inferencehand_mask = single_obj_scoremap(hand_scoremap)File "E:\opensource_codes\gesture_recognition\hand3d-master\utils.py", line 246, in single_obj_scoremapmax_loc = find_max_location(scoremap_fg)File "E:\opensource_codes\gesture_recognition\hand3d-master\utils.py", line 228, in find_max_locationxy_loc.append(tf.concat(0, [x_loc, y_loc]))File "C:\Users\mona6\AppData\Local\conda\conda\envs\py35\lib\site-packages\tensorflow\python\ops\array_ops.py", line 1030, in concat).assert_is_compatible_with(tensor_shape.scalar())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_withraise ValueError("Shapes %s and %s are incompatible" % (self, other))
ValueError: Shapes (2, 1) and () are incompatible(py35) E:\opensource_codes\gesture_recognition\hand3d-master>python
Python 3.5.3 |Continuum Analytics, Inc.| (default, Feb 22 2017, 21:28:42) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
>>> tf.__version__
'1.1.0'
>>>
Please suggest fixes.
The error seems to stem from the line xy_loc.append(tf.concat(0, [x_loc, y_loc]))
I wanted to make sure that I have the same exact subversion of Tensorflow so I did so but still get the above error.
(py35) E:\opensource_codes\gesture_recognition\hand3d-master>pip install tensorflow==1.1.0rc0
Collecting tensorflow==1.1.0rc0Using cached tensorflow-1.1.0rc0-cp35-cp35m-win_amd64.whl
Requirement already satisfied: protobuf>=3.2.0 in c:\users\mona6\appdata\local\conda\conda\envs\py35\lib\site-packages (from tensorflow==1.1.0rc0)
Requirement already satisfied: six>=1.10.0 in c:\users\mona6\appdata\local\conda\conda\envs\py35\lib\site-packages (from tensorflow==1.1.0rc0)
Requirement already satisfied: werkzeug>=0.11.10 in c:\users\mona6\appdata\local\conda\conda\envs\py35\lib\site-packages (from tensorflow==1.1.0rc0)
Requirement already satisfied: wheel>=0.26 in c:\users\mona6\appdata\local\conda\conda\envs\py35\lib\site-packages (from tensorflow==1.1.0rc0)
Requirement already satisfied: numpy>=1.11.0 in c:\users\mona6\appdata\local\conda\conda\envs\py35\lib\site-packages (from tensorflow==1.1.0rc0)
Requirement already satisfied: setuptools in c:\users\mona6\appdata\local\conda\conda\envs\py35\lib\site-packages (from protobuf>=3.2.0->tensorflow==1.1.0rc0)
Requirement already satisfied: appdirs>=1.4.0 in c:\users\mona6\appdata\local\conda\conda\envs\py35\lib\site-packages (from setuptools->protobuf>=3.2.0->tensorflow==1.1.0rc0)
Requirement already satisfied: packaging>=16.8 in c:\users\mona6\appdata\local\conda\conda\envs\py35\lib\site-packages (from setuptools->protobuf>=3.2.0->tensorflow==1.1.0rc0)
Requirement already satisfied: pyparsing in c:\users\mona6\appdata\local\conda\conda\envs\py35\lib\site-packages (from packaging>=16.8->setuptools->protobuf>=3.2.0->tensorflow==1.1.0rc0)
Installing collected packages: tensorflowFound existing installation: tensorflow 1.1.0Uninstalling tensorflow-1.1.0:Successfully uninstalled tensorflow-1.1.0
Successfully installed tensorflow-1.1.0rc0