Deep3DFaceRecon_pytorch
Deep3DFaceRecon_pytorch copied to clipboard
torch1.13.1+cuda11.6 error
when do the test.py run:
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (5,) + inhomogeneous part.
what could be the problem?
In the file Deep3DFaceRecon_pytorch/util/preprocess.py line 202, change from:
trans_params = np.array([w0, h0, s, t[0], t[1]])
to:
trans_params = np.array([w0, h0, s, t[0, 0], t[1, 0]])
This solved the issue for me.