3DMM-Fitting-Pytorch icon indicating copy to clipboard operation
3DMM-Fitting-Pytorch copied to clipboard

RuntimeError: tensor.H is only supported on matrices (2-D tensors). Got 4-D tensor.

Open melrose12138 opened this issue 1 year ago • 1 comments

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

melrose12138 avatar Nov 02 '23 13:11 melrose12138

Could you provide more details? what is tensor.H in your case?

ascust avatar Jan 02 '24 07:01 ascust