Open flydragon2018 opened 1 year ago
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.
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?