ys7yoo / deeppose_old

DeepPose implementation on TensorFlow. Original Paper http://arxiv.org/abs/1312.4659
Other
0 stars 4 forks source link

Error converting LSP data set in datasets/lsp_dataset.py #1

Closed ys7yoo closed 6 years ago

ys7yoo commented 6 years ago
wonjinlee@alpha:~/deeppose$ export PYTHONPATH='/home/wonjinlee/deeppose'
wonjinlee@alpha:~/deeppose$ python datasets/lsp_dataset.py
Namespace(extended_lsp_images_dir='/home/wonjinlee/data/lsp_ext/images', extended_lsp_joints_path='/home/wonjinlee/data/lsp_ext/joints.mat', output_dir='/home/wonjinlee/data/lsp', small_lsp_images_dir='/home/wonjinlee/data/lsp/images', small_lsp_joints_path='/home/wonjinlee/data/lsp/joints.mat')
Read LSP
(14, 3, 10000)
(10000, 3, 14)
(10000, 3, 2)
Traceback (most recent call last):
  File "datasets/lsp_dataset.py", line 78, in <module>
    transpose_order=(2, 1, 0))  # different dim order
  File "datasets/lsp_dataset.py", line 31, in create_data
    joints.shape[1], joints.shape[2]))
ValueError: Incorrect shape of the joints matrix of joints.mat. Expected: (?, 14, 2); received: (?, 3, 2)
ys7yoo commented 6 years ago

After downloading LSP (original) dataset from new address, it seems to be working.

python datasets/lsp_dataset.py 
Namespace(extended_lsp_images_dir='/home/yyoo/data/lsp_ext/images', extended_lsp_joints_path='/home/yyoo/data/lsp_ext/joints.mat', output_dir='/home/yyoo/data/lsp', small_lsp_images_dir='/home/yyoo/data/lsp/images', small_lsp_joints_path='/home/yyoo/data/lsp/joints.mat')
Read LSP
(3, 14, 2000)
(2000, 14, 3)
(2000, 14, 2)
Small LSP images: 2000