shreyashampali / HOnnotate

CVPR2020. HOnnotate: A method for 3D Annotation of Hand and Object Poses
https://www.tugraz.at/index.php?id=40231
GNU General Public License v3.0
166 stars 15 forks source link

TypeError: 'int' object is not iterable #2

Closed MengHao666 closed 4 years ago

MengHao666 commented 4 years ago

first thanks for such great work, and i really want do some research based on such dataset. However, when i install all the requirements as you told,and run " python inference_seg.py --seq 'test'",I got errors like that:

Traceback (most recent call last): File "inference_seg.py", line 166, in app.run(main) File "/home/haomeng/anaconda3/envs/py35/lib/python3.5/site-packages/absl/app.py", line 299, in run _run_main(main, args) File "/home/haomeng/anaconda3/envs/py35/lib/python3.5/site-packages/absl/app.py", line 250, in _run_main sys.exit(main(argv)) File "inference_seg.py", line 163, in main runNetInLoop(fileListIn, numImgs) File "inference_seg.py", line 105, in runNetInLoop sess, g, predictions, dataPreProcDict = getNetSess(data, h, w, myG) File "/home/haomeng/PycharmProjects/HOnnotate/utils/predictSegHandObject.py", line 69, in getNetSess output_stride=FLAGS.output_stride) File "/home/haomeng/PycharmProjects/HOnnotate/models/deeplab/common.py", line 240, in new int(x) for x in FLAGS.decoder_output_stride] TypeError: 'int' object is not iterable

And I doubt that the version of some libiraies caused it. My virtual enviroment was like that,and could u be generous to tell me the difference? I am really confused that i do as I see in reademe ,but meet such issues.

packages in environment at /home/haomeng/anaconda3/envs/py35:

#

Name Version Build Channel

_libgcc_mutex 0.1 main defaults absl-py 0.9.0 pypi_0 pypi astor 0.8.1 pypi_0 pypi attrs 19.3.0 pypi_0 pypi backcall 0.2.0 pypi_0 pypi bleach 3.1.5 pypi_0 pypi ca-certificates 2020.6.24 0 defaults certifi 2016.2.28 py35_0 defaults chumpy 0.69 pypi_0 pypi cycler 0.10.0 pypi_0 pypi cython 0.29.20 pypi_0 pypi decorator 4.4.2 pypi_0 pypi defusedxml 0.6.0 pypi_0 pypi dirt 0.3.0 pypi_0 pypi entrypoints 0.3 pypi_0 pypi freetype-py 2.1.0.post1 pypi_0 pypi gast 0.3.3 pypi_0 pypi google-pasta 0.2.0 pypi_0 pypi grpcio 1.30.0 pypi_0 pypi h5py 2.10.0 pypi_0 pypi imageio 2.8.0 pypi_0 pypi importlib-metadata 1.7.0 pypi_0 pypi ipykernel 5.3.0 pypi_0 pypi ipython 7.9.0 pypi_0 pypi ipython-genutils 0.2.0 pypi_0 pypi ipywidgets 7.5.1 pypi_0 pypi jedi 0.17.1 pypi_0 pypi jinja2 2.11.2 pypi_0 pypi joblib 0.14.1 pypi_0 pypi jsonschema 3.2.0 pypi_0 pypi jupyter-client 6.1.5 pypi_0 pypi jupyter-core 4.6.3 pypi_0 pypi keras-applications 1.0.8 pypi_0 pypi keras-preprocessing 1.1.2 pypi_0 pypi kiwisolver 1.1.0 pypi_0 pypi libedit 3.1.20191231 h7b6447c_0 defaults libffi 3.2.1 hd88cf55_4 defaults libgcc-ng 9.1.0 hdf63c60_0 defaults libstdcxx-ng 9.1.0 hdf63c60_0 defaults markdown 3.2.2 pypi_0 pypi markupsafe 1.1.1 pypi_0 pypi matplotlib 3.0.3 pypi_0 pypi mistune 0.8.4 pypi_0 pypi nbconvert 5.6.1 pypi_0 pypi nbformat 5.0.7 pypi_0 pypi ncurses 6.2 he6710b0_1 defaults networkx 2.4 pypi_0 pypi notebook 6.0.3 pypi_0 pypi numpy 1.18.5 pypi_0 pypi open3d 0.10.0.0 pypi_0 pypi opencv-python 4.2.0.34 pypi_0 pypi openssl 1.0.2u h7b6447c_0 defaults packaging 20.4 pypi_0 pypi pandocfilters 1.4.2 pypi_0 pypi parso 0.7.0 pypi_0 pypi pexpect 4.8.0 pypi_0 pypi pickleshare 0.7.5 pypi_0 pypi pillow 7.2.0 pypi_0 pypi pip 9.0.1 py35_1 defaults prometheus-client 0.8.0 pypi_0 pypi prompt-toolkit 2.0.10 pypi_0 pypi protobuf 3.12.2 pypi_0 pypi ptyprocess 0.6.0 pypi_0 pypi pyglet 1.5.7 pypi_0 pypi pygments 2.6.1 pypi_0 pypi pyopengl 3.1.0 pypi_0 pypi pyparsing 2.4.7 pypi_0 pypi pypng 0.0.20 pypi_0 pypi pyrender 0.1.43 pypi_0 pypi pyrsistent 0.16.0 pypi_0 pypi python 3.5.6 hc3d631a_0 defaults python-dateutil 2.8.1 pypi_0 pypi pywavelets 1.1.1 pypi_0 pypi pyyaml 5.3.1 pypi_0 pypi pyzmq 19.0.1 pypi_0 pypi readline 7.0 h7b6447c_5 defaults scikit-image 0.15.0 pypi_0 pypi scikit-learn 0.22.2.post1 pypi_0 pypi scipy 1.4.1 pypi_0 pypi send2trash 1.5.0 pypi_0 pypi setuptools 49.1.0 pypi_0 pypi six 1.15.0 pypi_0 pypi sklearn 0.0 pypi_0 pypi sqlite 3.32.3 h62c20be_0 defaults tensorboard 1.14.0 pypi_0 pypi tensorflow-estimator 1.14.0 pypi_0 pypi tensorflow-gpu 1.14.0 pypi_0 pypi termcolor 1.1.0 pypi_0 pypi terminado 0.8.3 pypi_0 pypi testpath 0.4.4 pypi_0 pypi tf-slim 1.1.0 pypi_0 pypi tk 8.6.10 hbc83047_0 defaults tornado 6.0.4 pypi_0 pypi tqdm 4.47.0 pypi_0 pypi traitlets 4.3.3 pypi_0 pypi transforms3d 0.3.1 pypi_0 pypi trimesh 3.7.6 pypi_0 pypi wcwidth 0.2.5 pypi_0 pypi webencodings 0.5.1 pypi_0 pypi werkzeug 1.0.1 pypi_0 pypi wheel 0.29.0 py35_0 defaults widgetsnbextension 3.5.1 pypi_0 pypi wrapt 1.12.1 pypi_0 pypi xz 5.2.5 h7b6447c_0 defaults zipp 1.2.0 pypi_0 pypi zlib 1.2.11 h7b6447c_3 defaults