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

alpha-pose-results-forvis.json #3

Closed
lucheng07082221 opened this issue Feb 5, 2018 · 6 comments
Closed

alpha-pose-results-forvis.json #3

lucheng07082221 opened this issue Feb 5, 2018 · 6 comments

Comments

@lucheng07082221
Copy link

this file(alpha-pose-results-forvis.json) can not find

@Fang-Haoshu
Copy link
Member

Hi, can you paste the command and screen shot of the result?

@lucheng07082221
Copy link
Author

lucheng07082221 commented Feb 5, 2018

Hi,my error is:
/home/lc/torch/install/bin/luajit: /home/lc/torch/install/share/lua/5.1/trepl/init.lua:389: module 'hdf5' not found:No LuaRocks module found for hdf5
no field package.preload['hdf5']
no file '/home/lc/.luarocks/share/lua/5.1/hdf5.lua'
no file '/home/lc/.luarocks/share/lua/5.1/hdf5/init.lua'
no file '/home/lc/torch/install/share/lua/5.1/hdf5.lua'
no file '/home/lc/torch/install/share/lua/5.1/hdf5/init.lua'
no file './hdf5.lua'
no file '/home/lc/torch/install/share/luajit-2.1.0-beta1/hdf5.lua'
no file '/usr/local/share/lua/5.1/hdf5.lua'
no file '/usr/local/share/lua/5.1/hdf5/init.lua'
no file '/home/lc/.luarocks/lib/lua/5.1/hdf5.so'
no file '/home/lc/torch/install/lib/lua/5.1/hdf5.so'
no file '/home/lc/torch/install/lib/hdf5.so'
no file './hdf5.so'
no file '/usr/local/lib/lua/5.1/hdf5.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'error'
/home/lc/torch/install/share/lua/5.1/trepl/init.lua:389: in function 'require'
/home/lc/Downloads/AlphaPose/predict/util.lua:7: in main chunk
[C]: in function 'dofile'
main-alpha-pose.lua:7: in main chunk
[C]: in function 'dofile'
...e/lc/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x00405d50
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 "/usr/local/lib/python2.7/dist-packages/h5py/_hl/files.py", line 272, in init
fid = make_fid(name, mode, userblock_size, fapl, swmr=swmr)
File "/usr/local/lib/python2.7/dist-packages/h5py/_hl/files.py", line 92, in make_fid
fid = h5f.open(name, flags, fapl=fapl)
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper (/tmp/pip-4rPeHA-build/h5py/_objects.c:2684)
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper (/tmp/pip-4rPeHA-build/h5py/_objects.c:2642)
File "h5py/h5f.pyx", line 76, in h5py.h5f.open (/tmp/pip-4rPeHA-build/h5py/h5f.c:1930)
IOError: Unable to open file (Unable to open file: name = '/home/lc/downloads/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/lc/Downloads/AlphaPose/examples/results/POSE/alpha-pose-results-forvis.json'

@lucheng07082221
Copy link
Author

@Fang-Haoshu thank you for your reply. I have solved this problem, because i forgot to install hdf5

@Fang-Haoshu
Copy link
Member

I see. Great!

@ujsyehao
Copy link

ujsyehao commented Feb 7, 2018

hdf5 installation steps:
sudo apt-get install libhdf5-serial-dev hdf5-tools
luarocks install hdf5

@linchaozhang
Copy link

how to install hdf5, when i use "luarocks install hdf5",

Installing https://luarocks.org/hdf5-2.0.0-1.src.rock
Warning: variable CFLAGS was not passed in build_variables
make[1]: Entering directory '/tmp/luarocks_hdf5-2.0.0-1-U02nm7/lua-hdf5/gcc-lua'
make[2]: Entering directory '/tmp/luarocks_hdf5-2.0.0-1-U02nm7/lua-hdf5/gcc-lua/gcc'
gcclua-config.h:1:24: fatal error: gcc-plugin.h: No such file or directory
compilation terminated.
gcc -c -o gcclua.o -I/usr/lib/gcc/x86_64-linux-gnu/5/plugin/include -fPIC -O2 -Wall -Wformat-security -I/usr/include/lua5.2 gcclua.c
gcclua.c:7:24: fatal error: gcc-plugin.h: No such file or directory
compilation terminated.
Makefile:29: recipe for target 'gcclua.o' failed
make[2]: *** [gcclua.o] Error 1
make[2]: Leaving directory '/tmp/luarocks_hdf5-2.0.0-1-U02nm7/lua-hdf5/gcc-lua/gcc'
Makefile:38: recipe for target 'gcc' failed
make[1]: *** [gcc] Error 2
make[1]: Leaving directory '/tmp/luarocks_hdf5-2.0.0-1-U02nm7/lua-hdf5/gcc-lua'
Makefile:44: recipe for target 'gcc-lua' failed
make: *** [gcc-lua] Error 2

Error: Build error: Failed building.

@Fang-Haoshu @lucheng07082221

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

4 participants