jhb86253817 / PIPNet

Efficient facial landmark detector
MIT License
405 stars 81 forks source link

get_meanface error #37

Open azuredsky opened 1 year ago

azuredsky commented 1 year ago

Hi, when I run meanfaceindices, , , = get_meanface(os.path.join('../data', 'data_300W', 'meanface.txt'), 68) it reported indexError:

File "/work/landmark/PIPNet/lib/data_utils.py", line 170, in meanfaceindices, , , = get_meanface(os.path.join('../data', 'data_300W', 'meanface.txt'), 68) File "/work/landmark/PIPNet/lib/functions.py", line 53, in get_meanface meanface_indices_reversed[meanface_indices[i][j]][0].append(i) IndexError: index 67 is out of bounds for axis 0 with size 67

jhb86253817 commented 1 year ago

Hi, the argument after 'meanface.txt' indicates the number of neighbors for Neighbor Regression Module (NRM). Since 300W has 68 points in total, it thus has at most 67 neighbors. Please refer to the paper if you don't know NRM.