clcarwin / sphereface_pytorch

A PyTorch Implementation of SphereFace.
MIT License
714 stars 172 forks source link

IndexError: too many indices for array #53

Open tjulitianyi1997 opened 4 years ago

tjulitianyi1997 commented 4 years ago

When I run lfw_eval.py with pre-models: IndexError: too many indices for array. Can you give me some advice? Error Log as follow: /home/tianyili/下载/Sphereface_Pytorch/matlabcp2tform.py:124: FutureWarning: rcond parameter will change to the default of machine precision times max(M, N) where M and N are the input matrix dimensions. To use the future default and silence this warning we advise to pass rcond=None, to keep using the old, explicitly pass rcond=-1. r, , , = lstsq(X, U) /home/tianyili/下载/Sphereface_Pytorch/lfw_eval.py:123: UserWarning: volatile was removed and now has no effect. Use with torch.no_grad(): instead. img = Variable(torch.from_numpy(img).float(),volatile=True).cuda() Traceback (most recent call last): File "/home/tianyili/下载/Sphereface_Pytorch/lfw_eval.py", line 137, in best_thresh = find_best_threshold(thresholds, predicts[train]) IndexError: too many indices for array

Process finished with exit code 1

aksenventwo commented 4 years ago

see https://github.com/clcarwin/sphereface_pytorch/issues/12