Skip to content

IndexError: too many indices for array #53

Open
@tjulitianyi1997

Description

@tjulitianyi1997

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/matlab_cp2tform.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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions