Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to run demo #17

Closed
codemarsyu opened this issue Feb 12, 2018 · 3 comments
Closed

Failed to run demo #17

codemarsyu opened this issue Feb 12, 2018 · 3 comments

Comments

@codemarsyu
Copy link

I think I have installed the package correctly! I am working on Ubuntu 16.04, TF-gpu v1.4. I literally follow the instruction of installation. But when I ran the demo:
./run.sh --indir examples/demo/ --outdir examples/results/ --vis
I found error message here when the code tried to create a local save:

/home/ruoyuli/torch/install/bin/luajit: /home/ruoyuli/.luarocks/share/lua/5.1/hdf5/file.lua:10: HDF5File.__init() requires a fileID - perhaps you want HDF5File.create()?
stack traceback:
[C]: in function 'assert'
/home/ruoyuli/.luarocks/share/lua/5.1/hdf5/file.lua:10: in function '__init'
/home/ruoyuli/.luarocks/share/lua/5.1/torch/init.lua:91: in function </home/ruoyuli/.luarocks/share/lua/5.1/torch/init.lua:87>
[C]: in function 'open'
/home/ruoyuli/AlphaPose/predict/util.lua:34: in function 'loadAnnotations'
main-alpha-pose.lua:27: in main chunk
[C]: in function 'dofile'
...yuli/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x00405d50
/home/ruoyuli/.conda/envs/tf_p2.7/lib/python2.7/site-packages/h5py/init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float to np.floating is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type.
from ._conv import register_converters as _register_converters
Traceback (most recent call last):
File "parametric-pose-nms-MPII.py", line 256, in
get_result_json(args)
File "parametric-pose-nms-MPII.py", line 243, in get_result_json
test_parametric_pose_NMS_json(delta1, delta2, mu, gamma,args.outputpath)
File "parametric-pose-nms-MPII.py", line 99, in test_parametric_pose_NMS_json
h5file = h5py.File(os.path.join(outputpath,"POSE/test-pose.h5"), 'r')
File "/home/ruoyuli/.conda/envs/tf_p2.7/lib/python2.7/site-packages/h5py/_hl/files.py", line 269, in init
fid = make_fid(name, mode, userblock_size, fapl, swmr=swmr)
File "/home/ruoyuli/.conda/envs/tf_p2.7/lib/python2.7/site-packages/h5py/_hl/files.py", line 99, in make_fid
fid = h5f.open(name, flags, fapl=fapl)
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "h5py/h5f.pyx", line 78, in h5py.h5f.open
IOError: Unable to open file (unable to open file: name = '/home/ruoyuli/AlphaPose/examples/results/POSE/test-pose.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)
visualization...
Traceback (most recent call last):
File "json-video.py", line 63, in
with open(jsonpath) as f:
IOError: [Errno 2] No such file or directory: '/home/ruoyuli/AlphaPose/examples/results/POSE/alpha-pose-results-forvis.json'

Any suggestions ? Thank you ahead!

@Fang-Haoshu
Copy link
Member

Hi, can you paste the full screenshot of the result? Thanks.

@whitelok
Copy link

whitelok commented Sep 7, 2018

@codemarsyu fixed. it works for me following: google-deepmind/torch-hdf5#81

@whitelok
Copy link

whitelok commented Sep 7, 2018

P.S this project is using an old version of hdf5 1.8.*. So if you downgrade the hdf5, many problems can become more easier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants