3DMM-Fitting-Pytorch
3DMM-Fitting-Pytorch copied to clipboard
RuntimeError: tensor.H is only supported on matrices (2-D tensors). Got 4-D tensor.
I am going to render the face by BFM09ReconModel, using the following code,
pred_dict = self.recon_model(D3D_coeff, render=True)
where D3D_coeff is a tensor whose size is (1,257).
However, pred_dict['rendered_img'] that I finally get is a tensor whose elements are all 0, with H traceback "RuntimeError: tensor.H is only supported on matrices (2-D tensors). Got 4-D tensor."
I wonder what mistake I might make. I'd appreciate it if you could give me some advice...
Could you provide more details? what is tensor.H in your case?