PIPNet icon indicating copy to clipboard operation
PIPNet copied to clipboard

get_meanface error

Open azuredsky opened this issue 3 years ago • 1 comments

Hi, when I run meanface_indices, _, _, _ = 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 meanface_indices, _, _, _ = 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

azuredsky avatar Nov 28 '22 06:11 azuredsky

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.

jhb86253817 avatar Nov 28 '22 19:11 jhb86253817