CMU-Perceptual-Computing-Lab / caffe_train

Other
88 stars 55 forks source link

is this a bug in cpm_data_layer.cpp #2

Closed trantorrepository closed 7 years ago

trantorrepository commented 7 years ago

in function generateLabelMap

if (np == 56){ for (int i = 0; i < 18; i++){ Point2f center = meta.joint_self.joints[i]; if(meta.joint_self.isVisible[i] <= 1){ putGaussianMaps(transformedlabel + (i+np+39)*channelOffset, center, param.stride(), grid_x, gridy, param.sigma()); //self } for(int j = 0; j < meta.numOtherPeople; j++){ //for every other person Point2f center = meta.joint_others[j].joints[i]; if(meta.joint_others[j].isVisible[i] <= 1){ putGaussianMaps(transformedlabel + (i+np+39)*channelOffset, center, param.stride(), grid_x, gridy, param.sigma()); } } }

since np_in_lmdb = 17, 18 is wrong?

nnop commented 6 years ago

The answer is no.