Deep3DFaceRecon_pytorch icon indicating copy to clipboard operation
Deep3DFaceRecon_pytorch copied to clipboard

torch1.13.1+cuda11.6 error

Open flydragon2018 opened this issue 2 years ago • 1 comments

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?

flydragon2018 avatar Apr 21 '23 05:04 flydragon2018

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.

yulies avatar Jun 27 '23 14:06 yulies