Fang-Haoshu / multi-human-pose

Training code for the SPPE and SSTN of our RMPE framework
30 stars 11 forks source link

Error:pose.lua:168: attempt to index local 'tmpLabelPara' (a nil value) #5

Open lxltaibo opened 7 years ago

lxltaibo commented 7 years ago

This error occurs when using 'th main.lua -expID final_model -loadModel '../exp/mpii-box/finetune/final_model.t7' -LR 0.5e-4 -addParallelSPPE -addSSTN -usePGPG' to train. The '-dataset' mode is 'mpii-cs'. Is the mpii-cs mode available (the default in your code is mpii-box)? image

lxltaibo commented 7 years ago

I find that the 'mpii-cs' does not use the addPGPG module, so I must use the 'mpii-box'. Do you have the code to generate 'annot.h5' file using bbox info, or to calculate the 'mu' and 'std'? I want to use it in my own dataset.

Thanks.

Fang-Haoshu commented 7 years ago

Hi, The code I used is messy. For your convenience, I calculate the 'mu' and 'std' for all the boxes and can be used as an alternative.

xmin[i] = upLeft[1]+torch.normal(-0.0142,0.1158)width
ymin[i] = upLeft[2]+torch.normal(0.0043,0.068)
ht
xmax[i] = bottomRight[1]+torch.normal(0.0154,0.1337)width
ymax[i] = bottomRight[2]+torch.normal(-0.0013,0.0711)
ht